![]() |
Lysa
0.0
Lysa 3D Engine
|
Image-based texture stored in GPU memory
Inheritance diagram for ImageTexture:Public Member Functions | |
| ImageTexture (const std::shared_ptr< Image > &image, uint32 samplerIndex) | |
| const auto & | getImage () const |
| uint32 | getWidth () const override |
| uint32 | getHeight () const override |
| auto | getSamplerIndex () const |
Public Member Functions inherited from Texture | |
| Texture (const std::string &name) | |
| 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 |
Protected Attributes | |
| std::shared_ptr< Image > | image {nullptr} |
| uint32 | samplerIndex {0} |
Creates an ImageTexture from an existing Image
|
inlineoverridevirtual |
Returns the height in pixels on the texture
Implements lysa::Texture::getHeight()
|
inline |
Returns the attached Image
|
inline |
|
inlineoverridevirtual |
Returns the width in pixels on the texture
Implements lysa::Texture::getWidth()
|
protected |
|
protected |