ReactOS 0.4.15-dev-7660-g0086d05
quads.h File Reference
#include "types.h"
Include dependency graph for quads.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gl_set_quad_function (GLcontext *ctx)
 

Function Documentation

◆ gl_set_quad_function()

void gl_set_quad_function ( GLcontext ctx)

Definition at line 82 of file quads.c.

83{
84 if (ctx->RenderMode==GL_RENDER) {
85 if (ctx->NoRaster) {
86 ctx->Driver.QuadFunc = null_quad;
87 }
88 else if (ctx->Driver.QuadFunc) {
89 /* Device driver will draw quads. */
90 }
91 else {
92 ctx->Driver.QuadFunc = quad;
93 }
94 }
95 else {
96 /* if in feedback or selection mode we can fall back to triangle code */
97 ctx->Driver.QuadFunc = quad;
98 }
99}
#define GL_RENDER
Definition: gl.h:388
static void quad(GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3, GLuint pv)
Definition: quads.c:63
static void null_quad(GLcontext *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3, GLuint pv)
Definition: quads.c:75

Referenced by gl_update_state().