76 TEX_MIN_FILTER_NEAREST,
77 TEX_MIN_FILTER_LINEAR,
78 TEX_MIN_FILTER_NEAREST_MIPMAP_NEAREST,
79 TEX_MIN_FILTER_LINEAR_MIPMAP_NEAREST,
80 TEX_MIN_FILTER_NEAREST_MIPMAP_LINEAR,
81 TEX_MIN_FILTER_LINEAR_MIPMAP_LINEAR
90 TEX_MAG_FILTER_NEAREST,
101 TEX_WRAP_CLAMP_TO_BORDER,
174 padToNearestPowerOfTwo =
false;
176 filter = TEX_FILTER_NEAREST;
223 wrapS = wrapT = TEX_WRAP_REPEAT;
266 inline void LoadDefault()
268 for (
int i = 0; i < 4; i++)
325 return id < other.
id;
336 return id == other.
id;
Color from texture unit 1.
Definition: texture.h:134
bool Valid() const
Returns whether the texture is valid (ID != 0)
Definition: texture.h:300
Try to determine automatically (may not work)
Definition: texture.h:44
bool mipmap
Whether to generate mipmaps.
Definition: texture.h:157
(Source) color of textured fragment (diffuse in DirectX; primary color in OpenGL) ...
Definition: texture.h:142
TexMixOperation
Multitexture mixing operation.
Definition: texture.h:109
bool operator<(const Texture &other) const
Comparator for use in texture maps and sets.
Definition: texture.h:312
TexMixArgument
Multitexture mixing argument.
Definition: texture.h:127
unsigned int id
ID of the texture in graphics engine; 0 = invalid texture.
Definition: texture.h:285
bool alpha
Whether the texture has alpha channel.
Definition: texture.h:291
Color from current texture.
Definition: texture.h:130
TexWrapMode
Wrapping mode for texture coords.
Definition: texture.h:98
Normal mapping mode.
Definition: texture.h:242
Constant color (texture factor in DirectX; texture env color in OpenGL)
Definition: texture.h:144
TexMixOperation colorOperation
Mixing operation done on color values.
Definition: texture.h:190
Math::IntPoint size
Size of texture.
Definition: texture.h:287
Color from texture unit 2.
Definition: texture.h:136
TexMixArgument alphaArg1
1st argument of alpha operations
Definition: texture.h:198
TextureStageParams()
Constructor; calls LoadDefault()
Definition: texture.h:209
TexMagFilter
Texture magnification filter.
Definition: texture.h:88
Parameters for a texture unit.
Definition: texture.h:187
Color from texture unit 3.
Definition: texture.h:138
bool operator==(const Texture &other) const
Comparator.
Definition: texture.h:329
TexMinFilter
Texture minification filter.
Definition: texture.h:74
Color computed by previous texture unit (current in DirectX; previous in OpenGL)
Definition: texture.h:140
RGBA triplet, 4 bytes.
Definition: texture.h:50
TexImgFormat format
Format of source image data.
Definition: texture.h:159
Parameters for texture coordinate generation.
Definition: texture.h:253
Eye linear mode.
Definition: texture.h:238
TexImgFormat
Format of image data.
Definition: texture.h:41
Spherical mapping mode.
Definition: texture.h:240
Color structs and related functions.
Parameters for texture creation.
Definition: texture.h:154
Color from texture unit 0.
Definition: texture.h:132
void SetInvalid()
Sets the ID to invalid value (0)
Definition: texture.h:306
TexFilter filter
General texture filtering mode.
Definition: texture.h:161
TexMixArgument colorArg2
2nd argument of color operations
Definition: texture.h:194
Color factor
Constant color factor (for TEX_MIX_ARG_FACTOR)
Definition: texture.h:206
= Arg1 * Arg2
Definition: texture.h:116
TexMixArgument colorArg1
1st argument of color operations
Definition: texture.h:192
TexMixArgument alphaArg2
2nd argument of alpha operations
Definition: texture.h:200
BGR triplet, 3 bytes.
Definition: texture.h:48
= Arg1 + Arg2
Definition: texture.h:118
TexWrapMode wrapS
Wrap mode for 1st tex coord.
Definition: texture.h:202
bool padToNearestPowerOfTwo
Pad the image to nearest power of 2 dimensions.
Definition: texture.h:163
Namespace for (new) graphics code.
Definition: app.h:49
No texture generation.
Definition: texture.h:234
= Arg1 - Arg2
Definition: texture.h:120
Info about a texture.
Definition: texture.h:282
TexFilter
General texture filtering mode.
Definition: texture.h:61
void LoadDefault()
Loads the default values.
Definition: texture.h:170
Reflection mapping mode.
Definition: texture.h:244
2D Point with integer coords
Definition: intpoint.h:38
Math::IntPoint originalSize
Original size of texture (as loaded from image)
Definition: texture.h:289
RGBA color.
Definition: color.h:38
void LoadDefault()
Loads the default values.
Definition: texture.h:213
TexWrapMode wrapT
Wrap mode for 2nd tex coord.
Definition: texture.h:204
BGRA triplet, 4 bytes.
Definition: texture.h:52
TextureCreateParams()
Constructor; calls LoadDefault()
Definition: texture.h:166
= Arg1
Definition: texture.h:114
TexMixOperation alphaOperation
Mixing operation done on alpha values.
Definition: texture.h:196
Default operation on default params (modulate on computed & texture)
Definition: texture.h:112
RGB triplet, 3 bytes.
Definition: texture.h:46
Object linear mode.
Definition: texture.h:236