2022-07-07 21:31:00 +02:00
|
|
|
#ifndef RENDERUTILS_H
|
|
|
|
#define RENDERUTILS_H
|
|
|
|
#include "mathlib/vector.h"
|
|
|
|
|
2022-07-11 21:31:54 +02:00
|
|
|
void DebugDrawBox(const Vector3D& vOrigin, const QAngle& vAngles, const Vector3D& vMins, const Vector3D& vMaxs, Color color, bool bZBuffer = true);
|
|
|
|
void DebugDrawCylinder(const Vector3D& vOrigin, const QAngle& vAngles, float flRadius, float flHeight, Color color, int nSides = 16, bool bZBuffer = true);
|
|
|
|
void DebugDrawCapsule(const Vector3D& vStart, const QAngle& vAngles, const Vector3D& vRadius, float flHeight, Color color, bool bZBuffer = true);
|
|
|
|
void DebugDrawSphere(const Vector3D& vOrigin, float flRadius, Color color, int nSegments = 16, bool bZBuffer = true);
|
2022-07-11 21:43:57 +02:00
|
|
|
void DebugDrawHemiSphere(const Vector3D& vOrigin, const QAngle& vAngles, const Vector3D& vRadius, Color color, int nSegments = 8, bool bZBuffer = true);
|
2022-07-11 21:31:54 +02:00
|
|
|
void DebugDrawCircle(const Vector3D& vOrigin, const QAngle& vAngles, float flRadius, Color color, int nSegments = 16, bool bZBuffer = true);
|
|
|
|
void DebugDrawSquare(const Vector3D& vOrigin, const QAngle& vAngles, float flSquareSize, Color color, bool bZBuffer = true);
|
|
|
|
void DebugDrawTriangle(const Vector3D& vOrigin, const QAngle& vAngles, float flTriangleSize, Color color, bool bZBuffer = true);
|
|
|
|
void DebugDrawMark(const Vector3D& vOrigin, float flRadius, const vector<int>& vColor, bool bZBuffer = true);
|
|
|
|
void DrawStar(const Vector3D& vRrigin, float flRadius, bool bZBuffer = true);
|
|
|
|
void DebugDrawArrow(const Vector3D& vOrigin, const Vector3D& vEnd, float flArraySize, Color color, bool bZBuffer = true);
|
|
|
|
void DebugDrawAxis(const Vector3D& vOrigin, const QAngle& vAngles = { 0, 0, 0 }, float flScale = 50.f, bool bZBuffer = true);
|
2022-07-07 21:31:00 +02:00
|
|
|
#endif // RENDERUTILS_H
|