Home | History | Annotate | Download | only in main

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)
54 ctx->Scissor.ScissorArray[idx].X = x;
55 ctx->Scissor.ScissorArray[idx].Y = y;
56 ctx->Scissor.ScissorArray[idx].Width = width;
57 ctx->Scissor.ScissorArray[idx].Height = height;
61 scissor(struct gl_context *ctx, GLint x, GLint y, GLsizei width, GLsizei height)
67 * "Scissor sets the scissor rectangle for all viewports to the same
74 * Set the scissor rectangle for all of the viewports supported by the
80 if (ctx->Driver.Scissor)
81 ctx->Driver.Scissor(ctx);
91 scissor(ctx, x, y, width, height);
107 scissor(ctx, x, y, width, height);
112 * Define the scissor box.
114 * \param x, y coordinates of the scissor box lower-left corner.
115 * \param width width of the scissor box.
116 * \param height height of the scissor box.
120 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a
122 * the dd_function_table::Scissor callback.
130 if (ctx->Driver.Scissor)
131 ctx->Driver.Scissor(ctx);
143 if (ctx->Driver.Scissor)
144 ctx->Driver.Scissor(ctx);
148 * Define count scissor boxes starting at index.
150 * \param index index of first scissor records to set
151 * \param count number of scissor records to set
195 * Define the scissor box.
197 * \param index index of scissor records to set
198 * \param x, y coordinates of the scissor box lower-left corner.
199 * \param width width of the scissor box.
200 * \param height height of the scissor box.
307 memcpy(ctx->Scissor.WindowRects, newval,
309 ctx->Scissor.NumWindowRects = count;
310 ctx->Scissor.WindowRectMode = mode;
315 * Initialize the context's scissor state.
323 /* Scissor group */
324 ctx->Scissor.EnableFlags = 0;
325 ctx->Scissor.WindowRectMode = GL_EXCLUSIVE_EXT;