OpenGL Basics





Version 2.1 --- NOT OOD



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

Control --- Begin - End -> turn on/off features





glDrawPixels ( width, height, format, type, *pixels );
glCopyPixels
glReadPixels



glEnable ---> GL_LINE_SMOOTH, GL_DEPTH_TEST, GL_LIGHTING, etc.