raylibstarter 0.1.0
renderer.h
Go to the documentation of this file.
1#pragma once
2
3#include <raylib.h>
4
5#include "scene.h"
6#include "sprite.h"
7
8namespace game::core {
9 /**
10 * @brief A central place for graphics and rendering oriented functions
11 */
12 class Renderer final {
13 public:
14 /**
15 * @brief Draw a sprite to the screen. Oriented to the size, position and rotation angle of the sprite object.
16 * The method draws the texture of the sprite in any case - even if its visibility attribute is set to false.
17 * @param sprite Sprite object to be drawn.
18 */
19 static void DrawTexture(const std::shared_ptr<game::core::Sprite> &sprite);
20 };
21}
A central place for graphics and rendering oriented functions.
Definition: renderer.h:12
static void DrawTexture(const std::shared_ptr< game::core::Sprite > &sprite)
Draw a sprite to the screen. Oriented to the size, position and rotation angle of the sprite object....
Definition: renderer.cpp:5