An interface for 2-dimensional textures. More...

#include <texture.h>

Inheritance diagram for Texture:
Asset Clonable Component SIMDAlignedType Texture_Bitmap

Public Member Functions

 LM_INTERFACE_CLASS (Texture, Asset, 1)
 
 LM_DISABLE_COPY_AND_MOVE (Texture)
 
 LM_INTERFACE_F (0, Evaluate, Vec3(const Vec2 &uv))
 Evaluate the texture value. More...
 
- Public Member Functions inherited from Asset
 LM_INTERFACE_CLASS (Asset, Clonable, 2)
 
 LM_DISABLE_COPY_AND_MOVE (Asset)
 
 LM_INTERFACE_F (0, Load, bool(const PropertyNode *prop, Assets *assets, const Primitive *primitive))
 Load an asset from a property node. More...
 
 LM_INTERFACE_F (1, PostLoad, bool(const Scene *scene))
 Post processing of the asset. More...
 
- Public Member Functions inherited from Clonable
 LM_INTERFACE_CLASS (Clonable, Component, 1)
 
 LM_DISABLE_COPY_AND_MOVE (Clonable)
 
 LM_INTERFACE_F (0, Clone, void(Clonable *o))
 Clone the instalce. More...
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Detailed Description

An interface for 2-dimensional textures.

Member Function Documentation

Texture::LM_INTERFACE_F ( ,
Evaluate  ,
Vec3(const Vec2 &uv)   
)

Evaluate the texture value.

Parameters
uvTexture coordinates.
Returns
Texture color.