HoverRace
2.0
|
Base class for loadable textures. More...
#include <Res.h>
Classes | |
struct | ImageData |
Public Member Functions | |
virtual | ~Res () |
virtual const ImageData * | GetImageData () |
If IsGenerated() is true , returns the image data necessary to create the texture. More... | |
virtual bool | IsGenerated () const |
Check if this texture is generated from memory rather than an input stream. More... | |
Public Member Functions inherited from HoverRace::Display::BaseRes | |
virtual | ~BaseRes () |
virtual std::string | GetId () const =0 |
Retrieve the ID for this resource. More... | |
virtual std::unique_ptr< std::istream > | Open () const =0 |
Open the stream for reading. More... | |
Base class for loadable textures.
|
inlinevirtual |
|
inlinevirtual |
If IsGenerated() is true
, returns the image data necessary to create the texture.
nullptr
if not a generated texture. Reimplemented in HoverRace::Display::SpriteTextureRes.
|
inlinevirtual |
Check if this texture is generated from memory rather than an input stream.
If this texture is generated, then the image data is retrieved via GetImageData() instead of Open().
true
if generated, false
if not. Reimplemented in HoverRace::Display::SpriteTextureRes.