#include "main/glheader.h"
#include "main/context.h"
#include "main/enums.h"
#include "main/colormac.h"
#include "main/macros.h"
#include "main/texcompress.h"
#include "main/texparam.h"
#include "main/teximage.h"
#include "main/texstate.h"
#include "shader/prog_instruction.h"
Functions | |
static GLboolean | validate_texture_wrap_mode (GLcontext *ctx, GLenum target, GLenum wrap) |
Check if a coordinate wrap mode is supported for the texture target. | |
static struct gl_texture_object * | get_texobj (GLcontext *ctx, GLenum target) |
Get current texture object for given target. | |
static GLint | comp_to_swizzle (GLenum comp) |
Convert GL_RED/GREEN/BLUE/ALPHA/ZERO/ONE to SWIZZLE_X/Y/Z/W/ZERO/ONE. | |
static void | set_swizzle_component (GLuint *swizzle, GLuint comp, GLuint swz) |
static INLINE void | flush (GLcontext *ctx, struct gl_texture_object *texObj) |
This is called just prior to changing any texture object state. | |
static GLboolean | set_tex_parameteri (GLcontext *ctx, struct gl_texture_object *texObj, GLenum pname, const GLint *params) |
Set an integer-valued texture parameter. | |
static GLboolean | set_tex_parameterf (GLcontext *ctx, struct gl_texture_object *texObj, GLenum pname, const GLfloat *params) |
Set a float-valued texture parameter. | |
void GLAPIENTRY | _mesa_TexParameterf (GLenum target, GLenum pname, GLfloat param) |
void GLAPIENTRY | _mesa_TexParameterfv (GLenum target, GLenum pname, const GLfloat *params) |
void GLAPIENTRY | _mesa_TexParameteri (GLenum target, GLenum pname, GLint param) |
void GLAPIENTRY | _mesa_TexParameteriv (GLenum target, GLenum pname, const GLint *params) |
void GLAPIENTRY | _mesa_GetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params) |
void GLAPIENTRY | _mesa_GetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params) |
void GLAPIENTRY | _mesa_GetTexParameterfv (GLenum target, GLenum pname, GLfloat *params) |
void GLAPIENTRY | _mesa_GetTexParameteriv (GLenum target, GLenum pname, GLint *params) |
void GLAPIENTRY _mesa_GetTexLevelParameterfv | ( | GLenum | target, | |
GLint | level, | |||
GLenum | pname, | |||
GLfloat * | params | |||
) |
void GLAPIENTRY _mesa_GetTexLevelParameteriv | ( | GLenum | target, | |
GLint | level, | |||
GLenum | pname, | |||
GLint * | params | |||
) |
void GLAPIENTRY _mesa_GetTexParameterfv | ( | GLenum | target, | |
GLenum | pname, | |||
GLfloat * | params | |||
) |
void GLAPIENTRY _mesa_GetTexParameteriv | ( | GLenum | target, | |
GLenum | pname, | |||
GLint * | params | |||
) |
void GLAPIENTRY _mesa_TexParameterf | ( | GLenum | target, | |
GLenum | pname, | |||
GLfloat | param | |||
) |
void GLAPIENTRY _mesa_TexParameterfv | ( | GLenum | target, | |
GLenum | pname, | |||
const GLfloat * | params | |||
) |
void GLAPIENTRY _mesa_TexParameteri | ( | GLenum | target, | |
GLenum | pname, | |||
GLint | param | |||
) |
void GLAPIENTRY _mesa_TexParameteriv | ( | GLenum | target, | |
GLenum | pname, | |||
const GLint * | params | |||
) |
static GLint comp_to_swizzle | ( | GLenum | comp | ) | [static] |
Convert GL_RED/GREEN/BLUE/ALPHA/ZERO/ONE to SWIZZLE_X/Y/Z/W/ZERO/ONE.
static INLINE void flush | ( | GLcontext * | ctx, | |
struct gl_texture_object * | texObj | |||
) | [static] |
This is called just prior to changing any texture object state.
Any pending rendering will be flushed out, we'll set the _NEW_TEXTURE state flag and then mark the texture object as 'incomplete' so that any per-texture derived state gets recomputed.
static struct gl_texture_object* get_texobj | ( | GLcontext * | ctx, | |
GLenum | target | |||
) | [static, read] |
Get current texture object for given target.
Return NULL if any error.
static void set_swizzle_component | ( | GLuint * | swizzle, | |
GLuint | comp, | |||
GLuint | swz | |||
) | [static] |
static GLboolean set_tex_parameterf | ( | GLcontext * | ctx, | |
struct gl_texture_object * | texObj, | |||
GLenum | pname, | |||
const GLfloat * | params | |||
) | [static] |
Set a float-valued texture parameter.
static GLboolean set_tex_parameteri | ( | GLcontext * | ctx, | |
struct gl_texture_object * | texObj, | |||
GLenum | pname, | |||
const GLint * | params | |||
) | [static] |
Set an integer-valued texture parameter.
static GLboolean validate_texture_wrap_mode | ( | GLcontext * | ctx, | |
GLenum | target, | |||
GLenum | wrap | |||
) | [static] |
Check if a coordinate wrap mode is supported for the texture target.