Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

gl API

Differences between ps2gl gl* functions and the usual ones. More...

Functions

void glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
void glNormalPointer (GLenum type, GLsizei stride, const GLvoid *ptr)
void glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
void glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
void glDrawArrays (GLenum mode, GLint first, GLsizei count)
 The important thing to remember with DrawArrays() is that array data is not copied (mostly). More...

void glFlush (void)
 Flushes the internal geometry buffers. More...


Detailed Description

Differences between ps2gl gl* functions and the usual ones.

(If a gl* function is called with parameters that are unsupported/broken, it should say so.)


Function Documentation

void glColorPointer GLint    size,
GLenum    type,
GLsizei    stride,
const GLvoid   ptr
 

Parameters:
size  3 or 4
type  must be GL_FLOAT
stride  must be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 139 of file gmanager.cpp.

void glDrawArrays GLenum    mode,
GLint    first,
GLsizei    count
 

The important thing to remember with DrawArrays() is that array data is not copied (mostly).

Since the only rendering mode supported now is delayed one frame, this means that the app must double-buffer geometry when it changes. The "mostly" above is because little bits of the array will become part of the dma chain, so modifying the data referenced by a display list won't work as expected. (This would be really useful and should be made possible.)

There is no limit on strip lengths (make them as long as possible!).

Definition at line 167 of file gmanager.cpp.

void glFlush void   
 

Flushes the internal geometry buffers.

Definition at line 176 of file gmanager.cpp.

void glNormalPointer GLenum    type,
GLsizei    stride,
const GLvoid   ptr
 

Parameters:
type  must be GL_FLOAT
stride  must be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 104 of file gmanager.cpp.

void glTexCoordPointer GLint    size,
GLenum    type,
GLsizei    stride,
const GLvoid   ptr
 

Parameters:
size  2, 3, or 4
type  must be GL_FLOAT
stride  must be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 116 of file gmanager.cpp.

void glVertexPointer GLint    size,
GLenum    type,
GLsizei    stride,
const GLvoid   ptr
 

Parameters:
size  2, 3, or 4
type  must be GL_FLOAT
stride  must be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 82 of file gmanager.cpp.


ps2gl version cvs