Home | History | Annotate | Download | only in main

Lines Matching refs:Viewport

27  * \file viewport.c
35 #include "viewport.h"
39 * Set the viewport.
55 * Set new viewport parameters and update derived state (the _WindowMap
59 * \param x, y coordinates of the lower left corner of the viewport rectangle.
60 * \param width width of the viewport rectangle.
61 * \param height height of the viewport rectangle.
80 ctx->Viewport.X = x;
81 ctx->Viewport.Width = width;
82 ctx->Viewport.Y = y;
83 ctx->Viewport.Height = height;
88 * the WindowMap matrix being up to date in the driver's Viewport
91 _math_matrix_viewport(&ctx->Viewport._WindowMap,
92 ctx->Viewport.X, ctx->Viewport.Y,
93 ctx->Viewport.Width, ctx->Viewport.Height,
94 ctx->Viewport.Near, ctx->Viewport.Far,
98 if (ctx->Driver.Viewport) {
102 ctx->Driver.Viewport(ctx, x, y, width, height);
124 if (ctx->Viewport.Near == nearval &&
125 ctx->Viewport.Far == farval)
128 ctx->Viewport.Near = (GLfloat) CLAMP(nearval, 0.0, 1.0);
129 ctx->Viewport.Far = (GLfloat) CLAMP(farval, 0.0, 1.0);
134 * the WindowMap matrix being up to date in the driver's Viewport
137 _math_matrix_viewport(&ctx->Viewport._WindowMap,
138 ctx->Viewport.X, ctx->Viewport.Y,
139 ctx->Viewport.Width, ctx->Viewport.Height,
140 ctx->Viewport.Near, ctx->Viewport.Far,
156 * Initialize the context viewport attribute group.
163 /* Viewport group */
164 ctx->Viewport.X = 0;
165 ctx->Viewport.Y = 0;
166 ctx->Viewport.Width = 0;
167 ctx->Viewport.Height = 0;
168 ctx->Viewport.Near = 0.0;
169 ctx->Viewport.Far = 1.0;
170 _math_matrix_ctr(&ctx->Viewport._WindowMap);
172 _math_matrix_viewport(&ctx->Viewport._WindowMap, 0, 0, 0, 0,
178 * Free the context viewport attribute group data.
183 _math_matrix_dtr(&ctx->Viewport._WindowMap);