Initialize the context viewport attribute group.
- Parameters:
-
- Todo:
- Move this to a new file with other 'viewport' routines.
Definition at line 903 of file matrix.c.
Referenced by init_attrib_groups().
{
GLfloat depthMax = 65535.0F;
ctx->Viewport.X = 0;
ctx->Viewport.Y = 0;
ctx->Viewport.Width = 0;
ctx->Viewport.Height = 0;
ctx->Viewport.Near = 0.0;
ctx->Viewport.Far = 1.0;
_math_matrix_ctr(&ctx->Viewport._WindowMap);
_math_matrix_viewport(&ctx->Viewport._WindowMap, 0, 0, 0, 0,
0.0F, 1.0F, depthMax);
}