Lines Matching defs: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)
55 ctx->Scissor.ScissorArray[idx].X = x;
56 ctx->Scissor.ScissorArray[idx].Y = y;
57 ctx->Scissor.ScissorArray[idx].Width = width;
58 ctx->Scissor.ScissorArray[idx].Height = height;
62 scissor(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height)
68 * "Scissor sets the scissor rectangle for all viewports to the same
75 * Set the scissor rectangle for all of the viewports supported by the
81 if (ctx->Driver.Scissor)
82 ctx->Driver.Scissor(ctx);
92 scissor(ctx, x, y, width, height);
108 scissor(ctx, x, y, width, height);
113 * Define the scissor box.
115 * \param x, y coordinates of the scissor box lower-left corner.
116 * \param width width of the scissor box.
117 * \param height height of the scissor box.
121 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a
123 * the dd_function_table::Scissor callback.
131 if (ctx->Driver.Scissor)
132 ctx->Driver.Scissor(ctx);
144 if (ctx->Driver.Scissor)
145 ctx->Driver.Scissor(ctx);
149 * Define count scissor boxes starting at index.
151 * \param index index of first scissor records to set
152 * \param count number of scissor records to set
196 * Define the scissor box.
198 * \param index index of scissor records to set
199 * \param x, y coordinates of the scissor box lower-left corner.
200 * \param width width of the scissor box.
201 * \param height height of the scissor box.
308 memcpy(ctx->Scissor.WindowRects, newval,
310 ctx->Scissor.NumWindowRects = count;
311 ctx->Scissor.WindowRectMode = mode;
316 * Initialize the context's scissor state.
324 /* Scissor group */
325 ctx->Scissor.EnableFlags = 0;
326 ctx->Scissor.WindowRectMode = GL_EXCLUSIVE_EXT;