Nuclide
Software Development Kit for id Tech
NSSpraylogo.h
Go to the documentation of this file.
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
20{
21private:
22 vector m_vecColor;
23 vector m_vecPosition;
24 vector m_vecAngles;
25 int m_iOwnerID;
26 string m_strName;
27 string m_m_strPath;
28 bool m_bInitialized;
29 bool m_bMonochrome;
30
31public:
32 void NSSpraylogo(void);
33
34 virtual float predraw(void);
35 virtual void RendererRestarted(void);
36};
37
38void Spray_Parse(void);
39
40
41const string g_spray_mat_1 = \
42 "{\n" \
43 "cull disable\n" \
44 "polygonOffset\n" \
45 "{\n" \
46 "map $rt:%s\n" \
47 "blendfunc GL_SRC_COLOR GL_ONE_MINUS_SRC_COLOR\n" \
48 "rgbGen vertex\n" \
49 "}\n" \
50 "}";
51
52const string g_spray_mat_0 = \
53 "{\n" \
54 "cull disable\n" \
55 "polygonOffset\n" \
56 "{\n" \
57 "map $rt:%s\n" \
58 "blendfunc blend\n" \
59 "rgbGen vertex\n" \
60 "}\n" \
61 "}";
62
63#endif
64
65#ifdef SERVER
66void Spray_RemoveAll(entity entOwner);
67float Spray_SendEntity(entity ePEnt, float fChanged);
68void CSEv_Spraylogo(void);
69#endif
float Spray_SendEntity(entity ePEnt, float fChanged)
void Spray_RemoveAll(entity entOwner)
void CSEv_Spraylogo(void)
void Spray_Parse(void)
Definition: NSSpraylogo.qc:85
const string g_spray_mat_0
Definition: NSSpraylogo.h:52
const string g_spray_mat_1
Definition: NSSpraylogo.h:41
NSEntity is the lowest of the user-accessible entity class.
Definition: NSEntity.h:52
This entity class represents a NSClientPlayer their spraylogo.
Definition: NSSpraylogo.h:20
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
vector(vector) normalize
entity() spawn