summaryrefslogtreecommitdiffstats
path: root/sdl/GL_notes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'sdl/GL_notes.txt')
-rw-r--r--sdl/GL_notes.txt12
1 files changed, 11 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()