ReactOS  0.4.14-dev-384-g5b37caa
rect.h File Reference
#include "types.h"
Include dependency graph for rect.h:
This graph shows which files directly or indirectly include this file:

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  }
70  gl_Begin( ctx, GL_QUADS );
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 }
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
Definition: winddi.h:3706
#define GL_QUADS
Definition: gl.h:197
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG x1
Definition: winddi.h:3706
#define INSIDE_BEGIN_END(CTX)
Definition: macros.h:135
#define GL_INVALID_OPERATION
Definition: gl.h:696
struct gl_api_table Exec
Definition: types.h:1270
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2
Definition: winddi.h:3706
void gl_error(GLcontext *ctx, GLenum error, const char *s)
Definition: context.c:1421
void gl_End(GLcontext *ctx)
Definition: vbfill.c:1424
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
void gl_Begin(GLcontext *ctx, GLenum p)
Definition: vbfill.c:1341

Referenced by execute_list(), and init_exec_pointers().