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

Subsystem to handle graphics. More...

Go to the source code of this file.

Classes

class  wze::renderer
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

Subsystem to handle graphics.

Sets the alpha color modifier of the plane.

Returns the alpha color modifier of the plane.

Sets the blue color modifier of the plane.

Returns the blue color modifier of the plane.

Sets the green color modifier of the plane.

Returns the green color modifier of the plane.

Sets the red color modifier of the plane.

Returns the red color modifier of the plane.

Sets the background texture of the space.

Returns the background texture of the space.

Sets the alpha color modifier of the space.

Returns the alpha color modifier of the space.

Sets the blue color modifier of the space.

Returns the blue color modifier of the space.

Sets the green color modifier of the space.

Returns the green color modifier of the space.

Sets the red color modifier of the space.

Returns the red color modifier of the space.

Sets the texture of the background.

Returns the texture of the background.

Sets the blue color modifier of the background.

Returns the blue color modifier of the background.

Sets the green color modifier of the background.

Returns the green color modifier of the background.

Sets the red color modifier of the background.

Returns the red color modifier of the background.

Sets the origo y of the screen.

Returns the origo y of the screen.

Sets the origo x of the screen.

Returns the origo x of the screen.

Presents the new frame.

Renders a renderable instance onto the new frame.

Returns whether a renderable instance is inside the bounds of the screen or not.

Transforms a renderable instance.

Returns the visibility of a renderable instance.

Opens the plane to render on.

Opens the space to render on.

Opens a new frame to render on.

Private default constructor to prevent instantiation.

Author
Zana Domán, Gunics Roland
Zana Domán
Zana Domán
Warning
If the new frame cannot be opened, throws wze::exception.
Author
Zana Domán
Warning
If the space cannot be opened, throws wze::exception.
Author
Zana Domán
Warning
If the plane cannot be opened, throws wze::exception.
Author
Zana Domán, Gunics Roland
Parameters
instanceRenderable instance.
Returns
Visibility of the renderable instance.
Author
Zana Domán, Gunics Roland
Parameters
instanceRenderable instance.
Author
Zana Domán
Parameters
instanceRenderable instance.
Returns
Whether the renderable instance is inside the bounds of the screen or not.
Author
Zana Domán
Parameters
instanceRenderable instance.
Warning
If the renderable instance cannot be rendered, throws wze::exception.
Author
Zana Domán
Warning
If the new frame cannot be presented, throws wze::exception.
Author
Zana Domán
Returns
Origo x of the screen.
Author
Zana Domán
Parameters
origo_xOrigo x of the screen.
Author
Zana Domán
Returns
Origo y of the screen.
Author
Zana Domán
Parameters
origo_yOrigo y of the screen.
Author
Zana Domán
Returns
Red color modifier of the background.
Author
Zana Domán
Parameters
background_color_rRed color modifier of the background.
Author
Zana Domán
Returns
Green color modifier of the background.
Author
Zana Domán
Parameters
background_color_gGreen color modifier of the background.
Author
Zana Domán
Returns
Blue color modifier of the background.
Author
Zana Domán
Parameters
background_color_bBlue color modifier of the background.
Author
Zana Domán
Returns
texture of the background.
Note
The size of the texture should match the size of the game window.
Author
Zana Domán
Parameters
background_texturetexture of the background.
Note
The size of the texture should match the size of the game window.
Author
Zana Domán
Returns
Red color modifier of the space.
Author
Zana Domán
Parameters
space_color_rRed color modifier of the space.
Author
Zana Domán
Returns
Green color modifier of the space.
Author
Zana Domán
Parameters
space_color_gGreen color modifier of the space.
Author
Zana Domán
Returns
Blue color modifier of the space.
Author
Zana Domán
Parameters
space_color_bBlue color modifier of the space.
Author
Zana Domán
Returns
Alpha color modifier of the space.
Author
Zana Domán
Parameters
space_color_aAlpha color modifier of the space.
Author
Zana Domán
Returns
Background texture of the space.
Note
The texture should be a square whose side length is equal to the diagonal of the game window.
Author
Zana Domán
Parameters
space_textureBackground texture of the space.
Note
The texture should be a square whose side length is equal to the diagonal of the game window.
Author
Zana Domán
Returns
Red color modifier of the plane.
Author
Zana Domán
Parameters
plane_color_rRed color modifier of the plane.
Author
Zana Domán
Returns
Green color modifier of the plane.
Author
Zana Domán
Parameters
plane_color_gGreen color modifier of the plane.
Author
Zana Domán
Returns
Blue color modifier of the plane.
Author
Zana Domán
Parameters
plane_color_bBlue color modifier of the plane.
Author
Zana Domán
Returns
Alpha color modifier of the plane.
Author
Zana Domán
Parameters
plane_color_aAlpha color modifier of the plane.

Definition in file renderer.hpp.