165 ctx->Viewport.Near =
n;
166 ctx->Viewport.Far =
f;
204 switch (
ctx->Depth.Func) {
206 if (
ctx->Depth.Mask) {
208 for (
i=0;
i<
n;
i++,zptr++,
m++) {
224 for (
i=0;
i<
n;
i++,zptr++,
m++) {
238 if (
ctx->Depth.Mask) {
240 for (
i=0;
i<
n;
i++,zptr++,
m++) {
254 for (
i=0;
i<
n;
i++,zptr++,
m++) {
268 if (
ctx->Depth.Mask) {
270 for (
i=0;
i<
n;
i++,zptr++,
m++) {
284 for (
i=0;
i<
n;
i++,zptr++,
m++) {
298 if (
ctx->Depth.Mask) {
300 for (
i=0;
i<
n;
i++,zptr++,
m++) {
314 for (
i=0;
i<
n;
i++,zptr++,
m++) {
328 if (
ctx->Depth.Mask) {
330 for (
i=0;
i<
n;
i++,zptr++,
m++) {
344 for (
i=0;
i<
n;
i++,zptr++,
m++) {
358 if (
ctx->Depth.Mask) {
360 for (
i=0;
i<
n;
i++,zptr++,
m++) {
374 for (
i=0;
i<
n;
i++,zptr++,
m++) {
388 if (
ctx->Depth.Mask) {
390 for (
i=0;
i<
n;
i++,zptr++,
m++) {
408 gl_problem(
ctx,
"Bad depth func in gl_depth_test_span_generic");
427 for (
i=0;
i<
n;
i++) {
429 if (
z[
i] < zptr[
i]) {
456 for (
i=0;
i<
n;
i++) {
458 if (
z[
i] > zptr[
i]) {
479#define ZADDR_SETUP GLdepth *depthbuffer = ctx->Buffer->Depth; \
480 GLint width = ctx->Buffer->Width;
482#define ZADDR( X, Y ) (depthbuffer + (Y) * width + (X) )
497 switch (
ctx->Depth.Func) {
499 if (
ctx->Depth.Mask) {
501 for (
i=0;
i<
n;
i++) {
517 for (
i=0;
i<
n;
i++) {
532 if (
ctx->Depth.Mask) {
534 for (
i=0;
i<
n;
i++) {
550 for (
i=0;
i<
n;
i++) {
565 if (
ctx->Depth.Mask) {
567 for (
i=0;
i<
n;
i++) {
583 for (
i=0;
i<
n;
i++) {
598 if (
ctx->Depth.Mask) {
600 for (
i=0;
i<
n;
i++) {
616 for (
i=0;
i<
n;
i++) {
631 if (
ctx->Depth.Mask) {
633 for (
i=0;
i<
n;
i++) {
649 for (
i=0;
i<
n;
i++) {
664 if (
ctx->Depth.Mask) {
666 for (
i=0;
i<
n;
i++) {
682 for (
i=0;
i<
n;
i++) {
697 if (
ctx->Depth.Mask) {
699 for (
i=0;
i<
n;
i++) {
717 gl_problem(
ctx,
"Bad depth func in gl_depth_test_pixels_generic");
733 for (
i=0;
i<
n;
i++) {
759 for (
i=0;
i<
n;
i++) {
798 if (
ctx->Buffer->Depth) {
823 if (
ctx->Buffer->Depth) {
851 if (
ctx->Buffer->Depth) {
858 *
ctx->Buffer->Height
860 if (!
ctx->Buffer->Depth) {
879 if (
ctx->Visual->DepthBits==0 || !
ctx->Buffer->Depth) {
888 if (
ctx->Scissor.Enabled) {
905 d[0] = clear_value;
d[1] = clear_value;
906 d[2] = clear_value;
d[3] = clear_value;
907 d[4] = clear_value;
d[5] = clear_value;
908 d[6] = clear_value;
d[7] = clear_value;
909 d[8] = clear_value;
d[9] = clear_value;
910 d[10] = clear_value;
d[11] = clear_value;
911 d[12] = clear_value;
d[13] = clear_value;
912 d[14] = clear_value;
d[15] = clear_value;
void gl_DepthFunc(GLcontext *ctx, GLenum func)
void gl_depth_test_pixels_greater(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
GLuint gl_depth_test_span_generic(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
void gl_alloc_depth_buffer(GLcontext *ctx)
GLuint gl_depth_test_span_less(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
void gl_DepthMask(GLcontext *ctx, GLboolean flag)
void gl_depth_test_pixels_generic(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
void gl_read_depth_span_float(GLcontext *ctx, GLuint n, GLint x, GLint y, GLfloat depth[])
void gl_depth_test_pixels_less(GLcontext *ctx, GLuint n, const GLint x[], const GLint y[], const GLdepth z[], GLubyte mask[])
GLuint gl_depth_test_span_greater(GLcontext *ctx, GLuint n, GLint x, GLint y, const GLdepth z[], GLubyte mask[])
void gl_read_depth_span_int(GLcontext *ctx, GLuint n, GLint x, GLint y, GLdepth depth[])
void gl_clear_depth_buffer(GLcontext *ctx)
void gl_ClearDepth(GLcontext *ctx, GLclampd depth)
void gl_DepthRange(GLcontext *ctx, GLclampd nearval, GLclampd farval)
#define Z_ADDRESS(CTX, X, Y)
void gl_problem(const GLcontext *ctx, const char *s)
void gl_error(GLcontext *ctx, GLenum error, const char *s)
GLint GLint GLsizei GLsizei GLsizei depth
GLint GLint GLint GLint GLint x
#define GL_INVALID_OPERATION
GLint GLint GLint GLint GLint GLint y
GLenum GLenum GLenum GLenum GLenum scale
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define MEMCPY(DST, SRC, BYTES)
#define INSIDE_BEGIN_END(CTX)
#define CLAMP(f, min, max)