Пример #1
0
PDGL_API void pdglMultMatrixf(float *mat)
{
	if(pglMultMatrixf)
		{ pglMultMatrixf(mat); return; }
	pglMultMatrixf=pdglGetProcAddress("glMultMatrixf");
	pglMultMatrixf(mat);
}
Пример #2
0
// Set texture matrix
static inline void gfxSetTextureMatrix2(Matrix12 *pMatrix)
{
  pglMatrixMode( GL_TEXTURE);
  if(pMatrix==NULL) {
    pglLoadIdentity();
  } else {
    Matrix16 mrot16;
    Matrix16 mtra16;
    CreateOpenGLMatrix(*pMatrix,mrot16);

    Matrix12 mtr12;
    SetMatrixDiagonal(mtr12,1);
    CreateOpenGLMatrix(mtr12,mtra16);
    pglLoadMatrixf(mtra16);
    pglMultMatrixf(mrot16);
  }
  pglMatrixMode(GL_MODELVIEW);
}