![]() |
Lysa
0.0
Lysa 3D Engine
|
A bitmap resource, stored in GPU memory.
Inheritance diagram for Image:Public Member Functions | |
| uint32 | getWidth () const |
| uint32 | getHeight () const |
| float | getAspectRatio () const |
| float2 | getSize () const |
| auto | getImage () const |
| uint32 | getIndex () const |
| const std::string & | getName () const |
| Image (const std::shared_ptr< vireo::Image > &image, const std::string &name) | |
| ~Image () override = default | |
Public Member Functions inherited from ManagedResource | |
| ManagedResource () = default | |
| ManagedResource (UniqueResource &) = delete | |
| ManagedResource & | operator= (ManagedResource &) = delete |
Public Member Functions inherited from Resource | |
| bool | operator== (const Resource &other) const |
| Resource () = default | |
| Resource (const unique_id id) | |
| virtual | ~Resource () = default |
Additional Inherited Members | |
Public Attributes inherited from ManagedResource | |
| uint32 | refCounter {0} |
Public Attributes inherited from Resource | |
| unique_id | id {INVALID_ID} |
| Image | ( | const std::shared_ptr< vireo::Image > & | image, |
| const std::string & | name | ||
| ) |
|
overridedefault |
|
inline |
|
inline |
Returns the height in pixels
|
inline |
Returns the GPU image
|
inline |
Returns the index of the image in the global GPU memory array of images
|
inline |
Returns the name of the image
|
inline |
Returns the size in number of pixels
|
inline |
Returns the width in pixels
|
friend |