Home | History | Annotate | Download | only in main

Lines Matching refs:Scissor

30 #include "main/scissor.h"
34 * Set scissor rectangle data directly in ScissorArray
37 * supplied data. It also does \b not call \c dd_function_table::Scissor.
45 if (x == ctx->Scissor.ScissorArray[idx].X &&
46 y == ctx->Scissor.ScissorArray[idx].Y &&
47 width == ctx->Scissor.ScissorArray[idx].Width &&
48 height == ctx->Scissor.ScissorArray[idx].Height)
52 ctx->Scissor.ScissorArray[idx].X = x;
53 ctx->Scissor.ScissorArray[idx].Y = y;
54 ctx->Scissor.ScissorArray[idx].Width = width;
55 ctx->Scissor.ScissorArray[idx].Height = height;
77 * "Scissor sets the scissor rectangle for all viewports to the same
84 * Set the scissor rectangle for all of the viewports supported by the
90 if (ctx->Driver.Scissor)
91 ctx->Driver.Scissor(ctx);
96 * Define the scissor box.
98 * \param x, y coordinates of the scissor box lower-left corner.
99 * \param width width of the scissor box.
100 * \param height height of the scissor box.
104 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a
106 * the dd_function_table::Scissor callback.
114 if (ctx->Driver.Scissor)
115 ctx->Driver.Scissor(ctx);
119 * Define count scissor boxes starting at index.
121 * \param index index of first scissor records to set
122 * \param count number of scissor records to set
157 if (ctx->Driver.Scissor)
158 ctx->Driver.Scissor(ctx);
162 * Define the scissor box.
164 * \param index index of scissor records to set
165 * \param x, y coordinates of the scissor box lower-left corner.
166 * \param width width of the scissor box.
167 * \param height height of the scissor box.
197 if (ctx->Driver.Scissor)
198 ctx->Driver.Scissor(ctx);
257 memcpy(ctx->Scissor.WindowRects, newval,
259 ctx->Scissor.NumWindowRects = count;
260 ctx->Scissor.WindowRectMode = mode;
262 if (ctx->Driver.Scissor)
263 ctx->Driver.Scissor(ctx);
268 * Initialize the context's scissor state.
276 /* Scissor group */
277 ctx->Scissor.EnableFlags = 0;
278 ctx->Scissor.WindowRectMode = GL_EXCLUSIVE_EXT;