Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
sprite.hpp File Reference

Renderable animatable component. More...

Go to the source code of this file.

Classes

class  wze::sprite
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

Renderable animatable component.

Constructs a sprite instance.

Sets whether the y position is affected by the angle.

Returns whether the y position is affected by the angle.

Sets whether the x position is affected by the angle.

Returns whether the x position is affected by the angle.

Sets whether the angle is attached to entities.

Returns whether the angle is attached to entities.

Sets whether the y position is attached to entities.

Returns whether the y position is attached to entities.

Sets whether the x position is attached to entities.

Returns whether the x position is attached to entities.

Sets the angle offset of the sprite.

Returns the angle offset of the sprite.

Sets the y offset of the sprite.

Returns the y offset of the sprite.

Sets the x offset of the sprite.

Returns the x offset of the sprite.

Sets whether the sprite should be animated or not.

Returns whether the sprite should be animated or not.

Sets the priority of the sprite in the render queue.

Returns the priority of the sprite in the render queue.

Sets the visibility of the sprite.

Returns the visibility of the sprite.

Sets whether the sprite is flipped on one of its axes.

Returns whether the sprite is flipped on one of its axes.

Sets the alpha color modifier of the texture.

Returns the alpha color modifier of the texture.

Sets the blue color modifier of the texture.

Returns the blue color modifier of the texture.

Sets the green color modifier of the texture.

Returns the green color modifier of the texture.

Sets the red color modifier of the texture.

Returns the red color modifier of the texture.

Sets the texture of the sprite.

Returns the texture of the sprite.

Sets whether the sprite is spatial or not.

Returns whether the sprite is spatial or not.

Sets the height of the sprite.

Returns the height of the sprite.

Sets the width of the sprite.

Returns the width of the sprite.

Sets the angle of the sprite.

Returns the angle of the sprite.

Sets the z position of the sprite.

Returns the z position of the sprite.

Sets the y position of the sprite.

Returns the y position of the sprite.

Sets the x position of the sprite.

Returns the x position of the sprite.

Author
Zana Domán
Zana Domán
Returns
X position of the sprite.
Author
Zana Domán
Parameters
xX position of the sprite.
Author
Zana Domán
Returns
Y position of the sprite.
Author
Zana Domán
Parameters
yY position of the sprite.
Author
Zana Domán
Returns
Z position of the sprite.
Note
Ignored if the sprite is not spatial.
Author
Zana Domán
Parameters
zZ position of the sprite.
Note
Ignored if the sprite is not spatial.
Author
Zana Domán
Returns
Angle of the sprite.
Author
Zana Domán
Parameters
angleAngle of the sprite.
Author
Zana Domán
Returns
Width of the sprite.
Author
Zana Domán
Parameters
widthWidth of the sprite.
Author
Zana Domán
Returns
Height of the sprite.
Author
Zana Domán
Parameters
heightHeight of the sprite.
Author
Zana Domán
Returns
Whether the sprite is spatial or not.
Author
Zana Domán
Parameters
spatialWhether the sprite is spatial or not.
Author
Zana Domán
Returns
Texture of the sprite.
Author
Zana Domán
Parameters
textureTexture of the sprite.
Author
Zana Domán
Returns
Red color modifier of the texture.
Author
Zana Domán
Parameters
color_rRed color modifier of the texture.
Author
Zana Domán
Returns
Green color modifier of the texture.
Author
Zana Domán
Parameters
color_gGreen color modifier of the texture.
Author
Zana Domán
Returns
Blue color modifier of the texture.
Author
Zana Domán
Parameters
color_bBlue color modifier of the texture.
Author
Zana Domán
Returns
Alpha color modifier of the texture.
Author
Zana Domán
Parameters
color_aAlpha color modifier of the texture.
Author
Zana Domán
Returns
Whether the sprite is flipped on one of its axes.
Author
Zana Domán
Parameters
flipWhether the sprite is flipped on one of its axes.
Author
Zana Domán
Returns
Visibility of the sprite.
Author
Zana Domán
Parameters
visibleVisibility of the sprite.
Author
Zana Domán
Returns
Priority of the sprite in the render queue.
Author
Zana Domán
Parameters
priorityPriority of the sprite in the render queue.
Author
Zana Domán
Returns
Whether the sprite should be animated or not.
Author
Zana Domán
Parameters
animatedWhether the sprite should be animated or not.
Author
Zana Domán
Returns
X offset of the sprite.
Author
Zana Domán
Parameters
x_offsetX offset of the sprite.
Author
Zana Domán
Returns
Y offset of the sprite.
Author
Zana Domán
Parameters
y_offsetY offset of the sprite.
Author
Zana Domán
Returns
Angle offset of the sprite.
Author
Zana Domán
Parameters
angle_offsetAngle offset of the sprite.
Author
Zana Domán
Returns
Whether the x position is attached to entities.
Author
Zana Domán
Parameters
attach_xWhether the x position is attached to entities.
Author
Zana Domán
Returns
Whether the y position is attached to entities.
Author
Zana Domán
Parameters
attach_yWhether the y position is attached to entities.
Author
Zana Domán
Returns
Whether the angle is attached to entities.
Author
Zana Domán
Parameters
attach_angleWhether the angle is attached to entities.
Author
Zana Domán
Returns
Whether the x position is affected by the angle.
Author
Zana Domán
Parameters
x_angle_lockWhether the x position is affected by the angle.
Author
Zana Domán
Returns
Whether the y position is affected by the angle.
Author
Zana Domán
Parameters
y_angle_lockWhether the y position is affected by the angle.
Author
Zana Domán
Parameters
xX position of the sprite.
yY position of the sprite.
zZ position of the sprite.
angleAngle of the sprite.
widthWidth of the sprite.
heightHeight of the sprite.
spatialWhether the sprite is spatial or not.
textureTexture of the sprite.
color_rRed color modifier of the texture.
color_gGreen color modifier of the texture.
color_bBlue color modifier of the texture.
color_aAlpha color modifier of the texture.
flipWhether the sprite is flipped on one of its axes.
visibleVisibility of the sprite.
priorityPriority of the sprite in the render queue.
animatedWhether the sprite should be animated or not.
x_offsetX offset of the sprite.
y_offsetY offset of the sprite.
angle_offsetAngle offset of the sprite.
attach_xWhether the x position is attached to entities.
attach_yWhether the y position is attached to entities.
attach_angleWhether the angle is attached to entities.
x_angle_lockWhether the x position is affected by the angle.
y_angle_lockWhether the y position is affected by the angle.

Definition in file sprite.hpp.