Texture
Types
uint32_t |
|
uint32_t |
|
uint32_t |
|
uint32_t |
|
uint32_t |
Fields
uint32_t |
Functions
uint32_t |
|
bool |
|
bool |
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 Clamp
-
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 InterpolationOn
-
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 MipMappingOn
-
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 Tiling