-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDebugDraw.hpp
30 lines (25 loc) · 1.06 KB
/
DebugDraw.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef DEBUG_DRAW_HPP_INCLUDED
#define DEBUG_DRAW_HPP_INCLUDED
#include "Collision.hpp"
#include <SFML/Graphics/Color.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/RenderTarget.hpp>
class DebugDraw final
{
public:
DebugDraw(sf::RenderTarget& target);
void draw(const Aabb& aabb, const sf::Vector2f position,
sf::Color color = sf::Color::White);
void draw(const Circle& circle, const sf::Vector2f position,
sf::Color color = sf::Color::White);
void draw(const Ray& ray, const sf::Vector2f position,
sf::Color color = sf::Color::White);
void draw(const Manifold& manifold, sf::Color color = sf::Color::White);
void draw(const Raycast& raycast, sf::Color color = sf::Color::White);
void draw(const Shape& shape, const sf::Vector2f position,
sf::Color color = sf::Color::White);
private:
sf::RenderTarget& mTarget;
};
#endif // DEBUG_DRAW_HPP_INCLUDED