![]() |
Lysa
0.0
Lysa 3D Engine
|
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 |
|
pure virtual |
Returns the height in pixels on the texture
Implemented in lysa::ImageTexture::getHeight()
|
inlinevirtual |
Returns the size in pixels on the texture
|
pure virtual |
Returns the width in pixels on the texture
Implemented in lysa::ImageTexture::getWidth()