Lysa  0.0
Lysa 3D Engine
Texture Class Referenceabstract

Detailed Description

Base class for textures resources.

+ Inheritance diagram for Texture:

Public Member Functions

 Texture (const std::string &name)
 
virtual uint32 getWidth () const = 0
 
virtual uint32 getHeight () const = 0
 
virtual float2 getSize () const
 
- Public Member Functions inherited from Resource
 Resource (const std::string &name)
 
auto getId () const
 
const auto & getName () const
 
bool operator== (const Resource &other) const
 
bool operator< (const Resource &other) const
 
bool operator> (const Resource &other) const
 
virtual std::shared_ptr< Resource > duplicate () const
 
- Public Member Functions inherited from Object
void connect (const Signal::signal &name, const Signal::Handler &handler)
 
void connect (const Signal::signal &name, const std::function< void ()> &handler)
 
void emit (const Signal::signal &name, void *params=nullptr)
 
virtual std::string toString () const
 
 Object () = default
 
virtual ~Object () = default
 

Constructor & Destructor Documentation

Texture ( const std::string &  name)

Creates a Texture

Parameters
nameResource name

Member Function Documentation

virtual uint32 getHeight ( ) const
pure virtual

Returns the height in pixels on the texture

Implemented in lysa::ImageTexture::getHeight()

virtual float2 getSize ( ) const
inlinevirtual

Returns the size in pixels on the texture

virtual uint32 getWidth ( ) const
pure virtual

Returns the width in pixels on the texture

Implemented in lysa::ImageTexture::getWidth()