When I look at the documentation it looks likeGL_FIXED
is a fixed point 16:16
format.That means that the 16 upper bits of a GLfixed
represents the integer part and the fraction is the lower 16bits
To convert this to a float simply divide the number by65536:
const float scale = 1.0f / 65536.0f;
GLfloat vertices[] =
{
point.x * scale , (point.y + size.height) * scale,
(point.x + size.width) * scale, (point.y + size.height) * scale,
point.x * scale , point.y * scale,
(point.x + size.width) * scale, point.y * scale
};
glVertexPointer(2, GL_FLOAT, 0, vertices);
If you're vertex coordinates etc is also inGL_FIXED
format you'll have to scale them as well.