The programmer selected which stack was operated on by these functions by calling the glMatrixMode() function. OpenGL provided a collection of functions which the programmer used to manipulate these transformation stacks. Later OpenGL added optional support for a color transformation stack via the ARB_imaging extension. Legacy OpenGL supported three transformation stacks: model-view, projection, and texture. This will be the last preparation step before I present rewriting the GFX module as a proper C++ class.Ī copy of the code as described in this post can be downloaded from GitHub using the tag tstack. Below I'll discuss replacing the last portion of the author's transformation code used in the GFX module with my own library. This post continues the series discussing ways I've rewritten the sample code from the book Game and Graphics Programming for iOS and Android with OpenGL ES 2.0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |