|
| | Texture (const std::string &filename, bool lonely=false, float scale=1, float rotation=0) |
| | Create an texture, loading a file. More...
|
| |
| | Texture () |
| | Create an empty texture. More...
|
| |
| | Texture (const Texture &)=default |
| | A texture is copy constructable. More...
|
| |
| | Texture (const Image &) |
| | A textrue can be loaded from an image. More...
|
| |
| Texture & | operator= (const Texture &)=default |
| | An texture is assignable. More...
|
| |
| | ~Texture () override=default |
| | Texture destructor, will not unload ressources. More...
|
| |
| void | drawOn (RAY::Window &) override |
| | draw texture on a window More...
|
| |
| Texture & | use (const std::string &filename) |
| | Load texture from file, lets one use one entity for multiple files. More...
|
| |
| void | unload () |
| | Unload the current texture (calls to drawOn will no-op). More...
|
| |
| const std::string & | getResourcePath () const |
| |
| | Rectangle (const Vector2 &position, const Vector2 &dimensions, const Color &color=WHITE, float scale=1, float rotation=0) |
| | Rectangle constructor. More...
|
| |
| | Rectangle (int x, int y, int width, int height, const Color &color=WHITE) |
| | Rectangle constructor. More...
|
| |
| | Rectangle (const Rectangle &)=default |
| | A default copy constructor. More...
|
| |
| Rectangle & | operator= (const Rectangle &)=default |
| | A rectangle is assignable. More...
|
| |
| | ~Rectangle () override=default |
| | A default destructor. More...
|
| |
| const Vector2 & | getDimensions (void) |
| |
| float | getWidth (void) const |
| |
| float | getHeight (void) const |
| |
| Rectangle & | setDimensions (const Vector2 &dimensions) |
| | set dimensions More...
|
| |
| Rectangle & | incrementWidth (float width) |
| | increment width of the rectangle More...
|
| |
| Rectangle & | incrementHeight (float height) |
| | increment height of the rectangle More...
|
| |
| Rectangle & | setHeight (float height) |
| | set rectangle's height More...
|
| |
| Rectangle & | setWidth (float width) |
| | set rectangle's width More...
|
| |
| Rectangle & | setDimensions (float x, float y) |
| | set dimensions More...
|
| |
| virtual void | drawOn (RAY::Image &image) override |
| | Draw point on image. More...
|
| |
| | ADrawable2D (const Vector2 &position, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (int x, int y, const RAY::Color &color, float scale=1, float rotation=0) |
| | ADrawable constructor. More...
|
| |
| | ADrawable2D (const ADrawable2D &)=default |
| | A default copy constructor. More...
|
| |
| | ~ADrawable2D () override=default |
| | A default destructor. More...
|
| |
| const RAY::Vector2 & | getPosition (void) const |
| |
| const RAY::Color & | getColor (void) const |
| |
| ADrawable2D & | setPosition (const Vector2 &position) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setPosition (int x, int y) |
| | set Top-left position More...
|
| |
| ADrawable2D & | setColor (const Color &color) |
| | set color More...
|
| |
| float | getScale () const |
| | scale getter More...
|
| |
| void | setScale (float scale) |
| | scale setters More...
|
| |
| virtual | ~IDrawable ()=default |
| |
Object representation of a texture.