core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

scissor.h File Reference

#include "main/mtypes.h"

Functions

void GLAPIENTRY _mesa_Scissor (GLint x, GLint y, GLsizei width, GLsizei height)
 Called via glScissor.
void _mesa_set_scissor (GLcontext *ctx, GLint x, GLint y, GLsizei width, GLsizei height)
 Define the scissor box.
void _mesa_init_scissor (GLcontext *ctx)
 Initialize the context's scissor state.


Function Documentation

void _mesa_init_scissor ( GLcontext ctx  ) 

Initialize the context's scissor state.

Parameters:
ctx the GL context.

void GLAPIENTRY _mesa_Scissor ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Called via glScissor.

void _mesa_set_scissor ( GLcontext ctx,
GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Define the scissor box.

Parameters:
x,y coordinates of the scissor box lower-left corner.
width width of the scissor box.
height height of the scissor box.
See also:
glScissor().
Verifies the parameters and updates __GLcontextRec::Scissor. On a change flushes the vertices and notifies the driver via the dd_function_table::Scissor callback.


Generated on Sun Sep 27 06:47:46 2009 for Mesa Main by  doxygen 1.5.4