API Documentation
Public Attributes | List of all members
nkGraphics::TextureInformation Struct Referencefinal

Holds the information about a decoded texture information. More...

Public Attributes

int _index = -1
 The texture, as the index within the DecodedTextureData set counterpart. If left to -1, then there is no texture.
 
int _textureCoordinatesIndex = 0
 The texture coordinate attribute index used for the texture.
 
int _transformedTextureCoordinatesIndex = 0
 If transformed, the texture coordinate attribute index used.
 
nkMaths::Vector _uvOffset = nkMaths::Vector(0, 0)
 If transformed, the offset to apply to the uv.
 
nkMaths::Vector _uvScale = nkMaths::Vector(1, 1)
 If transformed, the scale to apply to the uv.
 
float _uvOrientation = 0.f
 If transformed, the orientation in radians to apply to the uv.
 
TextureChannels _channels
 The texture used channels.
 
bool _transformedTextureCoordinates = false
 Whether the texture coordinates should be transformed (true) or not (false). If true, then the transformed uv index, offset, scale and orientation can be used for the best results.
 

Detailed Description

Holds the information about a decoded texture information.

This structure describes various information about a texture and how to use it in the rendering pipeline.
One particular point is that the information can encode a transformation that needs to happen before sampling the texture. This transformation follows the definition of the KHR_texture_transform glTF extension.


The documentation for this struct was generated from the following file: