110 if (
ctx->Visual->RGBAflag) {
112 r = (
GLint) (
ctx->Current.RasterColor[0] *
ctx->Visual->RedScale);
113 g = (
GLint) (
ctx->Current.RasterColor[1] *
ctx->Visual->GreenScale);
114 b = (
GLint) (
ctx->Current.RasterColor[2] *
ctx->Visual->BlueScale);
115 a = (
GLint) (
ctx->Current.RasterColor[3] *
ctx->Visual->AlphaScale);
122 px = (
GLint) ( (
ctx->Current.RasterPos[0] - xorig) + 0.0F );
123 py = (
GLint) ( (
ctx->Current.RasterPos[1] - yorig) + 0.0F );
132 for (bx=0;bx<
width;bx++) {
136 bitmask = bitmask >> 1;
146 if (bitmask!=128)
ptr++;
182 if (
ctx->Driver.Bitmap) {
195 color[0] =
ctx->Current.ByteColor[0] *
ctx->Visual->InvRedScale;
196 color[1] =
ctx->Current.ByteColor[1] *
ctx->Visual->InvGreenScale;
197 color[2] =
ctx->Current.ByteColor[2] *
ctx->Visual->InvBlueScale;
198 color[3] =
ctx->Current.ByteColor[3] *
ctx->Visual->InvAlphaScale;
199 invq = 1.0F /
ctx->Current.TexCoord[3];
200 texcoord[0] =
ctx->Current.TexCoord[0] * invq;
201 texcoord[1] =
ctx->Current.TexCoord[1] * invq;
202 texcoord[2] =
ctx->Current.TexCoord[2] * invq;
203 texcoord[3] =
ctx->Current.TexCoord[3];
207 ctx->Current.RasterPos[1] - yorig,
208 ctx->Current.RasterPos[2],
209 ctx->Current.RasterPos[3],
210 color,
ctx->Current.Index, texcoord );
217 ctx->Current.RasterPos[0] += xmove;
218 ctx->Current.RasterPos[1] += ymove;
void gl_Bitmap(GLcontext *ctx, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const struct gl_image *bitmap)
void gl_render_bitmap(GLcontext *ctx, GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const struct gl_image *bitmap)
struct gl_image * gl_unpack_bitmap(GLcontext *ctx, GLsizei width, GLsizei height, const GLubyte *bitmap)
void gl_error(GLcontext *ctx, GLenum error, const char *s)
void gl_update_state(GLcontext *ctx)
struct gl_image * gl_unpack_image(GLcontext *ctx, GLint width, GLint height, GLenum srcFormat, GLenum srcType, const GLvoid *pixels)
void gl_feedback_vertex(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, GLfloat w, const GLfloat color[4], GLfloat index, const GLfloat texcoord[4])
#define FEEDBACK_TOKEN(CTX, T)
#define GL_INVALID_OPERATION
GLint GLint GLsizei GLsizei height
GLdouble GLdouble GLdouble r
GLint GLint GLsizei width
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
#define INSIDE_BEGIN_END(CTX)
void gl_flush_pb(GLcontext *ctx)
#define PB_SET_INDEX(CTX, PB, I)
#define PB_WRITE_PIXEL(PB, X, Y, Z)
#define PB_CHECK_FLUSH(CTX, PB)
#define PB_INIT(PB, PRIM)
#define PB_SET_COLOR(CTX, PB, R, G, B, A)