Improved coding style

This commit is contained in:
Elderme 2016-02-06 19:11:23 +01:00
parent 6bf238a134
commit d5bcfb9446
5 changed files with 13 additions and 15 deletions

View File

@ -20,7 +20,7 @@
#include "graphics/gl_headers.hpp" #include "graphics/gl_headers.hpp"
#include "graphics/rtts.hpp" #include "graphics/rtts.hpp"
#include "graphics/sphericalHarmonics.hpp" #include "graphics/spherical_harmonics.hpp"
#include <irrlicht.h> #include <irrlicht.h>
#include <memory> #include <memory>
#include <string> #include <string>

View File

@ -35,7 +35,7 @@
#include "ISkinnedMesh.h" #include "ISkinnedMesh.h"
#include "graphics/abstract_renderer.hpp" #include "graphics/abstract_renderer.hpp"
#include "graphics/gl_headers.hpp" #include "graphics/gl_headers.hpp"
#include "graphics/sphericalHarmonics.hpp" #include "graphics/spherical_harmonics.hpp"
#include "graphics/rtts.hpp" #include "graphics/rtts.hpp"
#include "graphics/wind.hpp" #include "graphics/wind.hpp"
#include "io/file_manager.hpp" #include "io/file_manager.hpp"

View File

@ -36,23 +36,21 @@ class PostProcessing;
class ShaderBasedRenderer: public AbstractRenderer class ShaderBasedRenderer: public AbstractRenderer
{ {
private: private:
RTT *m_rtts; RTT *m_rtts;
Skybox *m_skybox; Skybox *m_skybox;
SphericalHarmonics *m_spherical_harmonics; SphericalHarmonics *m_spherical_harmonics;
DrawCalls m_draw_calls;
DrawCalls m_draw_calls; AbstractGeometryPasses *m_geometry_passes;
AbstractGeometryPasses *m_geometry_passes; LightingPasses m_lighting_passes;
LightingPasses m_lighting_passes; ShadowMatrices m_shadow_matrices;
ShadowMatrices m_shadow_matrices;
/** Post-processing. */
PostProcessing *m_post_processing; PostProcessing *m_post_processing;
/** Static glowing things are loaded once per track. /** Static glowing things are loaded once per track.
* Glowing items can appear ordisappear each frame */ * Glowing items can appear ordisappear each frame */
std::vector<GlowData> m_glowing; std::vector<GlowData> m_glowing;
size_t m_nb_static_glowing; size_t m_nb_static_glowing;
irr::core::vector3df m_wind_dir; irr::core::vector3df m_wind_dir;
void setRTTDimensions(size_t width, size_t height); void setRTTDimensions(size_t width, size_t height);

View File

@ -17,7 +17,7 @@
#include "graphics/irr_driver.hpp" #include "graphics/irr_driver.hpp"
#include "graphics/sphericalHarmonics.hpp" #include "graphics/spherical_harmonics.hpp"
#include "utils/log.hpp" #include "utils/log.hpp"
#include <algorithm> #include <algorithm>