PDGL_API void pdglColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *ptr ) { if(pglColorPointer) { pglColorPointer(size, type, stride, ptr); return; } pglColorPointer=pdglGetProcAddress("glColorPointer"); pglColorPointer(size, type, stride, ptr); }
// prepare color array for API (and force rendering with color array!) static void ogl_SetColorArray( GFXColor *pcol) { ASSERT( _pGfx->gl_eCurrentAPI==GAT_OGL); ASSERT( pcol!=NULL); ogl_EnableColorArray(); _sfStats.StartTimer(CStatForm::STI_GFXAPI); pglColorPointer( 4, GL_UNSIGNED_BYTE, sizeof (*pcol), pcol); OGL_CHECKERROR; _sfStats.StopTimer(CStatForm::STI_GFXAPI); }