Texture
Types
uint32_t | Tiling |
uint32_t | Interpolation |
uint32_t | MipMapping |
uint32_t | Parameterization |
uint32_t | Modifiers |
Fields
Repeat |
|
Clamp |
|
Trim |
|
InterpolationOn |
|
InterpolationOff |
|
MipMappingOn |
|
MipMappingOff |
|
UV |
|
None |
|
Decal |
|
ImageKey | image_key |
MatrixKey | matrix |
uint32_t | flags |
Functions
uint32_t | PackFlags |
Texture |
|
Texture |
|
bool | operator== |
bool | operator!= |
Detailed Description
-
class
Texture
The Texture class is used to define a Material.
Public Types
-
enum
Tiling
Values:
-
enumerator
Clamp
Textures don’t repeat. Any UV coordinates outside the [0.0, 1.0] range are clamped to 0.0 or 1.0, whichever is closer.
-
enumerator
Trim
The texture will get mapped normally for parameters in the range [0,1], but parameters outside that range will act as if the texture at that location is transparent.
-
enumerator
-
enum
Interpolation
Values:
-
enumerator
InterpolationOn
Enable interpolation of texel colors (also known as linear filtering).
-
enumerator
InterpolationOff
Disable interpolation. The texture image will appear pixelated when enlarged.
-
enumerator
-
enum
MipMapping
Values:
-
enumerator
MipMappingOn
Turn on mipmapping to improve image quality at the expense of slightly more memory usage. Depending on the platform, mipmapping may take effect only for textures with dimensions that are powers of two.
-
enumerator
MipMappingOff
Disable mipmapping. Textures may appear noisy when reduced in size.
-
enumerator
-
enum
Parameterization
Values:
Public Functions
-
inline
Texture
()
Public Members
Public Static Functions
-
static inline uint32_t
PackFlags
(Tiling tiling, Interpolation interpolation, MipMapping mipmapping, Parameterization parameterization, Modifiers modifiers) This method generates an integer value representing the desired settings for tiling, interpolation, mipmapping, parameterization, and modifiers.
-
enum