16typedef long long pgl64_t;
17typedef unsigned long long pglU64_t;
26extern int pglInit(
int immBufferVertexSize,
int immDrawBufferQwordSize);
41typedef unsigned int pgl_slot_handle_t;
43extern pgl_slot_handle_t
pglAddGsMemSlot(
int startingPage,
int pageLength,
unsigned int pixelMode);
50typedef unsigned int pgl_area_handle_t;
52extern pgl_area_handle_t
pglCreateGsMemArea(
int width,
int height,
unsigned int pix_format);
72 pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem);
74 pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem,
75 pgl_area_handle_t depth_mem);
86void pglNormalPointer(GLint size, GLenum type, GLsizei stride,
const GLvoid* ptr);
87void pglDrawIndexedArrays(GLenum primType,
88 int numIndices,
const unsigned char* indices,
91void pglBeginImmediateGeometry(
void);
92void pglEndImmediateGeometry(
void);
93void pglRenderImmediateGeometry(
void);
94void pglFinishRenderingImmediateGeometry(
int forceImmediateStop);
96void pglBeginGeometry(
void);
97void pglEndGeometry(
void);
98void pglRenderGeometry(
void);
99void pglFinishRenderingGeometry(
int forceImmediateStop);
105void pglEnable(GLenum cap);
106void pglDisable(GLenum cap);
108void pglSetInterlacingOffset(
float yPixels);
121 pglU64_t requirements,
122 pglU64_t rendererReqMask,
123 int mergeContiguous);
136#define PGL_CLIPPING 2
140#define PGL_FORCE_IMMEDIATE_STOP 1
141#define PGL_DONT_FORCE_IMMEDIATE_STOP 0
145#define PGL_NONINTERLACED 0
146#define PGL_INTERLACED 1
150#define PGL_DONT_MERGE_CONTIGUOUS 0
151#define PGL_MERGE_CONTIGUOUS 1
155#define PGL_MAX_CUSTOM_RENDERERS 64
156#define PGL_MAX_CUSTOM_PRIM_TYPES 32
void pglRegisterRenderer(void *renderer)
void pglDisableCustom(pglU64_t flag)
const char * pglGetCurRendererName()
void pglEndRendererDefs()
void pglRegisterCustomPrimType(GLenum primType, pglU64_t requirements, pglU64_t rendererReqMask, int mergeContiguous)
void pglBeginRendererDefs()
void pglEnableCustom(pglU64_t flag)
void pglDestroyGsMemArea(pgl_area_handle_t mem_area)
void pglSetGsMemAreaWordAddr(pgl_area_handle_t mem_area, unsigned int addr)
void pglLockGsMemArea(pgl_area_handle_t mem_area)
int pglGsMemAreaIsAllocated(pgl_area_handle_t mem_area)
void pglBindGsMemAreaToSlot(pgl_area_handle_t mem_area, pgl_slot_handle_t mem_slot)
void pglUnlockGsMemArea(pgl_area_handle_t mem_area)
void pglFreeGsMemArea(pgl_area_handle_t mem_area)
unsigned int pglGetGsMemAreaWordAddr(pgl_area_handle_t mem_area)
void pglUnbindGsMemArea(pgl_area_handle_t mem_area)
pgl_area_handle_t pglCreateGsMemArea(int width, int height, unsigned int pix_format)
void pglAllocGsMemArea(pgl_area_handle_t mem_area)
void pglRemoveAllGsMemSlots()
pgl_slot_handle_t pglAddGsMemSlot(int startingPage, int pageLength, unsigned int pixelMode)
void pglUnlockGsMemSlot(pgl_slot_handle_t slot_handle)
void pglLockGsMemSlot(pgl_slot_handle_t slot_handle)
int pglHasGsMemBeenInitted(void)
void pglPrintGsMemAllocation(void)
void pglSetRenderingFinishedCallback(void(*cb)(void))
void pglSetDisplayBuffers(int interlaced, pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem)
void pglTextureFromGsMemArea(pgl_area_handle_t tex_area_handle)
void pglFreeTexture(GLuint texId)
void pglNormalPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *ptr)
void pglSetDrawBuffers(int interlaced, pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem, pgl_area_handle_t depth_mem)
void pglBindTextureToSlot(GLuint texId, pgl_slot_handle_t mem_slot)
void pglSwapBuffers(void)
int pglHasLibraryBeenInitted(void)
void pglWaitForVSync(void)
int pglInit(int immBufferVertexSize, int immDrawBufferQwordSize)