aboutsummaryrefslogtreecommitdiff
path: root/src/guiTable.cpp
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-03-16 17:32:30 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-16 20:04:00 +0100
commit16b961b2eb68f2e9a37e218f3fb4f2e451a3a993 (patch)
tree002cadf609f6273d0a3787500c44aa51fd051721 /src/guiTable.cpp
parentd63df4ecb1106141e76f4a223678dc2431f26cbd (diff)
downloadminetest-16b961b2eb68f2e9a37e218f3fb4f2e451a3a993.tar.gz
minetest-16b961b2eb68f2e9a37e218f3fb4f2e451a3a993.tar.bz2
minetest-16b961b2eb68f2e9a37e218f3fb4f2e451a3a993.zip
Android: Fix auto-entry of server address and port in mainmenu
Fixes #2497.
Diffstat (limited to 'src/guiTable.cpp')
0 files changed, 0 insertions, 0 deletions
an class="hl com">*/ #include "irrlichttypes_extrabloated.h" #include <ISceneNode.h> #ifndef SKY_HEADER #define SKY_HEADER #define SKY_MATERIAL_COUNT 3 #define SKY_STAR_COUNT 200 // Skybox, rendered with zbuffer turned off, before all other nodes. class Sky : public scene::ISceneNode { public: //! constructor Sky(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id); virtual void OnRegisterSceneNode(); //! renders the node. virtual void render(); virtual const core::aabbox3d<f32>& getBoundingBox() const; // Used by Irrlicht for optimizing rendering virtual video::SMaterial& getMaterial(u32 i) { return m_materials[i]; } // Used by Irrlicht for optimizing rendering virtual u32 getMaterialCount() const { return SKY_MATERIAL_COUNT; } void update(float m_time_of_day, float time_brightness, float direct_brightness, bool sunlight_seen); float getBrightness(){ return m_brightness; } video::SColor getBgColor(){ return m_bgcolor; } video::SColor getSkyColor(){ return m_skycolor; } bool getCloudsVisible(){ return m_clouds_visible; } video::SColorf getCloudColor(){ return m_cloudcolor_f; } private: core::aabbox3d<f32> Box; video::SMaterial m_materials[SKY_MATERIAL_COUNT]; bool m_first_update; float m_time_of_day; float m_time_brightness; bool m_sunlight_seen; float m_brightness; float m_cloud_brightness; bool m_clouds_visible; video::SColorf m_bgcolor_bright_f; video::SColorf m_skycolor_bright_f; video::SColorf m_cloudcolor_bright_f; video::SColor m_bgcolor; video::SColor m_skycolor; video::SColorf m_cloudcolor_f; v3f m_stars[SKY_STAR_COUNT]; u16 m_star_indices[SKY_STAR_COUNT*4]; video::S3DVertex m_star_vertices[SKY_STAR_COUNT*4]; }; #endif