mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
mesa: move TEXGEN defines closer to gl_texgen struct
This commit is contained in:
parent
4cb3579e52
commit
86ccd9aaac
1 changed files with 40 additions and 40 deletions
|
|
@ -1180,46 +1180,6 @@ typedef enum
|
|||
/*@}*/
|
||||
|
||||
|
||||
/**
|
||||
* TexGenEnabled flags.
|
||||
*/
|
||||
/*@{*/
|
||||
#define S_BIT 1
|
||||
#define T_BIT 2
|
||||
#define R_BIT 4
|
||||
#define Q_BIT 8
|
||||
#define STR_BITS (S_BIT | T_BIT | R_BIT)
|
||||
/*@}*/
|
||||
|
||||
|
||||
/**
|
||||
* Bit flag versions of the corresponding GL_ constants.
|
||||
*/
|
||||
/*@{*/
|
||||
#define TEXGEN_SPHERE_MAP 0x1
|
||||
#define TEXGEN_OBJ_LINEAR 0x2
|
||||
#define TEXGEN_EYE_LINEAR 0x4
|
||||
#define TEXGEN_REFLECTION_MAP_NV 0x8
|
||||
#define TEXGEN_NORMAL_MAP_NV 0x10
|
||||
|
||||
#define TEXGEN_NEED_NORMALS (TEXGEN_SPHERE_MAP | \
|
||||
TEXGEN_REFLECTION_MAP_NV | \
|
||||
TEXGEN_NORMAL_MAP_NV)
|
||||
#define TEXGEN_NEED_EYE_COORD (TEXGEN_SPHERE_MAP | \
|
||||
TEXGEN_REFLECTION_MAP_NV | \
|
||||
TEXGEN_NORMAL_MAP_NV | \
|
||||
TEXGEN_EYE_LINEAR)
|
||||
/*@}*/
|
||||
|
||||
|
||||
|
||||
/** Tex-gen enabled for texture unit? */
|
||||
#define ENABLE_TEXGEN(unit) (1 << (unit))
|
||||
|
||||
/** Non-identity texture matrix for texture unit? */
|
||||
#define ENABLE_TEXMAT(unit) (1 << (unit))
|
||||
|
||||
|
||||
/**
|
||||
* Texture image state. Drivers will typically create a subclass of this
|
||||
* with extra fields for memory buffers, etc.
|
||||
|
|
@ -1366,6 +1326,46 @@ struct gl_tex_env_combine_state
|
|||
};
|
||||
|
||||
|
||||
/**
|
||||
* TexGenEnabled flags.
|
||||
*/
|
||||
/*@{*/
|
||||
#define S_BIT 1
|
||||
#define T_BIT 2
|
||||
#define R_BIT 4
|
||||
#define Q_BIT 8
|
||||
#define STR_BITS (S_BIT | T_BIT | R_BIT)
|
||||
/*@}*/
|
||||
|
||||
|
||||
/**
|
||||
* Bit flag versions of the corresponding GL_ constants.
|
||||
*/
|
||||
/*@{*/
|
||||
#define TEXGEN_SPHERE_MAP 0x1
|
||||
#define TEXGEN_OBJ_LINEAR 0x2
|
||||
#define TEXGEN_EYE_LINEAR 0x4
|
||||
#define TEXGEN_REFLECTION_MAP_NV 0x8
|
||||
#define TEXGEN_NORMAL_MAP_NV 0x10
|
||||
|
||||
#define TEXGEN_NEED_NORMALS (TEXGEN_SPHERE_MAP | \
|
||||
TEXGEN_REFLECTION_MAP_NV | \
|
||||
TEXGEN_NORMAL_MAP_NV)
|
||||
#define TEXGEN_NEED_EYE_COORD (TEXGEN_SPHERE_MAP | \
|
||||
TEXGEN_REFLECTION_MAP_NV | \
|
||||
TEXGEN_NORMAL_MAP_NV | \
|
||||
TEXGEN_EYE_LINEAR)
|
||||
/*@}*/
|
||||
|
||||
|
||||
|
||||
/** Tex-gen enabled for texture unit? */
|
||||
#define ENABLE_TEXGEN(unit) (1 << (unit))
|
||||
|
||||
/** Non-identity texture matrix for texture unit? */
|
||||
#define ENABLE_TEXMAT(unit) (1 << (unit))
|
||||
|
||||
|
||||
/**
|
||||
* Texture coord generation state.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue