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.
本文介绍如何将TGA图像作为纹理加载到图形项目中,重点讨论了代码重构和整合到个人图形库的方法,以及图形引擎中纹理资产管线的重要性。
191

被折叠的 条评论
为什么被折叠?



