diff options
Diffstat (limited to 'sdl')
-rw-r--r-- | sdl/GL_notes.txt | 12 | ||||
-rw-r--r-- | sdl/GL_todo.txt | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/sdl/GL_notes.txt b/sdl/GL_notes.txt index a370290..59267e0 100644 --- a/sdl/GL_notes.txt +++ b/sdl/GL_notes.txt @@ -44,5 +44,15 @@ OBJ Loader Pipeline - Display Lists: precompile series of OpenGL commands (static) -- Vertex Array: modifiable, gets rid of glBegin() and glEnd() ? + GLuint identifiers + 1st identifier = glGenLists() + glNewList() + commands + glEndList() + +- Vertex Array: modifiable, gets rid of glBegin() and glEnd() + glEnableClientState() + glVertexPointer() || glTexCoordPointer() || glNormalPointer() + glDrawArrays() || glDrawElements() + glDisableClientState() diff --git a/sdl/GL_todo.txt b/sdl/GL_todo.txt index fc7e49f..e269185 100644 --- a/sdl/GL_todo.txt +++ b/sdl/GL_todo.txt @@ -17,3 +17,7 @@ todo: pyramid: - could do with 2 textures and practice generating and binding textures +gltools: +- could have init() that would load textures for each func, and in each func + we would have to bind the particular texture + |