summaryrefslogtreecommitdiffstats
path: root/src/graphics/opengl/gldevice.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-07-26 19:05:09 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-07-26 19:05:09 +0200
commitd1fe0d2dcc30a76055d6423805f8e0108b4b64be (patch)
tree248af1f3ace42ddd27c69d7a49132584e8b9b335 /src/graphics/opengl/gldevice.h
parentbc1c9b5284c10d8aafc04bcd6c3597b3626a782f (diff)
downloadcolobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.tar.gz
colobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.tar.bz2
colobot-d1fe0d2dcc30a76055d6423805f8e0108b4b64be.zip
Lighting
- fixed problems with lighting - added light_test
Diffstat (limited to 'src/graphics/opengl/gldevice.h')
-rw-r--r--src/graphics/opengl/gldevice.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/graphics/opengl/gldevice.h b/src/graphics/opengl/gldevice.h
index 0f4d0c9..b779123 100644
--- a/src/graphics/opengl/gldevice.h
+++ b/src/graphics/opengl/gldevice.h
@@ -155,6 +155,8 @@ public:
private:
//! Updates internal modelview matrix
void UpdateModelviewMatrix();
+ //! Updates position for given light based on transformation matrices
+ void UpdateLightPosition(int index);
private:
//! Was initialized?
@@ -174,6 +176,8 @@ private:
//! The current material
Gfx::Material m_material;
+ //! Whether lighting is enabled
+ bool m_lighting;
//! Current lights
std::vector<Gfx::Light> m_lights;
//! Current lights enable status