next up previous contents
Next: Query functions Up: KGL API Previous: Lighting   Contents

Subsections

Miscellaneous

void glClear(GLbitfield mask)

NOP: there's nothing to clear on the PVR2. Provided to ease porting.

void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)

Sets the background color. Alpha parameter has no effect.

void glCullFace(GLenum mode)

Set face culling mode. Valid states are GL_FRONT and GL_BACK. Default state is GL_BACK.

void glDisable(GLenum cap)

Disable GL states. See table in section [*], on page [*].

void glEnable(GLenum cap)

Enable GL states.

State Description / Notes Initial Value
GL_BLEND NOP: will be available once the PVR scene rendering API is completed. For now use glKosFinishList() to switch to the transparent polygon list. GL_FALSE
GL_CULL_FACE Polygon culling GL_FALSE
GL_FOG PVR table fog GL_FALSE
GL_KOS_AUTO_UV Automatically assign texture coordinates to GL_QUAD primatives. GL_FALSE
GL_KOS_USERCLIP_OUTSIDE Drawn polys are clipped to the outside of the scissor box. GL_FALSE
GL_SCISSIOR_TEST Drawn polys are clipped to the inside of the the scissor box. GL_FALSE
GL_TEXTURE_2D 2D texturing GL_FALSE

void glFrontFace(GLenum mode)

Set polygon front face. Valid modes are GL_CW and GL_CCW. Default mode is GL_CCW. Note: In KGL prior to KOS-1.1.7 the default was GL_CW and could not be changed.

void glFlush()

NOP: There is no rendering pipeline.

void glHint(GLenum target, GLenum mode)

NOP: It's our way or no way. KGL_DONT_CARE =D Provided to ease porting.

Valid target values Valid modes
GL_PERSPECTIVE_CORRECTION_HINT GL_DONT_CARE
GL_POINT_SMOOTH_HINT GL_FASTEST
GL_LINE_SMOOTH_HINT GL_NICEST
GL_POLYGON_SMOOTH_HINT  
GL_FOG_HINT  


next up previous contents
Next: Query functions Up: KGL API Previous: Lighting   Contents
Dan Potter 2002-07-29