next up previous contents
Next: Fog Up: KGL API Previous: Display lists   Contents

Subsections

Drawing functions

Rasterization and per-fragment drawing functions.

void glBegin(GLenum mode)

See the following table for the currently supported primatives. The maximum GL_TRIANGLE_STRIP length is currently limited to 64 vertices.

Mode Implemented
GL_POINTS X
GL_LINES  
GL_LINE_LOOP  
GL_LINE_STRIP  
GL_TRIANGLES X
GL_TRIANGLE_STRIP X
GL_TRIANGLE_FAN  
GL_QUADS X
GL_QUAD_STRIP  
GL_POLYGON  

void glColor3f(GLfloat red, GLfloat green, GLfloat blue)

void glColor3fv(GLfloat *v)

void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)

void glColor4fv(GLfloat *v)

void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)

void glEnd(void)

void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)

NOP: Stub only.

void glPointSize(GLfloat size)

GL_POINTS are emulated using quads. Points are therefore rendered square. Default size is 1.0 which is 2 pixels square on the DC. Maximum size is 100.0.

void glTexCoord2f(GLfloat s, GLfloat t)

void glTexCoord2fv(GLfloat *v)

void glVertex3f(GLfloat x, GLfloat y, GLfloat z)

void glVertex3fv(GLfloat *v)


next up previous contents
Next: Fog Up: KGL API Previous: Display lists   Contents
Dan Potter 2002-07-29