PS2GL
OpenGL*-like API for the PS2
|
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) |
void | glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices) |
void | glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer) |
void | glArrayElement (GLint i) |
void | glFlush (void) |
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.)
void glVertexPointer | ( | GLint | size, |
GLenum | type, | ||
GLsizei | stride, | ||
const GLvoid * | ptr | ||
) |
#include <src/gmanager.cpp>
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 80 of file gmanager.cpp.
void glNormalPointer | ( | GLenum | type, |
GLsizei | stride, | ||
const GLvoid * | ptr | ||
) |
#include <src/gmanager.cpp>
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.
References pglNormalPointer().
void glTexCoordPointer | ( | GLint | size, |
GLenum | type, | ||
GLsizei | stride, | ||
const GLvoid * | ptr | ||
) |
#include <src/gmanager.cpp>
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 118 of file gmanager.cpp.
void glColorPointer | ( | GLint | size, |
GLenum | type, | ||
GLsizei | stride, | ||
const GLvoid * | ptr | ||
) |
#include <src/gmanager.cpp>
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 143 of file gmanager.cpp.
void glDrawArrays | ( | GLenum | mode, |
GLint | first, | ||
GLsizei | count | ||
) |
#include <src/gmanager.cpp>
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 173 of file gmanager.cpp.
void glDrawElements | ( | GLenum | mode, |
GLsizei | count, | ||
GLenum | type, | ||
const GLvoid * | indices | ||
) |
#include <src/gmanager.cpp>
This is not implemented yet
Definition at line 184 of file gmanager.cpp.
void glInterleavedArrays | ( | GLenum | format, |
GLsizei | stride, | ||
const GLvoid * | pointer | ||
) |
#include <src/gmanager.cpp>
This is not implemented yet
Definition at line 194 of file gmanager.cpp.
void glArrayElement | ( | GLint | i | ) |
#include <src/gmanager.cpp>
This is not implemented yet
Definition at line 204 of file gmanager.cpp.
void glFlush | ( | void | ) |
#include <src/gmanager.cpp>
Flushes the internal geometry buffers.
Definition at line 214 of file gmanager.cpp.