X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fclientmap.h;h=91f58a70c5dbd125e59efb92247437b1f5946bb4;hb=fa427d641b687dd8585adced708510b94588cf51;hp=f36e6127c1ff5a704fd9d86a333f6087f8f26546;hpb=c50c9a10f12fb28724b30ec0db00aee39c4a1414;p=oweals%2Fminetest.git diff --git a/src/clientmap.h b/src/clientmap.h index f36e6127c..91f58a70c 100644 --- a/src/clientmap.h +++ b/src/clientmap.h @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "irrlichttypes_extrabloated.h" #include "map.h" +#include "camera.h" #include #include @@ -86,12 +87,13 @@ public: ISceneNode::drop(); } - void updateCamera(v3f pos, v3f dir, f32 fov) + void updateCamera(v3f pos, v3f dir, f32 fov, v3s16 offset) { JMutexAutoLock lock(m_camera_mutex); m_camera_position = pos; m_camera_direction = dir; m_camera_fov = fov; + m_camera_offset = offset; } /* @@ -125,7 +127,7 @@ public: int getBackgroundBrightness(float max_d, u32 daylight_factor, int oldvalue, bool *sunlight_seen_result); - void renderPostFx(); + void renderPostFx(CameraMode cam_mode); // For debug printing virtual void PrintInfo(std::ostream &out); @@ -146,6 +148,7 @@ private: v3f m_camera_position; v3f m_camera_direction; f32 m_camera_fov; + v3s16 m_camera_offset; JMutex m_camera_mutex; std::map m_drawlist;