75#define ENUM_TO_FLOAT(X) ((GLfloat)(GLint)(X))
76#define ENUM_TO_DOUBLE(X) ((GLdouble)(GLint)(X))
79#define ENUM_TO_FLOAT(X) ((GLfloat)(X))
80#define ENUM_TO_DOUBLE(X) ((GLdouble)(X))
129 if (
ctx->Driver.TexEnv) {
196 texObj =
ctx->Texture.Current1D;
199 texObj =
ctx->Texture.Current2D;
233 texObj->
WrapS = eparam;
242 texObj->
WrapT = eparam;
251 texObj->
WrapR = eparam;
271 if (
ctx->Driver.TexParameter) {
301 tex =
ctx->Texture.Current1D->Image[
level];
325 "glGetTexLevelParameter[if]v(pname)" );
329 tex =
ctx->Texture.Current2D->Image[
level];
356 "glGetTexLevelParameter[if]v(pname)" );
360 tex =
ctx->Texture.Proxy1D->Image[
level];
384 "glGetTexLevelParameter[if]v(pname)" );
388 tex =
ctx->Texture.Proxy2D->Image[
level];
415 "glGetTexLevelParameter[if]v(pname)" );
445 params[0] =
ctx->Texture.Current1D->BorderColor[0] / 255.0f;
446 params[1] =
ctx->Texture.Current1D->BorderColor[1] / 255.0f;
447 params[2] =
ctx->Texture.Current1D->BorderColor[2] / 255.0f;
448 params[3] =
ctx->Texture.Current1D->BorderColor[3] / 255.0f;
454 *
params =
ctx->Texture.Current1D->Priority;
475 params[0] =
ctx->Texture.Current2D->BorderColor[0] / 255.0f;
476 params[1] =
ctx->Texture.Current2D->BorderColor[1] / 255.0f;
477 params[2] =
ctx->Texture.Current2D->BorderColor[2] / 255.0f;
478 params[3] =
ctx->Texture.Current2D->BorderColor[3] / 255.0f;
484 *
params =
ctx->Texture.Current2D->Priority;
517 color[0] =
ctx->Texture.Current1D->BorderColor[0]/255.0;
518 color[1] =
ctx->Texture.Current1D->BorderColor[1]/255.0;
519 color[2] =
ctx->Texture.Current1D->BorderColor[2]/255.0;
520 color[3] =
ctx->Texture.Current1D->BorderColor[3]/255.0;
554 color[0] =
ctx->Texture.Current2D->BorderColor[0]/255.0;
555 color[1] =
ctx->Texture.Current2D->BorderColor[1]/255.0;
556 color[2] =
ctx->Texture.Current2D->BorderColor[2]/255.0;
557 color[3] =
ctx->Texture.Current2D->BorderColor[3]/255.0;
610 ctx->Texture.ObjectPlaneS[0] =
params[0];
611 ctx->Texture.ObjectPlaneS[1] =
params[1];
612 ctx->Texture.ObjectPlaneS[2] =
params[2];
613 ctx->Texture.ObjectPlaneS[3] =
params[3];
617 if (
ctx->NewModelViewMatrix) {
642 ctx->Texture.ObjectPlaneT[0] =
params[0];
643 ctx->Texture.ObjectPlaneT[1] =
params[1];
644 ctx->Texture.ObjectPlaneT[2] =
params[2];
645 ctx->Texture.ObjectPlaneT[3] =
params[3];
649 if (
ctx->NewModelViewMatrix) {
673 ctx->Texture.ObjectPlaneR[0] =
params[0];
674 ctx->Texture.ObjectPlaneR[1] =
params[1];
675 ctx->Texture.ObjectPlaneR[2] =
params[2];
676 ctx->Texture.ObjectPlaneR[3] =
params[3];
680 if (
ctx->NewModelViewMatrix) {
704 ctx->Texture.ObjectPlaneQ[0] =
params[0];
705 ctx->Texture.ObjectPlaneQ[1] =
params[1];
706 ctx->Texture.ObjectPlaneQ[2] =
params[2];
707 ctx->Texture.ObjectPlaneQ[3] =
params[3];
711 if (
ctx->NewModelViewMatrix) {
972 ctx->Texture.Current =
ctx->Texture.Current2D;
974 ctx->Texture.Current =
ctx->Texture.Current1D;
978 if (
ctx->Texture.AnyDirty) {
979 for (
t =
ctx->Shared->TexObjectList;
t;
t =
t->Next) {
#define MAX_TEXTURE_LEVELS
void gl_error(GLcontext *ctx, GLenum error, const char *s)
void gl_analyze_modelview_matrix(GLcontext *ctx)
void gl_set_texture_sampler(struct gl_texture_object *t)
#define GL_TEXTURE_MIN_FILTER
#define GL_TEXTURE_BORDER_COLOR
#define GL_TEXTURE_WRAP_S
#define GL_NEAREST_MIPMAP_NEAREST
#define GL_PROXY_TEXTURE_2D
#define GL_TEXTURE_PRIORITY
#define GL_TEXTURE_GEN_MODE
#define GL_INVALID_OPERATION
#define GL_NEAREST_MIPMAP_LINEAR
#define GL_TEXTURE_HEIGHT
#define GL_LINEAR_MIPMAP_LINEAR
#define GL_TEXTURE_BORDER
#define GL_TEXTURE_LUMINANCE_SIZE
#define GL_TEXTURE_ALPHA_SIZE
#define GL_TEXTURE_INTENSITY_SIZE
#define GL_TEXTURE_ENV_MODE
#define GL_TEXTURE_BLUE_SIZE
#define GL_LINEAR_MIPMAP_NEAREST
#define GL_TEXTURE_RESIDENT
#define GL_TEXTURE_WRAP_T
#define GL_TEXTURE_MAG_FILTER
#define GL_TEXTURE_ENV_COLOR
#define GL_PROXY_TEXTURE_1D
#define GL_TEXTURE_COMPONENTS
#define GL_TEXTURE_RED_SIZE
#define GL_TEXTURE_GREEN_SIZE
#define GL_TEXTURE_WRAP_R_EXT
GLenum const GLfloat * params
#define GL_TEXTURE_INDEX_SIZE_EXT
#define INSIDE_BEGIN_END(CTX)
#define COPY_4V(DST, SRC)
void gl_test_texture_object_completeness(struct gl_texture_object *t)
void gl_GetTexLevelParameterfv(GLcontext *ctx, GLenum target, GLint level, GLenum pname, GLfloat *params)
void gl_TexParameterfv(GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *params)
#define ENUM_TO_DOUBLE(X)
void gl_GetTexParameterfv(GLcontext *ctx, GLenum target, GLenum pname, GLfloat *params)
void gl_GetTexGeniv(GLcontext *ctx, GLenum coord, GLenum pname, GLint *params)
void gl_TexEnvfv(GLcontext *ctx, GLenum target, GLenum pname, const GLfloat *param)
void gl_GetTexGenfv(GLcontext *ctx, GLenum coord, GLenum pname, GLfloat *params)
void gl_update_texture_state(GLcontext *ctx)
void gl_GetTexLevelParameteriv(GLcontext *ctx, GLenum target, GLint level, GLenum pname, GLint *params)
void gl_GetTexEnvfv(GLcontext *ctx, GLenum target, GLenum pname, GLfloat *params)
void gl_GetTexEnviv(GLcontext *ctx, GLenum target, GLenum pname, GLint *params)
void gl_GetTexParameteriv(GLcontext *ctx, GLenum target, GLenum pname, GLint *params)
void gl_GetTexGendv(GLcontext *ctx, GLenum coord, GLenum pname, GLdouble *params)
void gl_TexGenfv(GLcontext *ctx, GLenum coord, GLenum pname, const GLfloat *params)
#define CLAMP(f, min, max)