/src/
- ../
- CMakeLists.txt
- activeobject.h
- ban.cpp
- ban.h
- base64.cpp
- base64.h
- biome.cpp
- biome.h
- camera.cpp
- camera.h
- cavegen.cpp
- cavegen.h
- cguittfont
- chat.cpp
- chat.h
- client.cpp
- client.h
- clientiface.cpp
- clientiface.h
- clientmap.cpp
- clientmap.h
- clientmedia.cpp
- clientmedia.h
- clientobject.cpp
- clientobject.h
- clientserver.h
- clientsimpleobject.h
- clouds.cpp
- clouds.h
- cmake_config.h.in
- cmake_config_githash.h.in
- collision.cpp
- collision.h
- config.h
- connection.cpp
- connection.h
- constants.h
- content_abm.cpp
- content_abm.h
- content_cao.cpp
- content_cao.h
- content_cso.cpp
- content_cso.h
- content_mapblock.cpp
- content_mapblock.h
- content_mapnode.cpp
- content_mapnode.h
- content_nodemeta.cpp
- content_nodemeta.h
- content_object.h
- content_sao.cpp
- content_sao.h
- convert_json.cpp
- convert_json.h
/*
Minetest
Copyright (C) 2010-2013 celeron55, Perttu Ahola <celeron55@gmail.com>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#pragma once
#include "irrlichttypes_extrabloated.h"
#include "map.h"
#include "camera.h"
#include <set>
#include <map>
struct MapDrawControl
{
// Overrides limits by drawing everything
bool range_all = false;
// Wanted drawing range
float wanted_range = 0.0f;
// show a wire frame for debugging
bool show_wireframe = false;
};
class Client;
class ITextureSource;
/*
ClientMap
This is the only map class that is able to render itself on screen.
*/
class ClientMap : public Map, public scene::ISceneNode
{
public:
ClientMap(
Client *client,
MapDrawControl &control,
s32 id
);
virtual ~ClientMap() = default;
s32 mapType() const
{
return MAPTYPE_CLIENT;
}
void drop()
{
ISceneNode::drop();
}
void updateCamera(const v3f &pos, const v3f &dir, f32 fov, 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 OnRegisterSc - guiEngine.cpp
- guiEngine.h
- guiFileSelectMenu.cpp
- guiFileSelectMenu.h
- guiFormSpecMenu.cpp
- guiFormSpecMenu.h
- guiKeyChangeMenu.cpp
- guiKeyChangeMenu.h
- guiMainMenu.h
- guiPasswordChange.cpp
- guiPasswordChange.h
- guiTable.cpp
- guiTable.h
- guiVolumeChange.cpp
- guiVolumeChange.h
- hex.h
- httpfetch.cpp
- httpfetch.h
- hud.cpp
- hud.h
- inventory.cpp
- inventory.h
- inventorymanager.cpp
- inventorymanager.h
- irr_aabb3d.h
- irr_v2d.h
- irr_v3d.h
- irrlichttypes.h
- irrlichttypes_bloated.h
-
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;
};