zaphire/Monocle-Engine — pull request #110 by etinquis (2012-01-04 10:42:46+00:00)
Title: Pixel Format Support for TextureAssets

TextureAssets now contain a PixelFormat member that dictates the pixel format of the loaded image.

I think stb_image converts everything into RGBA, so worrying about formats for Assets::RequestTexture(...) is unnecessary.

PixelFormat is a struct whose implementation is defined in OpenGLTextureAsset.cpp (or whatever other implementations end up being written). I changed OpenGLESTextureAsset.cpp as well, but I can't test it compiles/runs properly.