Skip to content

Commit 34e8c25

Browse files
committed
draft
1 parent 27105d5 commit 34e8c25

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

client/render/gl_local.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ GNU General Public License for more details.
3636
#include "vector.h"
3737
#include <matrix.h>
3838
#include "material.h"
39+
#include "debug_visualizer.h"
3940

4041
#define ACTUAL_GL_VERSION 30.0f
4142

@@ -627,6 +628,7 @@ typedef struct
627628

628629
// cull info
629630
Vector modelorg; // relative to viewpoint
631+
CDebugVisualizer debugVisualizer;
630632
} ref_globals_t;
631633

632634
typedef struct
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#include "debug_visualizer.h"
2+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#pragma once
2+
#include "vector.h"
3+
#include "gl_frustum.h"
4+
5+
class CDebugVisualizer
6+
{
7+
public:
8+
void DrawAABB(const Vector &mins, const Vector &maxs, Vector color, float lifespan, bool depthTest);
9+
void DrawSphere(const Vector &center, float radius, Vector color, float lifespan, bool depthTest);
10+
void DrawVector(const Vector &position, const Vector& direction, Vector color, float lifespan, bool depthTest);
11+
void DrawFrustum(const CFrustum &frustum, Vector color, float lifespan, bool depthTest);
12+
// and so on...
13+
};

0 commit comments

Comments
 (0)