Files
Destrum/destrum/include/destrum/Graphics/DebugDraw.h
T

20 lines
822 B
C++

#ifndef DEBUGDRAW_H
#define DEBUGDRAW_H
#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
namespace DebugDraw {
void Arc(const glm::vec3& center, const glm::vec3& axisA, const glm::vec3& axisB, float radius,
float fromAngle, float toAngle, const glm::vec4& color, int segments = 16);
void Circle(const glm::vec3& center, const glm::vec3& axisA, const glm::vec3& axisB, float radius,
const glm::vec4& color, int segments = 32);
void Box(const glm::vec3& center, const glm::quat& rotation, const glm::vec3& halfExtents, const glm::vec4& color);
void Sphere(const glm::vec3& center, float radius, const glm::vec4& color);
void Capsule(const glm::vec3& center, const glm::quat& rotation, float radius, float height, const glm::vec4& color);
}
#endif // DEBUGDRAW_H