Nuclide
Software Development Kit for id Technology
NSSpraylogo.h
1/*
2 * Copyright (c) 2016-2022 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
17#ifdef CLIENT
23{
24public:
25 void NSSpraylogo(void);
26
27 virtual float predraw(void);
28 virtual void RendererRestarted(void);
29
30private:
31 vector m_vecColor;
32 vector m_vecPosition;
33 vector m_vecAngles;
34 int m_iOwnerID;
35 string m_strName;
36 string m_m_strPath;
37 bool m_bInitialized;
38 bool m_bMonochrome;
39};
40
41void Spray_Parse(void);
42
43
44const string g_spray_mat_1 = \
45 "{\n" \
46 "cull disable\n" \
47 "polygonOffset\n" \
48 "{\n" \
49 "map $rt:%s\n" \
50 "blendfunc GL_SRC_COLOR GL_ONE_MINUS_SRC_COLOR\n" \
51 "rgbGen vertex\n" \
52 "}\n" \
53 "}";
54
55const string g_spray_mat_0 = \
56 "{\n" \
57 "cull disable\n" \
58 "polygonOffset\n" \
59 "{\n" \
60 "map $rt:%s\n" \
61 "blendfunc blend\n" \
62 "rgbGen vertex\n" \
63 "}\n" \
64 "}";
65
66#endif
67
68#ifdef SERVER
69void Spray_RemoveAll(entity entOwner);
70float Spray_SendEntity(entity ePEnt, float fChanged);
71void CSEv_Spraylogo(void);
72#endif
NSEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:54
This entity class represents a NSClientPlayer their spraylogo.
Definition: NSSpraylogo.h:23
virtual void RendererRestarted(void)
Client: Called when video resources need to be allocated or reloaded for the entity.
Definition: NSSpraylogo.qc:19
void NSSpraylogo(void)
Definition: NSSpraylogo.qc:75
virtual float predraw(void)
Definition: NSSpraylogo.qc:25