annotate Lights.h @ 2455:51d4f38aca6c

audio through OpenAL (begining)
author Ritor1
date Fri, 25 Jul 2014 17:49:20 +0600
parents d04017f3d2fa
children
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
Ritor1
parents:
diff changeset
2
Ritor1
parents:
diff changeset
3 #include "VectorTypes.h"
Ritor1
parents:
diff changeset
4
Ritor1
parents:
diff changeset
5
Ritor1
parents:
diff changeset
6 /* 257 */
Ritor1
parents:
diff changeset
7 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
8 struct StationaryLight
Ritor1
parents:
diff changeset
9 {
Ritor1
parents:
diff changeset
10 Vec3_short_ vPosition;
Ritor1
parents:
diff changeset
11 __int16 uRadius;
Ritor1
parents:
diff changeset
12 unsigned __int8 uLightColorR;
Ritor1
parents:
diff changeset
13 unsigned __int8 uLightColorG;
Ritor1
parents:
diff changeset
14 unsigned __int8 uLightColorB;
Ritor1
parents:
diff changeset
15 char uLightType;
Ritor1
parents:
diff changeset
16 };
Ritor1
parents:
diff changeset
17 #pragma pack(pop)
Ritor1
parents:
diff changeset
18
Ritor1
parents:
diff changeset
19
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21
Ritor1
parents:
diff changeset
22 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
23 struct MobileLight
Ritor1
parents:
diff changeset
24 {
Ritor1
parents:
diff changeset
25 Vec3_short_ vPosition;
Ritor1
parents:
diff changeset
26 __int16 uRadius;
Ritor1
parents:
diff changeset
27 unsigned __int8 uLightColorR;
Ritor1
parents:
diff changeset
28 unsigned __int8 uLightColorG;
Ritor1
parents:
diff changeset
29 unsigned __int8 uLightColorB;
Ritor1
parents:
diff changeset
30 char uLightType;
Ritor1
parents:
diff changeset
31 __int16 field_C;
Ritor1
parents:
diff changeset
32 __int16 uSectorID;
Ritor1
parents:
diff changeset
33 __int16 field_10;
Ritor1
parents:
diff changeset
34 };
Ritor1
parents:
diff changeset
35 #pragma pack(pop)
Ritor1
parents:
diff changeset
36
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38
Ritor1
parents:
diff changeset
39 /*
Ritor1
parents:
diff changeset
40 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
41 struct LightStack<T>
Ritor1
parents:
diff changeset
42 {
Ritor1
parents:
diff changeset
43 int field_0;
Ritor1
parents:
diff changeset
44 char T[400];
Ritor1
parents:
diff changeset
45 unsigned int uNumLightsActive;
Ritor1
parents:
diff changeset
46 };
Ritor1
parents:
diff changeset
47 #pragma pack(pop)*/
Ritor1
parents:
diff changeset
48
Ritor1
parents:
diff changeset
49
Ritor1
parents:
diff changeset
50
Ritor1
parents:
diff changeset
51 /* 260 */
Ritor1
parents:
diff changeset
52 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
53 struct LightsStack_StationaryLight_
Ritor1
parents:
diff changeset
54 {
Ritor1
parents:
diff changeset
55 //----- (004AD385) --------------------------------------------------------
Ritor1
parents:
diff changeset
56 LightsStack_StationaryLight_()
Ritor1
parents:
diff changeset
57 {
Ritor1
parents:
diff changeset
58 uNumLightsActive = 0;
Ritor1
parents:
diff changeset
59 }
Ritor1
parents:
diff changeset
60
Ritor1
parents:
diff changeset
61 //----- (004AD395) --------------------------------------------------------
Ritor1
parents:
diff changeset
62 virtual ~LightsStack_StationaryLight_()
Ritor1
parents:
diff changeset
63 {
Ritor1
parents:
diff changeset
64 uNumLightsActive = 0;
Ritor1
parents:
diff changeset
65 }
Ritor1
parents:
diff changeset
66
Ritor1
parents:
diff changeset
67 //----- (004AD39D) --------------------------------------------------------
Ritor1
parents:
diff changeset
68 inline unsigned int GetNumLights()
Ritor1
parents:
diff changeset
69 {
Ritor1
parents:
diff changeset
70 return uNumLightsActive;
Ritor1
parents:
diff changeset
71 }
Ritor1
parents:
diff changeset
72
Ritor1
parents:
diff changeset
73 //----- (004AD3C8) --------------------------------------------------------
2337
d04017f3d2fa LightsStack_StationaryLight_::AddLight moved to LightStack.cpp
Grumpy7
parents: 1980
diff changeset
74 bool AddLight(__int16 x, __int16 y, __int16 z, __int16 a5, unsigned char r, unsigned char g, unsigned char b, char uLightType);
0
Ritor1
parents:
diff changeset
75
Ritor1
parents:
diff changeset
76
Ritor1
parents:
diff changeset
77
1458
934074e7fcc1 ModalWindow
Nomad
parents: 522
diff changeset
78 //void ( ***vdestructor_ptr)(LightsStack_StationaryLight_ *, bool);
0
Ritor1
parents:
diff changeset
79 StationaryLight pLights[400];
Ritor1
parents:
diff changeset
80 unsigned int uNumLightsActive;
Ritor1
parents:
diff changeset
81 };
Ritor1
parents:
diff changeset
82 #pragma pack(pop)
Ritor1
parents:
diff changeset
83
Ritor1
parents:
diff changeset
84
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86
Ritor1
parents:
diff changeset
87 /* 261 */
Ritor1
parents:
diff changeset
88 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
89 struct LightsStack_MobileLight_
Ritor1
parents:
diff changeset
90 {
Ritor1
parents:
diff changeset
91 //----- (00467D45) --------------------------------------------------------
Ritor1
parents:
diff changeset
92 inline LightsStack_MobileLight_()
Ritor1
parents:
diff changeset
93 {
Ritor1
parents:
diff changeset
94 this->uNumLightsActive = 0;
Ritor1
parents:
diff changeset
95 //this->vdestructor_ptr = &pLightsStack_MobileLight__pvdtor;
Ritor1
parents:
diff changeset
96 }
Ritor1
parents:
diff changeset
97 //----- (00467D55) --------------------------------------------------------
Ritor1
parents:
diff changeset
98 virtual ~LightsStack_MobileLight_()
Ritor1
parents:
diff changeset
99 {
Ritor1
parents:
diff changeset
100 this->uNumLightsActive = 0;
Ritor1
parents:
diff changeset
101 }
Ritor1
parents:
diff changeset
102
Ritor1
parents:
diff changeset
103 bool AddLight(__int16 x, __int16 y, __int16 z, __int16 uSectorID, int uRadius, unsigned __int8 r, unsigned __int8 g, unsigned __int8 b, char a10);
Ritor1
parents:
diff changeset
104
Ritor1
parents:
diff changeset
105
Ritor1
parents:
diff changeset
106
1458
934074e7fcc1 ModalWindow
Nomad
parents: 522
diff changeset
107 //void ( ***vdestructor_ptr)(LightsStack_MobileLight_ *, bool);
0
Ritor1
parents:
diff changeset
108 MobileLight pLights[400];
Ritor1
parents:
diff changeset
109 unsigned int uNumLightsActive;
Ritor1
parents:
diff changeset
110 };
Ritor1
parents:
diff changeset
111 #pragma pack(pop)