Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Bolsee <benoit.bolsee@online.be>2008-02-16 02:12:03 +0300
committerBenoit Bolsee <benoit.bolsee@online.be>2008-02-16 02:12:03 +0300
commit13aa413361bf75c89b7c878f7720373cf464c9d8 (patch)
treee2e054e51ad887304f7771e6a7656b669a32c434 /source/gameengine/Ketsji/KX_Scene.h
parent1597ba07705fbe39c219f1f99b5c92e9b06b8f0c (diff)
patch 8235 8218 8211 added: various gameengine improvements, fixed windows project files
Diffstat (limited to 'source/gameengine/Ketsji/KX_Scene.h')
-rw-r--r--source/gameengine/Ketsji/KX_Scene.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_Scene.h b/source/gameengine/Ketsji/KX_Scene.h
index ba479c5e543..50fcf1a3c40 100644
--- a/source/gameengine/Ketsji/KX_Scene.h
+++ b/source/gameengine/Ketsji/KX_Scene.h
@@ -39,6 +39,7 @@
#include <vector>
#include <set>
+#include <list>
#include "GEN_Map.h"
#include "GEN_HashedPtr.h"
@@ -119,7 +120,7 @@ protected:
/**
* The set of cameras for this scene
*/
- set<class KX_Camera*> m_cameras;
+ list<class KX_Camera*> m_cameras;
/**
* Various SCA managers used by the scene
@@ -330,7 +331,7 @@ public:
GetTimeEventManager(
);
- set<class KX_Camera*>*
+ list<class KX_Camera*>*
GetCameras(
);
@@ -368,6 +369,15 @@ public:
class KX_Camera*
);
+ /**
+ * Move this camera to the end of the list so that it is rendered last.
+ * If the camera is not on the list, it will be added
+ */
+ void
+ SetCameraOnTop(
+ class KX_Camera*
+ );
+
/** Return the viewmatrix as used by the last frame. */
MT_CmMatrix4x4&
GetViewMatrix(