From 09970b7b6daa82ba0cb71540ebb70e671637782f Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 27 Apr 2014 16:09:21 +0200 Subject: Add support for interlaced polarized 3d screens Add (experimental) support for topbottom as well as sidebyside 3d mode --- src/localplayer.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index 38e7a4cd9..bfe476b70 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -24,7 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include class Environment; - +class GenericCAO; class ClientActiveObject; enum LocalPlayerAnimations {NO_ANIM, WALK_ANIM, DIG_ANIM, WD_ANIM}; // no local animation, walking, digging, both @@ -62,7 +62,6 @@ public: unsigned int last_keyPressed; float camera_impact; - int camera_mode; v3f eye_offset_first; v3f eye_offset_third; @@ -72,6 +71,15 @@ public: std::string hotbar_image; std::string hotbar_selected_image; + GenericCAO* getCAO() const { + return m_cao; + } + + void setCAO(GenericCAO* toset) { + assert( m_cao == NULL ); + m_cao = toset; + } + private: // This is used for determining the sneaking range v3s16 m_sneak_node; @@ -84,6 +92,8 @@ private: // Whether recalculation of the sneak node is needed bool m_need_to_get_new_sneak_node; bool m_can_jump; + + GenericCAO* m_cao; }; #endif -- cgit v1.2.3