Lysa  0.0
Lysa 3D Engine
ImageTexture Struct Reference

Detailed Description

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}
 

Constructor & Destructor Documentation

ImageTexture ( )
default

Default constructor for ImageTexture.

ImageTexture ( const unique_id  image,
const uint32  samplerIndex 
)
inline

Constructs an ImageTexture with a specific image and sampler.

Parameters
imageUnique identifier of the image resource.
samplerIndexIndex of the sampler to use.

Member Data Documentation

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.