Index: source/gameengine/Ketsji/KX_GameObject.h |
=================================================================== |
--- source/gameengine/Ketsji/KX_GameObject.h (revision 58799) |
+++ source/gameengine/Ketsji/KX_GameObject.h (working copy) |
@@ -88,6 +88,7 @@ |
STR_String m_text; |
int m_layer; |
std::vector<RAS_MeshObject*> m_meshes; |
+ std::vector<RAS_MeshObject*> m_lodmeshes; |
SG_QList m_meshSlots; // head of mesh slots of this |
struct Object* m_pBlenderObject; |
struct Object* m_pBlenderGroupObject; |
@@ -756,6 +757,25 @@ |
} |
/** |
+ * Add a level of detail mesh to the object. These should |
+ * be added in order. |
+ */ |
+ void |
+ AddLodMesh( |
Moguri
2013/08/13 21:34:52
I prefer definitions to be in the source file, not
Kupoman
2013/09/14 02:33:05
Done.
|
+ RAS_MeshObject* mesh |
+ ) { |
+ m_lodmeshes.push_back(mesh); |
+ } |
+ |
+ /** |
+ * Updates the current lod level based on distance from camera. |
+ */ |
+ void |
+ UpdateLod( |
+ MT_Vector3 &cam_pos |
+ ); |
+ |
+ /** |
* Pick out a mesh associated with the integer 'num'. |
*/ |
RAS_MeshObject* |