NeHe OpenGL Lesson33 – Loading Compressed And Uncompressed TGA’s

screen_shot18-300x228 As the title describes, we could learn how to load TGA images as texture from this sample. Nothing special to advance about this lesson. The only thing that need to mention may be that refactoring and integrating the source code into your own graphic library, and make them become more useful.
Actually, a graphic engine or game engine will provide a texture importing tool that will support different kinds of image format as more as possible. And this tool will export only one kind of texture format for the engine with graphic optimized usually. This process usually called the texture assets pipeline. Make a engine that support all kind of images at running time is not a good idea.


The full source code could be found from here.

posted @ 2012-08-23 09:03  opencoder  阅读(124)  评论(0编辑  收藏  举报