Lysa  0.0
Lysa 3D Engine
Image Class Reference

Detailed Description

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}
 

Constructor & Destructor Documentation

Image ( const std::shared_ptr< vireo::Image > &  image,
const std::string &  name 
)
~Image ( )
overridedefault

Member Function Documentation

float getAspectRatio ( ) const
inline
uint32 getHeight ( ) const
inline

Returns the height in pixels

auto getImage ( ) const
inline

Returns the GPU image

uint32 getIndex ( ) const
inline

Returns the index of the image in the global GPU memory array of images

const std::string& getName ( ) const
inline

Returns the name of the image

float2 getSize ( ) const
inline

Returns the size in number of pixels

uint32 getWidth ( ) const
inline

Returns the width in pixels

Friends And Related Function Documentation

friend class ImageManager
friend