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