![]() |
Lysa
0.0
Lysa 3D Engine
|
Represents an image-based texture resource.
Combines an image with a sampler and an optional transformation matrix.
Inheritance diagram for ImageTexture:Public Member Functions | |
| ImageTexture () = default | |
| ImageTexture (const unique_id image, const uint32 samplerIndex) | |
Public Member Functions inherited from UnmanagedResource | |
| UnmanagedResource () | |
| UnmanagedResource (const Resource &other) | |
Public Member Functions inherited from Resource | |
| bool | operator== (const Resource &other) const |
| Resource () = default | |
| Resource (const unique_id id) | |
| virtual | ~Resource () = default |
Public Attributes | |
| unique_id | image {INVALID_ID} |
| uint32 | samplerIndex {0} |
| float3x3 | transform {float3x3::identity()} |
Public Attributes inherited from Resource | |
| unique_id | id {INVALID_ID} |
|
default |
Default constructor for ImageTexture.
Constructs an ImageTexture with a specific image and sampler.
| image | Unique identifier of the image resource. |
| samplerIndex | Index of the sampler to use. |
| unique_id image {INVALID_ID} |
Unique identifier of the associated image resource.
| uint32 samplerIndex {0} |
Index of the sampler to be used for this texture.
| float3x3 transform {float3x3::identity()} |
3x3 transformation matrix for texture coordinates.