#include <Image.hpp>
|
| Image ()=default |
|
| Image (const std::string &textureName) |
|
| Image (const Texture &texture) |
|
void | load (const Image &image) |
|
void | load (const std::string &textureName) |
|
void | load (const Texture &texture) |
|
const FloatRect & | clipRect () const |
|
void | setClipRect (float x, float y, u16 width, u16 height) |
|
const FloatRect & | posRect () const |
|
void | setPosRect (float x, float y, u16 width, u16 height) |
|
u16 | width () const |
|
u16 | height () const |
|
void | setColor (const Color &color) |
|
void | setAlphaMod (u8 alpha) |
|
void | setFlip (bool isFlipped) |
|
virtual | ~IDrawable ()=default |
| Virtual destructor. More...
|
|
virtual | ~Transformable ()=default |
|
void | setPosition (float x, float y, float z=0) |
|
void | setPosition (const Vector3f &position) |
|
void | setOrigin (float x, float y, float z=0) |
|
void | setOrigin (const Vector3f &origin) |
|
void | setScale (float factorX, float factorY, float factorZ=1) |
|
void | setScale (const Vector3f &factors) |
|
void | setRotation (float angle) |
|
void | setRotation (float angle, const Vector3f &axis) |
|
const Vector3f & | getPosition () const |
|
const Vector3f & | getOrigin () const |
|
const Vector3f & | getScale () const |
|
float | getRotation () const |
|
void | move (float offsetX, float offsetY, float offsetZ=0) |
|
void | move (const Vector3f &offset) |
|
void | scale (float factorX, float factorY, float factorZ=1) |
|
void | scale (const Vector3f &factor) |
|
void | rotate (float angle) |
|
void | rotate (float angle, const Vector3f &axis) |
|
const Transform & | getTransform () const |
|
Definition at line 25 of file Image.hpp.
§ Image() [1/3]
§ Image() [2/3]
gk::Image::Image |
( |
const std::string & |
textureName | ) |
|
§ Image() [3/3]
gk::Image::Image |
( |
const Texture & |
texture | ) |
|
§ clipRect()
const FloatRect& gk::Image::clipRect |
( |
| ) |
const |
|
inline |
§ draw()
Draw the object to a render target.
This is a pure virtual function that has to be implemented by the derived class to define how the drawable should be drawn.
- Parameters
-
target | Render target to draw to |
states | Current render states |
Implements gk::IDrawable.
Definition at line 124 of file Image.cpp.
§ height()
u16 gk::Image::height |
( |
| ) |
const |
|
inline |
§ load() [1/3]
void gk::Image::load |
( |
const Image & |
image | ) |
|
§ load() [2/3]
void gk::Image::load |
( |
const std::string & |
textureName | ) |
|
§ load() [3/3]
void gk::Image::load |
( |
const Texture & |
texture | ) |
|
§ posRect()
const FloatRect& gk::Image::posRect |
( |
| ) |
const |
|
inline |
§ setAlphaMod()
void gk::Image::setAlphaMod |
( |
u8 |
alpha | ) |
|
|
inline |
§ setClipRect()
void gk::Image::setClipRect |
( |
float |
x, |
|
|
float |
y, |
|
|
u16 |
width, |
|
|
u16 |
height |
|
) |
| |
§ setColor()
void gk::Image::setColor |
( |
const Color & |
color | ) |
|
|
inline |
§ setFlip()
void gk::Image::setFlip |
( |
bool |
isFlipped | ) |
|
|
inline |
§ setPosRect()
void gk::Image::setPosRect |
( |
float |
x, |
|
|
float |
y, |
|
|
u16 |
width, |
|
|
u16 |
height |
|
) |
| |
§ updateVertexBuffer()
void gk::Image::updateVertexBuffer |
( |
| ) |
const |
|
protected |
§ width()
u16 gk::Image::width |
( |
| ) |
const |
|
inline |
§ m_clipRect
§ m_color
§ m_height
u16 gk::Image::m_height = 0 |
|
private |
§ m_isFlipped
bool gk::Image::m_isFlipped = false |
|
private |
§ m_posRect
§ m_texture
const Texture* gk::Image::m_texture = nullptr |
|
protected |
§ m_vbo
§ m_width
u16 gk::Image::m_width = 0 |
|
private |
The documentation for this class was generated from the following files: