summaryrefslogtreecommitdiffstats
path: root/src/Timecycle.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-12 16:52:26 +0200
committeraap <aap@papnet.eu>2019-06-12 16:52:26 +0200
commitec0b8b573048bc4832cca412e33956e64ce4f5fa (patch)
tree4aae2cbb335baf97646b8b0165f315dfe55f24da /src/Timecycle.h
parentadded NodeName plugin (diff)
downloadre3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar.gz
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar.bz2
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar.lz
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar.xz
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.tar.zst
re3-ec0b8b573048bc4832cca412e33956e64ce4f5fa.zip
Diffstat (limited to '')
-rw-r--r--src/Timecycle.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Timecycle.h b/src/Timecycle.h
index fa59dfd1..546e6e0f 100644
--- a/src/Timecycle.h
+++ b/src/Timecycle.h
@@ -1,9 +1,10 @@
+#pragma once
+
class CTimeCycle
{
static int (*m_nAmbientRed)[NUMWEATHERS];
static int (*m_nAmbientGreen)[NUMWEATHERS];
static int (*m_nAmbientBlue)[NUMWEATHERS];
-
static int (*m_nDirectionalRed)[NUMWEATHERS];
static int (*m_nDirectionalGreen)[NUMWEATHERS];
static int (*m_nDirectionalBlue)[NUMWEATHERS];
@@ -91,6 +92,12 @@ class CTimeCycle
public:
static int &m_CurrentStoredValue;
static CVector *m_VectorToSun; // [16]
+ static float *m_fShadowFrontX; // [16]
+ static float *m_fShadowFrontY; // [16]
+ static float *m_fShadowSideX; // [16]
+ static float *m_fShadowSideY; // [16]
+ static float *m_fShadowDisplacementX; // [16]
+ static float *m_fShadowDisplacementY; // [16]
static float GetAmbientRed(void) { return m_fCurrentAmbientRed; }
static float GetAmbientGreen(void) { return m_fCurrentAmbientGreen; }
@@ -127,5 +134,7 @@ public:
static int GetFogGreen(void) { return m_nCurrentFogColourGreen; }
static int GetFogBlue(void) { return m_nCurrentFogColourBlue; }
- static const CVector &GetSunPosition(void) { return m_VectorToSun[m_CurrentStoredValue]; }
+ static void Initialise(void);
+ static void Update(void);
+ static CVector &GetSunPosition(void) { return m_VectorToSun[m_CurrentStoredValue]; }
};