OpenGL Basics
Version 2 --- NOT OOD
Version 3 --- SOME OOD
Version 4 --- MORE OOD, Pipeline and Shader Ops up thru 4.6
glColor3f ( 1.0f, 0.0f, 0.0f ); // Red
glVertex2i ( 100, 50 );
b - 8 bit int
s - 16
i - 32
ub - unsigned
us
ui
f - 32 bit float
d - 64
v - pointer
GLint, GLfloat, GLdouble, etc., GLclampf ( 0.0 - 1.0 )
Primatives --- Polys/Lines/etc. or bitmaps
Attributes --- Appearance -> Color/Texture/Light/etc.
View Funcs --- Camera
Input --- Mouse/Keyboard -> usually GLUT or FreeGLUT
Control --- glBegin() - glEnd() -> turn on/off features
. Not in Version 4.x unless using the "compatibility profile"
. 4.x --- Vertex Array Object ( VAO ) or Vertex Buffer Object ( VBO )
glDrawPixels ( width, height, format, type, *pixels );
glCopyPixels
glReadPixels
glEnable ---> GL_LINE_SMOOTH, GL_DEPTH_TEST, GL_LIGHTING, etc.
glDisable