An avatar resource.
More...
#include <AvatarTextureRes.h>
An avatar resource.
- Author
- Michael Imamura
HoverRace::Display::AvatarTextureRes::AvatarTextureRes |
( |
const std::string & |
avatarId | ) |
|
virtual HoverRace::Display::AvatarTextureRes::~AvatarTextureRes |
( |
| ) |
|
|
inlinevirtual |
std::string HoverRace::Display::AvatarTextureRes::GetId |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieve the ID for this resource.
The ID should be unique for every resource being pointed at, so two instances that point to the same resource (e.g. a file) should return the same ID.
This allows loaded resources to be cached, so if two instances point to, say, the same file, then the resource will be loaded once (although this is left as an exercise for the Display).
- Returns
- The identifier.
Implements HoverRace::Display::BaseRes.
std::unique_ptr< std::istream > HoverRace::Display::AvatarTextureRes::Open |
( |
| ) |
const |
|
overridevirtual |
const std::string HoverRace::Display::AvatarTextureRes::avatarId |
|
private |
const std::string HoverRace::Display::AvatarTextureRes::id |
|
private |
The documentation for this class was generated from the following files: