Mercurial > fife-parpg
comparison engine/core/view/camera.h @ 661:e3140f01749d
* Merged the light branch back into trunk.
* Modified the demos so they work with the new loaders and setting.
author | helios2000@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Fri, 05 Nov 2010 15:21:10 +0000 |
parents | 5f381fa34769 |
children |
comparison
equal
deleted
inserted
replaced
660:b0733d998d0f | 661:e3140f01749d |
---|---|
281 /** Use with OpenGL only! Checks to see if the entire viewport was rendered last frame. | 281 /** Use with OpenGL only! Checks to see if the entire viewport was rendered last frame. |
282 * If so it wont clear the backbuffer. | 282 * If so it wont clear the backbuffer. |
283 */ | 283 */ |
284 bool testRenderedViewPort(); | 284 bool testRenderedViewPort(); |
285 | 285 |
286 void setLightingColor(float red, float green, float blue, float alpha); | |
287 void resetLightingColor(); | |
288 std::vector<float> getLightingColor(); | |
289 | |
286 /** Renders camera | 290 /** Renders camera |
287 */ | 291 */ |
288 void render(); | 292 void render(); |
289 | 293 |
290 private: | 294 private: |
354 t_layer_to_instances m_layer_to_instances; | 358 t_layer_to_instances m_layer_to_instances; |
355 | 359 |
356 std::map<Layer*,LayerCache*> m_cache; | 360 std::map<Layer*,LayerCache*> m_cache; |
357 MapObserver* m_map_observer; | 361 MapObserver* m_map_observer; |
358 Map* m_map; | 362 Map* m_map; |
363 | |
364 // is lighting enable | |
365 bool m_lighting; | |
366 // caches the light color for the camera | |
367 std::vector<float> m_light_colors; | |
359 }; | 368 }; |
360 } | 369 } |
361 #endif | 370 #endif |