コード例 #1
0
void GL_APIENTRY
_mesa_GetClipPlanex(GLenum plane, GLfixed *equation)
{
   unsigned int i;
   GLdouble converted_equation[4];

   _mesa_GetClipPlane(plane, converted_equation);
   for (i = 0; i < ARRAY_SIZE(converted_equation); i++) {
      equation[i] = (GLfixed) (converted_equation[i] * 65536);
   }
}
コード例 #2
0
ファイル: es1_conversion.c プロジェクト: venkatarajasekhar/Qt
void GL_APIENTRY
_es_GetClipPlanef(GLenum plane, GLfloat *equation)
{
   unsigned int i;
   GLdouble converted_equation[4];

   _mesa_GetClipPlane(plane, converted_equation);
   for (i = 0; i < Elements(converted_equation); i++) {
      equation[i] = (GLfloat) (converted_equation[i]);
   }
}