1 #ifndef HB_RENDER_WINDOW_MANAGER_H
2 #define HB_RENDER_WINDOW_MANAGER_H
6 #include <SFML/Window.hpp>
7 #include <SFML/Graphics.hpp>
8 #include "../Core/Color.h"
9 #include "../Core/Vector2d.h"
10 #include "../Core/Vector3d.h"
19 typedef sf::RenderWindow Window;
26 static void createWindow(
const Vector2d& size, std::string title, sf::Uint32 style = sf::Style::Default,
const sf::ContextSettings& settings = sf::ContextSettings());
27 static void setCamera(
const Camera& camera);
28 static Camera& getCamera();
29 static Window& getWindow();
30 static void addDrawable(std::pair<Vector3d, sf::Drawable*> drawable);
32 static void setClearColor(
const Color& color);
39 bool operator() (
const std::pair<Vector3d, sf::Drawable*>& lhs,
const std::pair<Vector3d, sf::Drawable*>& rhs)
const
41 return (lhs.first.z > rhs.first.z);
44 static std::unique_ptr<Window> s_window;
46 static sf::Color s_clear_color;
47 static std::priority_queue<std::pair<Vector3d, sf::Drawable*>, std::vector<std::pair<Vector3d, sf::Drawable*>>, Comparison> s_drawables;
Definition: Renderer.h:21
Definition: Box2DPlugin.h:6
A color represented in the RGBA format.
Definition: Color.h:6
A 2D vector.
Definition: Vector2d.h:14