fbo refactored
initial texture refactoring

Signed-off-by: serengeor <serengeor@gmail.com>
refactoring here and there.