![]() |
Meteor2D
dev internal
Meteor is a lightweight 2D game engine.
|
This class holds an image that can be rendererd to the screen. More...
#include <texture.h>

Public Member Functions | |
| MTexture (std::string path) | |
| Constructor. | |
| std::string | getSrcPath () |
| Gets the img source path in disk. | |
| SDL_Texture * | getCoreTexture () |
| get the internal SDL Texture implementation | |
| SVector2 | getSize () |
| returns the size of Texture in pixel | |
| bool | valid () |
Public Member Functions inherited from meteor::MEntity | |
| virtual bool | equals (MEntity *other) |
| Checks equality between two entities. | |
| std::string | getName () |
| void | setName (std::string name) |
| Sets name of entity. | |
| virtual std::string | toString () |
| Get this object as a string. | |
Static Public Member Functions | |
| static bool | initialiseTextureLoader () |
| Initialised the SDL texture loader DO NOT TOUCH or INVOKE!! | |
| static void | setGenerationRenderer (MRenderer *renderer) |
| Sets the internal renderer used for texture generation. DO NOT TOUCH or INVOKE!! | |
Additional Inherited Members | |
Protected Attributes inherited from meteor::MEntity | |
| std::string | name |
This class holds an image that can be rendererd to the screen.
| meteor::MTexture::MTexture | ( | std::string | path | ) |
Constructor.
| path | Texture file path |
|
inline |
get the internal SDL Texture implementation
|
inline |
returns the size of Texture in pixel
|
inline |
Gets the img source path in disk.
|
static |
Initialised the SDL texture loader DO NOT TOUCH or INVOKE!!
|
inlinestatic |
Sets the internal renderer used for texture generation. DO NOT TOUCH or INVOKE!!
| renderer |
|
inline |