HoverRace  2.0
Classes | Public Member Functions | List of all members
HoverRace::Display::Res< Texture > Class Template Reference

Base class for loadable textures. More...

#include <Res.h>

+ Inheritance diagram for HoverRace::Display::Res< Texture >:

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...
 

Detailed Description

template<>
class HoverRace::Display::Res< Texture >

Base class for loadable textures.

Author
Michael Imamura

Constructor & Destructor Documentation

virtual HoverRace::Display::Res< Texture >::~Res ( )
inlinevirtual

Member Function Documentation

virtual const ImageData* HoverRace::Display::Res< Texture >::GetImageData ( )
inlinevirtual

If IsGenerated() is true, returns the image data necessary to create the texture.

Returns
The image data, or nullptr if not a generated texture.

Reimplemented in HoverRace::Display::SpriteTextureRes.

virtual bool HoverRace::Display::Res< Texture >::IsGenerated ( ) const
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().

Returns
true if generated, false if not.

Reimplemented in HoverRace::Display::SpriteTextureRes.


The documentation for this class was generated from the following file: