|
Arcade Shooter
|
Represents a 2D grid of texels. More...
#include <Texture.h>
Public Member Functions | |
| virtual bool | Load (const std::string &path, ResourceManager *pManager) |
| Load the desired font into memory. More... | |
| int | GetWidth () const |
| Gets the width of the texture in pixels. More... | |
| int | GetHeight () const |
| Gets the height of the texture in pixels. More... | |
| Vector2 | GetSize () const |
| Gets the dimensions of the texture. More... | |
| Vector2 | GetCenter () const |
| Gets the center position of the texture. More... | |
| virtual bool | IsCloneable () const |
| Used to determine if the texture is cloneable. More... | |
| virtual ALLEGRO_BITMAP * | GetAllegroBitmap () const |
| Get the allegro bitmap representation of the texture. More... | |
Public Member Functions inherited from KatanaEngine::Resource | |
| unsigned short | GetResourceID () const |
| Gets the ID of the resource. More... | |
Protected Member Functions | |
| virtual void | SetTexture (ALLEGRO_BITMAP *pBitmap) |
| Used to set the underlaying allegro bitmap. More... | |
Protected Member Functions inherited from KatanaEngine::Resource | |
| void | Split (const std::string &line, const char delimeter, std::vector< std::string > &elements) |
| Splits a string into a vector of strings. More... | |
| void | ParseComments (std::string &line) |
| Removes c-style, single-line comments from a line of text. More... | |
| void | TrimLine (std::string &line) |
| Removes white-space at the front and end of a line of text. More... | |
| ResourceManager * | GetResourceManager () |
| Gets a pointer to the ResourceManager that was used to load the resource. More... | |
| virtual Resource * | Clone () |
| Clones a resource. More... | |
Represents a 2D grid of texels.
|
inlinevirtual |
Get the allegro bitmap representation of the texture.
|
inline |
Gets the center position of the texture.
|
inline |
Gets the height of the texture in pixels.
|
inline |
Gets the dimensions of the texture.
|
inline |
Gets the width of the texture in pixels.
|
inlinevirtual |
Used to determine if the texture is cloneable.
Implements KatanaEngine::Resource.
|
virtual |
Load the desired font into memory.
| path | The path to the desired font. |
| pManager | A pointer to the ResourceManager that will manage the font. |
Implements KatanaEngine::Resource.
Reimplemented in KatanaEngine::RenderTarget.
|
protectedvirtual |
Used to set the underlaying allegro bitmap.
| pBitmap | The bitmap to set. |
1.8.13