simplifying texture api interface
gltexture's ctor should take in factory so that it''ll be ready to be used.