77 TEX_MIN_FILTER_NEAREST,
78 TEX_MIN_FILTER_LINEAR,
79 TEX_MIN_FILTER_NEAREST_MIPMAP_NEAREST,
80 TEX_MIN_FILTER_LINEAR_MIPMAP_NEAREST,
81 TEX_MIN_FILTER_NEAREST_MIPMAP_LINEAR,
82 TEX_MIN_FILTER_LINEAR_MIPMAP_LINEAR
91 TEX_MAG_FILTER_NEAREST,
102 TEX_WRAP_CLAMP_TO_BORDER,
284 if ( (! Valid()) && (! other.
Valid()) )
293 return id < other.
id;
299 if (Valid() != other.
Valid())
301 if ( (! Valid()) && (! other.
Valid()) )
304 return id == other.
id;
Color from texture unit 1.
Definition: texture.h:135
bool Valid() const
Returns whether the texture is valid (ID != 0)
Definition: texture.h:268
Try to determine automatically (may not work)
Definition: texture.h:45
bool mipmap
Whether to generate mipmaps.
Definition: texture.h:158
(Source) color of textured fragment (diffuse in DirectX; primary color in OpenGL) ...
Definition: texture.h:143
TexMixOperation
Multitexture mixing operation.
Definition: texture.h:110
bool operator<(const Texture &other) const
Comparator for use in texture maps and sets.
Definition: texture.h:280
TexMixArgument
Multitexture mixing argument.
Definition: texture.h:128
unsigned int id
ID of the texture in graphics engine; 0 = invalid texture.
Definition: texture.h:259
Color from current texture.
Definition: texture.h:131
TexWrapMode
Wrapping mode for texture coords.
Definition: texture.h:99
Normal mapping mode.
Definition: texture.h:223
Constant color (texture factor in DirectX; texture env color in OpenGL)
Definition: texture.h:145
Math::IntPoint size
Size of texture.
Definition: texture.h:261
Color from texture unit 2.
Definition: texture.h:137
TexMagFilter
Texture magnification filter.
Definition: texture.h:89
Parameters for a texture unit.
Definition: texture.h:180
Color from texture unit 3.
Definition: texture.h:139
bool operator==(const Texture &other) const
Comparator.
Definition: texture.h:297
TexMinFilter
Texture minification filter.
Definition: texture.h:75
Color computed by previous texture unit (current in DirectX; previous in OpenGL)
Definition: texture.h:141
RGBA triplet, 4 bytes.
Definition: texture.h:51
TexImgFormat format
Format of source image data.
Definition: texture.h:160
Parameters for texture coordinate generation.
Definition: texture.h:234
Eye linear mode.
Definition: texture.h:219
TexImgFormat
Format of image data.
Definition: texture.h:42
Spherical mapping mode.
Definition: texture.h:221
Color structs and related functions.
Parameters for texture creation.
Definition: texture.h:155
Color from texture unit 0.
Definition: texture.h:133
void SetInvalid()
Sets the ID to invalid value (0)
Definition: texture.h:274
TexFilter filter
General texture filtering mode.
Definition: texture.h:162
Color factor
Constant color factor (for TEX_MIX_ARG_FACTOR)
Definition: texture.h:199
= Arg1 * Arg2
Definition: texture.h:117
BGR triplet, 3 bytes.
Definition: texture.h:49
= Arg1 + Arg2
Definition: texture.h:119
bool padToNearestPowerOfTwo
Pad the image to nearest power of 2 dimensions.
Definition: texture.h:164
Namespace for (new) graphics code.
Definition: app.h:49
No texture generation.
Definition: texture.h:215
= Arg1 - Arg2
Definition: texture.h:121
Info about a texture.
Definition: texture.h:256
Definition: texture.h:236
TexFilter
General texture filtering mode.
Definition: texture.h:62
void LoadDefault()
Loads the default values.
Definition: texture.h:167
Reflection mapping mode.
Definition: texture.h:225
2D Point with integer coords
Definition: intpoint.h:41
Math::IntPoint originalSize
Original size of texture (as loaded from image)
Definition: texture.h:263
RGBA color.
Definition: color.h:39
void LoadDefault()
Loads the default values.
Definition: texture.h:202
BGRA triplet, 4 bytes.
Definition: texture.h:53
= Arg1
Definition: texture.h:115
Default operation on default params (modulate on computed & texture)
Definition: texture.h:113
RGB triplet, 3 bytes.
Definition: texture.h:47
Object linear mode.
Definition: texture.h:217