Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(393)

Unified Diff: source/gameengine/Ketsji/KX_GameObject.h

Issue 12216043: gsoc-2013-bge-lod Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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*

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b