Nuclide
Software Development Kit for id Tech
NSRadar.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
21class
23{
24public:
25 void NSRadar(void);
26
28 nonvirtual NSRadar InitForCurrentMap(void);
30 nonvirtual NSRadar InitWithMapname(string);
31
33 nonvirtual NSRadar InitFromHLTVScript(string);
35 nonvirtual NSRadar InitFromSourceHLTVScript(string);
37 nonvirtual NSRadar InitWireframe(void);
39 nonvirtual NSRadar InitEmpty(void);
40
41 nonvirtual void RenderOverviewPlane(void);
42 nonvirtual void RenderWireframePlane(void);
43
44 nonvirtual void SetRadarPitch(float);
45
46 virtual void RenderPlayerIcon(entity);
47
48 /* overrides */
49 virtual void RenderView(void);
50 virtual void SetupView(void);
51
52
53private:
54 /* internal */
55 vector m_vecOrigin;
56 bool m_bRotated;
57 string m_strMaterial;
58 float m_flScale;
59 float m_flHeight;
60 float m_flZoom;
61
62 vector m_vecVert1;
63 vector m_vecVert2;
64 vector m_vecVert3;
65 vector m_vecVert4;
66
67 bool m_bShowPlayers;
68
69 float m_flRadarPitch;
70
71 nonvirtual void CalculateVertices(void);
72 nonvirtual void CalculateVerticesSource(float, float);
73};
Tasked with managing overview/radar type widgets.
Definition: NSRadar.h:23
This class represents 3D views, used for rendering the game.
Definition: NSView.h:43
vector(vector) normalize
entity() spawn