aboutsummaryrefslogtreecommitdiff
path: root/src/utility.cpp
Commit message (Collapse)AuthorAge
* Added the ability to change your password (via pause menu)Ciaran Gultnieks2011-05-22
| | | | | --HG-- extra : rebase_source : e8ec407f60711d42d33be4811b2880088f617b5b
* Fixed viewing range stuff a bit (now it works better with very low ranges)Perttu Ahola2011-05-06
|
* Removed IrrlichtWrapperPerttu Ahola2011-04-22
|
* commit before some radical changesPerttu Ahola2011-04-02
|
* mapgen stuffPerttu Ahola2011-02-05
|
* all kinds of tweaking and fixingPerttu Ahola2011-02-04
|
* backing up some stuffPerttu Ahola2011-01-26
|
* Reworked texture, material, mineral and whatever handlingPerttu Ahola2011-01-26
|
* Tweaking aroundPerttu Ahola2011-01-25
|
* configuration updates; making to build on msvcPerttu Ahola2011-01-17
|
* old water removed, some fixes here and therePerttu Ahola2011-01-17
|
* fine-tuning of map generator and server and stuff.Perttu Ahola2011-01-17
|
* Initial commit of mapgen v.2. Lacks configuration and saving to disk.Perttu Ahola2011-01-16
|
* drawing range updater update and myrand() (but not usage of it)Perttu Ahola2010-12-26
|
* organizing stuff.Perttu Ahola2010-12-21
|
* framework for modifying texturesPerttu Ahola2010-12-20
|
* license stuffPerttu Ahola2010-11-29
| | | | | --HG-- rename : src/licensecomment.txt => licensecomment.txt
* Initial filesPerttu Ahola2010-11-27
ass="hl opt">, const v3s16 &offset) { m_camera_position = pos; m_camera_direction = dir; m_camera_fov = fov; m_camera_offset = offset; } /* Forcefully get a sector from somewhere */ MapSector * emergeSector(v2s16 p); //void deSerializeSector(v2s16 p2d, std::istream &is); /* ISceneNode methods */ virtual void OnRegisterSceneNode(); virtual void render() { video::IVideoDriver* driver = SceneManager->getVideoDriver(); driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); renderMap(driver, SceneManager->getSceneNodeRenderPass()); } virtual const aabb3f &getBoundingBox() const { return m_box; } void getBlocksInViewRange(v3s16 cam_pos_nodes, v3s16 *p_blocks_min, v3s16 *p_blocks_max); void updateDrawList(); void renderMap(video::IVideoDriver* driver, s32 pass); int getBackgroundBrightness(float max_d, u32 daylight_factor, int oldvalue, bool *sunlight_seen_result); void renderPostFx(CameraMode cam_mode); // For debug printing virtual void PrintInfo(std::ostream &out); const MapDrawControl & getControl() const { return m_control; } f32 getCameraFov() const { return m_camera_fov; } private: Client *m_client; aabb3f m_box = aabb3f(-BS * 1000000, -BS * 1000000, -BS * 1000000, BS * 1000000, BS * 1000000, BS * 1000000); MapDrawControl &m_control; v3f m_camera_position = v3f(0,0,0); v3f m_camera_direction = v3f(0,0,1); f32 m_camera_fov = M_PI; v3s16 m_camera_offset; std::map<v3s16, MapBlock*> m_drawlist; std::set<v2s16> m_last_drawn_sectors; bool m_cache_trilinear_filter; bool m_cache_bilinear_filter; bool m_cache_anistropic_filter; };