next up previous contents
Next: Direct Render Up: KGL API Previous: Texture functions   Contents

Subsections

Transformation functions

void glDepthRange(GLclampf n, GLclampf f)

We can't access the PVR's depth buffer directly, but the values are used during viewport transformation.

void glFrustum(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat znear, GLfloat zfar)

void glLoadIdentity(void)

void glLoadMatrixf(const GLfloat *m)

Load an arbitrary matrix into the current matrix.

void glLoadTransposeMatrixf(const GLfloat *m)

void glMatrixMode(GLenum mode)

Stack mode Stack size
GL_MODELVIEW 32
GL_PROJECTION 2
GL_TEXTURE 2

void glMultMatrixf(const GLfloat *m)

Mulitply the current matrix by an arbitrary matrix.

void glMultTransposeMatrixf(const GLfloat *m)

void glOrtho(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat znear, GLfloat zfar)

void glPopMatrix(void)

void glPushMatrix(void)

void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)

As of KOS-1.1.7 the angle is in degrees. In prior versions the angle was expressed in radians.

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

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

void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)

The default values are automatically set during glKosInit( ) and are determined by the current video mode. You can of course choose your own values and KGL will render to the defined rectangle. The defined area will not be clipped. To clip the defined rectangle you will need to use glScissors( ).

void gluLookAt(GLfloat eyex, GLfloat eyey, GLfloat eyez, GLfloat centerx, GLfloat centery, GLfloat centerz, GLfloat upx, GLfloat upy, GLfloat upz)

void gluPerspective(GLfloat fovy, GLfloat aspect, GLfloat zNear, GLfloat zFar)


next up previous contents
Next: Direct Render Up: KGL API Previous: Texture functions   Contents
Dan Potter 2002-07-29