From cd22d3731e2eb0c6ab6ac91aa78c11fa98544389 Mon Sep 17 00:00:00 2001 From: Kyle K Date: Sat, 16 Oct 2010 14:40:15 -0500 Subject: glut: slim down the math3d.c and math3d.h --- sdl/GL_notes.txt | 12 +++++++++++- sdl/GL_todo.txt | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'sdl') 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 + -- cgit v1.2.3