124 if (!
ctx->Visual->RGBAflag) {
126 (*
ctx->Driver.ClearIndex)(
ctx,
ctx->Color.ClearIndex );
140 ctx->Color.ClearColor[0] =
CLAMP(
red, 0.0F, 1.0F );
145 if (
ctx->Visual->RGBAflag) {
165 if (
ctx->Scissor.Enabled) {
166 x =
ctx->Buffer->Xmin;
167 y =
ctx->Buffer->Ymin;
178 if (
ctx->Visual->RGBAflag) {
193 (*
ctx->Driver.WriteColorSpan)(
ctx,
208 indx[
j] =
ctx->Color.ClearIndex;
224 if (
ctx->Color.SWmasking) {
232 (*
ctx->Driver.Clear)(
ctx, !
ctx->Scissor.Enabled,
243 if (
ctx->Color.SWmasking) {
251 (*
ctx->Driver.Clear)(
ctx, !
ctx->Scissor.Enabled,
279 if (
ctx->Driver.ClearColorAndDepth &&
285 (*
ctx->Driver.ClearColorAndDepth)(
ctx, !
ctx->Scissor.Enabled,
290 (*
ctx->Driver.ClearColorAndDepth)(
ctx, !
ctx->Scissor.Enabled,
304 ctx->ClearTime += gl_time() - t0;
314 static char renderer[1000];
315 static char *
vendor =
"Brian Paul & ReactOS Developers";
316 static char *
version =
"1.1.0";
317 static char *extensions =
"GL_EXT_paletted_texture GL_EXT_bgra GL_WIN_swap_hint";
329 if (
ctx->Driver.RendererString) {
331 strcat(renderer, (*
ctx->Driver.RendererString)());
353 if (
ctx->Driver.Finish) {
354 (*
ctx->Driver.Finish)(
ctx );
367 if (
ctx->Driver.Flush) {
368 (*
ctx->Driver.Flush)(
ctx );
392 ctx->Hint.PerspectiveCorrection =
mode;
398 ctx->Hint.PolygonSmooth =
mode;
423 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
433 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
469 ctx->Buffer->Alpha =
ctx->Buffer->FrontAlpha;
479 ctx->Buffer->Alpha =
ctx->Buffer->BackAlpha;
494 (
void) (*
ctx->Driver.SetBuffer)(
ctx,
ctx->Color.DrawBuffer );
char * strcat(char *DstString, const char *SrcString)
char * strcpy(char *DstString, const char *SrcString)
void gl_clear_accum_buffer(GLcontext *ctx)
void gl_write_alpha_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte alpha[], GLubyte mask[])
void gl_clear_alpha_buffers(GLcontext *ctx)
void gl_error(GLcontext *ctx, GLenum error, const char *s)
void gl_update_state(GLcontext *ctx)
void gl_Flush(GLcontext *ctx)
static void clear_color_buffer_with_masking(GLcontext *ctx)
void gl_Hint(GLcontext *ctx, GLenum target, GLenum mode)
void gl_ReadBuffer(GLcontext *ctx, GLenum mode)
void gl_ClearIndex(GLcontext *ctx, GLfloat c)
static void clear_color_buffers(GLcontext *ctx)
void gl_Clear(GLcontext *ctx, GLbitfield mask)
const GLubyte * gl_GetString(GLcontext *ctx, GLenum name)
void gl_DrawBuffer(GLcontext *ctx, GLenum mode)
void gl_Finish(GLcontext *ctx)
void gl_ClearColor(GLcontext *ctx, GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
#define FRONT_AND_BACK_BIT
static const WCHAR version[]
#define GL_POINT_SMOOTH_HINT
#define GL_ACCUM_BUFFER_BIT
#define GL_FRONT_AND_BACK
GLint GLint GLint GLint GLint x
#define GL_INVALID_OPERATION
GLclampf GLclampf GLclampf alpha
GLint GLint GLint GLint GLint GLint y
#define GL_COLOR_BUFFER_BIT
GLint GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble r
#define GL_STENCIL_BUFFER_BIT
GLint GLint GLsizei width
#define GL_LINE_SMOOTH_HINT
#define GL_PERSPECTIVE_CORRECTION_HINT
#define GL_POLYGON_SMOOTH_HINT
#define GL_DEPTH_BUFFER_BIT
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
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
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 GLint GLint j
#define MEMSET(DST, VAL, N)
#define INSIDE_BEGIN_END(CTX)
void gl_mask_index_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLuint index[])
void gl_mask_color_span(GLcontext *ctx, GLuint n, GLint x, GLint y, GLubyte red[], GLubyte green[], GLubyte blue[], GLubyte alpha[])
void gl_clear_stencil_buffer(GLcontext *ctx)
#define CLAMP(f, min, max)