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

Unified Diff: source/gameengine/Ketsji/KX_Scene.cpp

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_Scene.cpp
===================================================================
--- source/gameengine/Ketsji/KX_Scene.cpp (revision 58799)
+++ source/gameengine/Ketsji/KX_Scene.cpp (working copy)
@@ -1694,6 +1694,19 @@
}
}
+void KX_Scene::UpdateObjectLods(void)
+{
+ KX_GameObject* gameobj;
+ MT_Vector3 cam_pos = this->m_active_camera->NodeGetWorldPosition();
+
+ for (int i = 0; i < this->GetObjectList()->GetCount(); i++) {
+ gameobj = (KX_GameObject*) GetObjectList()->GetValue(i);
+ if (!gameobj->GetCulled()){
+ gameobj->UpdateLod(cam_pos);
+ }
+ }
+}
+
void KX_Scene::UpdateObjectActivity(void)
{
if (m_activity_culling) {
« source/gameengine/Ketsji/KX_GameObject.cpp ('K') | « source/gameengine/Ketsji/KX_Scene.h ('k') | no next file » | no next file with comments »

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