ReactOS 0.4.15-dev-5664-g3bf4ef6
rect.c File Reference
#include "context.h"
#include "macros.h"
#include "rect.h"
#include "vbfill.h"
Include dependency graph for rect.c:

Go to the source code of this file.

Functions

void gl_Rectf (GLcontext *ctx, GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2)
 

Function Documentation

◆ gl_Rectf()

void gl_Rectf ( GLcontext ctx,
GLfloat  x1,
GLfloat  y1,
GLfloat  x2,
GLfloat  y2 
)

Definition at line 58 of file rect.c.

59{
60 /*
61 * TODO: we could examine a bunch of state variables and ultimately
62 * call the Driver->RectFunc() function to draw a screen-aligned
63 * filled rectangle. Someday...
64 */
65
66 if (INSIDE_BEGIN_END(ctx)) {
67 gl_error( ctx, GL_INVALID_OPERATION, "glRect" );
68 return;
69 }
71 (*ctx->Exec.Vertex2f)( ctx, x1, y1 );
72 (*ctx->Exec.Vertex2f)( ctx, x2, y1 );
73 (*ctx->Exec.Vertex2f)( ctx, x2, y2 );
74 (*ctx->Exec.Vertex2f)( ctx, x1, y2 );
75 gl_End( ctx );
76}
void gl_error(GLcontext *ctx, GLenum error, const char *s)
Definition: context.c:1421
#define GL_QUADS
Definition: gl.h:197
#define GL_INVALID_OPERATION
Definition: gl.h:696
#define INSIDE_BEGIN_END(CTX)
Definition: macros.h:135
void gl_End(GLcontext *ctx)
Definition: vbfill.c:1424
void gl_Begin(GLcontext *ctx, GLenum p)
Definition: vbfill.c:1341
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3710
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
Definition: winddi.h:3709
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3708
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
Definition: winddi.h:3711

Referenced by execute_list(), and init_exec_pointers().