OpenMoHAA
0.82.0
Loading...
Searching...
No Matches
debuglines.h
1
/*
2
===========================================================================
3
Copyright (C) 2015 the OpenMoHAA team
4
5
This file is part of OpenMoHAA source code.
6
7
OpenMoHAA source code is free software; you can redistribute it
8
and/or modify it under the terms of the GNU General Public License as
9
published by the Free Software Foundation; either version 2 of the License,
10
or (at your option) any later version.
11
12
OpenMoHAA source code is distributed in the hope that it will be
13
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with OpenMoHAA source code; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
===========================================================================
21
*/
22
23
// debuglines.h:
24
25
#pragma once
26
27
#include "g_local.h"
28
29
void
G_InitDebugLines(
void
);
30
void
G_InitDebugStrings(
void
);
31
void
G_DebugLine(
Vector
start,
Vector
end,
float
r,
float
g,
float
b,
float
alpha );
32
void
G_LineStipple(
int
factor,
unsigned
short
pattern );
33
void
G_LineWidth(
float
width );
34
void
G_Color3f(
float
r,
float
g,
float
b );
35
void
G_Color3v(
Vector
color );
36
void
G_Color4f(
float
r,
float
g,
float
b,
float
alpha );
37
void
G_Color3vf(
Vector
color,
float
alpha );
38
void
G_BeginLine(
void
);
39
void
G_Vertex(
Vector
v );
40
void
G_EndLine(
void
);
41
void
G_DebugBBox(
Vector
org,
Vector
mins,
Vector
maxs,
float
r,
float
g,
float
b,
float
alpha );
42
void
G_DebugRotatedBBox(
Vector
org,
Vector
ang,
Vector
mins,
Vector
maxs,
float
r,
float
g,
float
b,
float
alpha);
43
void
G_DrawDebugNumber(
Vector
org,
float
number,
float
scale,
float
r,
float
g,
float
b,
int
precision = 0 );
44
void
G_DebugCircle(
float
*org,
float
radius,
float
r,
float
g,
float
b,
float
alpha, qboolean horizontal = qfalse );
45
void
G_DebugOrientedCircle(
Vector
org,
float
radius,
float
r,
float
g,
float
b,
float
alpha,
Vector
angles );
46
void
G_DebugPyramid(
Vector
org,
float
radius,
float
r,
float
g,
float
b,
float
alpha );
47
void
G_DrawCoordSystem(
Vector
pos,
Vector
f,
Vector
r,
Vector
u,
int
len );
48
void
G_DebugArrow(
Vector
org,
Vector
dir,
float
length,
float
r,
float
g,
float
b,
float
alpha );
49
void
G_DrawCSystem(
Vector
pos,
Vector
forward,
Vector
right,
Vector
up,
int
length );
50
void
G_AllocDebugLines(
void
);
51
void
G_AllocDebugStrings(
void
);
52
void
G_DeAllocDebugLines(
void
);
53
void
G_DeAllocDebugStrings(
void
);
54
void
G_ShiftDebugLines(
void
);
55
56
typedef
enum
57
{
58
north,
59
south,
60
east,
61
west,
62
up,
63
down
64
}
facet_t
;
65
66
void
G_DebugHighlightFacet(
Vector
org,
Vector
mins,
Vector
maxs,
facet_t
facet,
float
r,
float
g,
float
b,
float
alpha );
67
68
extern
debugline_t
*DebugLines;
69
extern
debugstring_t
*DebugStrings;
Vector
Definition
vector.h:61
debugline_t
Definition
q_shared.h:2095
debugstring_t
Definition
q_shared.h:2105
facet_t
Definition
cm_patch.h:74
code
fgame
debuglines.h
Generated by
1.13.2