summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-04-27 16:09:21 +0200
committersapier <Sapier at GMX dot net>2014-05-18 01:08:13 +0200
commit09970b7b6daa82ba0cb71540ebb70e671637782f (patch)
treebea283470a892adcdcc5962b498a10ca2f405297 /src/localplayer.h
parentd9f6f9e7a8038071648eb53da0d5be8abdaa9e45 (diff)
downloadminetest-09970b7b6daa82ba0cb71540ebb70e671637782f.tar.gz
minetest-09970b7b6daa82ba0cb71540ebb70e671637782f.tar.bz2
minetest-09970b7b6daa82ba0cb71540ebb70e671637782f.zip
Add support for interlaced polarized 3d screens
Add (experimental) support for topbottom as well as sidebyside 3d mode
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h14
1 files changed, 12 insertions, 2 deletions
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 <list>
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