diff options
author | Kyle K <kylek389@gmail.com> | 2010-10-16 14:40:15 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2010-10-16 14:40:15 -0500 |
commit | cd22d3731e2eb0c6ab6ac91aa78c11fa98544389 (patch) | |
tree | 9a56a04a52e604097adb1f5b5332c34230c8039b /sdl | |
parent | 4843f992664c1ddabe1d99755f8e2282af19a615 (diff) | |
download | GLPyramid-cd22d3731e2eb0c6ab6ac91aa78c11fa98544389.tar.gz GLPyramid-cd22d3731e2eb0c6ab6ac91aa78c11fa98544389.tar.bz2 GLPyramid-cd22d3731e2eb0c6ab6ac91aa78c11fa98544389.zip |
glut: slim down the math3d.c and math3d.h
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 + |