Home | History | Annotate | Download | only in main

Lines Matching refs:Scissor

29 #include "main/scissor.h"
54 * Define the scissor box.
56 * \param x, y coordinates of the scissor box lower-left corner.
57 * \param width width of the scissor box.
58 * \param height height of the scissor box.
62 * Verifies the parameters and updates __struct gl_contextRec::Scissor. On a
64 * the dd_function_table::Scissor callback.
70 if (x == ctx->Scissor.X &&
71 y == ctx->Scissor.Y &&
72 width == ctx->Scissor.Width &&
73 height == ctx->Scissor.Height)
77 ctx->Scissor.X = x;
78 ctx->Scissor.Y = y;
79 ctx->Scissor.Width = width;
80 ctx->Scissor.Height = height;
82 if (ctx->Driver.Scissor)
83 ctx->Driver.Scissor( ctx, x, y, width, height );
88 * Initialize the context's scissor state.
94 /* Scissor group */
95 ctx->Scissor.Enabled = GL_FALSE;
96 ctx->Scissor.X = 0;
97 ctx->Scissor.Y = 0;
98 ctx->Scissor.Width = 0;
99 ctx->Scissor.Height = 0;