60 TEX_MIN_FILTER_NEAREST,
61 TEX_MIN_FILTER_LINEAR,
62 TEX_MIN_FILTER_NEAREST_MIPMAP_NEAREST,
63 TEX_MIN_FILTER_LINEAR_MIPMAP_NEAREST,
64 TEX_MIN_FILTER_NEAREST_MIPMAP_LINEAR,
65 TEX_MIN_FILTER_LINEAR_MIPMAP_LINEAR
74 TEX_MAG_FILTER_NEAREST,
255 return id < other.
id;
266 return id == other.
id;
bool Valid() const
Returns whether the texture is valid (ID != 0)
Definition: texture.h:230
Try to determine automatically (may not work)
Definition: texture.h:41
bool mipmap
Whether to generate mipmaps.
Definition: texture.h:132
(Source) color of textured fragment (diffuse in DirectX; primary color in OpenGL) ...
Definition: texture.h:117
TexMixOperation
Multitexture mixing operation.
Definition: texture.h:92
bool operator<(const Texture &other) const
Comparator for use in texture maps and sets.
Definition: texture.h:242
TexMixArgument
Multitexture mixing argument.
Definition: texture.h:110
unsigned int id
ID of the texture in graphics engine; 0 = invalid texture.
Definition: texture.h:215
bool alpha
Whether the texture has alpha channel.
Definition: texture.h:221
Color from current texture.
Definition: texture.h:113
TexWrapMode
Wrapping mode for texture coords.
Definition: texture.h:82
Constant color (texture factor in DirectX; texture env color in OpenGL)
Definition: texture.h:119
TexMixOperation colorOperation
Mixing operation done on color values.
Definition: texture.h:168
Math::IntPoint size
Size of texture.
Definition: texture.h:217
TexMixArgument alphaArg1
1st argument of alpha operations
Definition: texture.h:176
TextureStageParams()
Constructor; calls LoadDefault()
Definition: texture.h:187
TexMagFilter
Texture magnification filter.
Definition: texture.h:72
Parameters for a texture unit.
Definition: texture.h:165
TexMagFilter magFilter
Magnification filter.
Definition: texture.h:138
bool operator==(const Texture &other) const
Comparator.
Definition: texture.h:259
TexMinFilter
Texture minification filter.
Definition: texture.h:58
Color computed by previous texture unit (current in DirectX; previous in OpenGL)
Definition: texture.h:115
RGBA triplet, 4 bytes.
Definition: texture.h:47
TexImgFormat format
Format of source image data.
Definition: texture.h:134
TexImgFormat
Format of image data.
Definition: texture.h:38
Color structs and related functions.
Parameters for texture creation.
Definition: texture.h:129
void SetInvalid()
Sets the ID to invalid value (0)
Definition: texture.h:236
TexMixArgument colorArg2
2nd argument of color operations
Definition: texture.h:172
Color factor
Constant color factor (for TEX_MIX_ARG_FACTOR)
Definition: texture.h:184
= Arg1 * Arg2
Definition: texture.h:99
TexMixArgument colorArg1
1st argument of color operations
Definition: texture.h:170
TexMixArgument alphaArg2
2nd argument of alpha operations
Definition: texture.h:178
BGR triplet, 3 bytes.
Definition: texture.h:45
= Arg1 + Arg2
Definition: texture.h:101
TexWrapMode wrapS
Wrap mode for 1st tex coord.
Definition: texture.h:180
bool padToNearestPowerOfTwo
Pad the image to nearest power of 2 dimensions.
Definition: texture.h:140
= Arg1 - Arg2
Definition: texture.h:103
Info about a texture.
Definition: texture.h:212
void LoadDefault()
Loads the default values.
Definition: texture.h:147
2D Point with integer coords
Definition: intpoint.h:35
Math::IntPoint originalSize
Original size of texture (as loaded from image)
Definition: texture.h:219
RGBA color.
Definition: color.h:35
void LoadDefault()
Loads the default values.
Definition: texture.h:191
TexWrapMode wrapT
Wrap mode for 2nd tex coord.
Definition: texture.h:182
BGRA triplet, 4 bytes.
Definition: texture.h:49
TextureCreateParams()
Constructor; calls LoadDefault()
Definition: texture.h:143
= Arg1
Definition: texture.h:97
TexMinFilter minFilter
Minification filter.
Definition: texture.h:136
TexMixOperation alphaOperation
Mixing operation done on alpha values.
Definition: texture.h:174
Default operation on default params (modulate on computed & texture)
Definition: texture.h:95
RGB triplet, 3 bytes.
Definition: texture.h:43