#include "swrast.h"
Functions | |
GLboolean | _swrast_stencil_and_ztest_span (GLcontext *ctx, SWspan *span) |
/return GL_TRUE = one or more fragments passed, GL_FALSE = all fragments failed. | |
void | _swrast_read_stencil_span (GLcontext *ctx, struct gl_renderbuffer *rb, GLint n, GLint x, GLint y, GLstencil stencil[]) |
Return a span of stencil values from the stencil buffer. | |
void | _swrast_write_stencil_span (GLcontext *ctx, GLint n, GLint x, GLint y, const GLstencil stencil[]) |
Write a span of stencil values to the stencil buffer. | |
void | _swrast_clear_stencil_buffer (GLcontext *ctx, struct gl_renderbuffer *rb) |
Clear the stencil buffer. |
void _swrast_clear_stencil_buffer | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb | |||
) |
Clear the stencil buffer.
void _swrast_read_stencil_span | ( | GLcontext * | ctx, | |
struct gl_renderbuffer * | rb, | |||
GLint | n, | |||
GLint | x, | |||
GLint | y, | |||
GLstencil | stencil[] | |||
) |
Return a span of stencil values from the stencil buffer.
Used for glRead/CopyPixels Input: n - how many pixels x,y - location of first pixel Output: stencil - the array of stencil values
/return GL_TRUE = one or more fragments passed, GL_FALSE = all fragments failed.
void _swrast_write_stencil_span | ( | GLcontext * | ctx, | |
GLint | n, | |||
GLint | x, | |||
GLint | y, | |||
const GLstencil | stencil[] | |||
) |
Write a span of stencil values to the stencil buffer.
This function applies the stencil write mask when needed. Used for glDraw/CopyPixels Input: n - how many pixels x, y - location of first pixel stencil - the array of stencil values