PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
gl* API

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)
 

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

◆ glVertexPointer()

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

#include <src/gmanager.cpp>

Parameters
size2, 3, or 4
typemust be GL_FLOAT
stridemust be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 80 of file gmanager.cpp.

◆ glNormalPointer()

void glNormalPointer ( GLenum  type,
GLsizei  stride,
const GLvoid *  ptr 
)

#include <src/gmanager.cpp>

Parameters
typemust be GL_FLOAT
stridemust be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 104 of file gmanager.cpp.

References pglNormalPointer().

◆ glTexCoordPointer()

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

#include <src/gmanager.cpp>

Parameters
size2, 3, or 4
typemust be GL_FLOAT
stridemust be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 118 of file gmanager.cpp.

◆ glColorPointer()

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

#include <src/gmanager.cpp>

Parameters
size3 or 4
typemust be GL_FLOAT
stridemust be zero. Non-zero strides are unsupported and likely to remain so.

Definition at line 143 of file gmanager.cpp.

◆ glDrawArrays()

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.

◆ glDrawElements()

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.

◆ glInterleavedArrays()

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.

◆ glArrayElement()

void glArrayElement ( GLint  i)

#include <src/gmanager.cpp>

This is not implemented yet

Definition at line 204 of file gmanager.cpp.

◆ glFlush()

void glFlush ( void  )

#include <src/gmanager.cpp>

Flushes the internal geometry buffers.

Definition at line 214 of file gmanager.cpp.