[Bf-blender-cvs] [db6abb6] soc-2014-bge: gameengine scenegraph: whitespace and comment cleanup
Ines Almeida
noreply at git.blender.org
Sat Jul 12 20:16:38 CEST 2014
Commit: db6abb619ce34d5c10a9385ff862fff653111bf5
Author: Ines Almeida
Date: Mon Jul 7 10:54:53 2014 +0100
https://developer.blender.org/rBdb6abb619ce34d5c10a9385ff862fff653111bf5
gameengine scenegraph: whitespace and comment cleanup
===================================================================
M source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp
M source/gameengine/Ketsji/KX_SG_NodeRelationships.h
===================================================================
diff --git a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp
index e80de76..fb15905 100644
--- a/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp
+++ b/source/gameengine/Ketsji/KX_SG_NodeRelationships.cpp
@@ -32,28 +32,18 @@
#include "KX_SG_NodeRelationships.h"
-/**
- * Implementation of classes defined in KX_SG_NodeRelationships.h
- */
/**
- * first of all KX_NormalParentRelation
+ * KX_NormalParentRelation - a regular parent/child relation, the child's coordinates are relative to the parent
*/
- KX_NormalParentRelation *
-KX_NormalParentRelation::
-New(
-) {
+KX_NormalParentRelation* KX_NormalParentRelation::New()
+{
return new KX_NormalParentRelation();
}
- bool
-KX_NormalParentRelation::
-UpdateChildCoordinates(
- SG_Spatial * child,
- const SG_Spatial * parent,
- bool& parentUpdated
-) {
+bool KX_NormalParentRelation::UpdateChildCoordinates(SG_Spatial *child, const SG_Spatial *parent, bool &parentUpdated)
+{
MT_assert(child != NULL);
if (!parentUpdated && !child->IsModified())
@@ -80,26 +70,24 @@ UpdateChildCoordinates(
}
}
- SG_ParentRelation *
-KX_NormalParentRelation::
-NewCopy(
-) {
+SG_ParentRelation* KX_NormalParentRelation::NewCopy()
+{
return new KX_NormalParentRelation();
}
-KX_NormalParentRelation::
-~KX_NormalParentRelation(
-) {
+KX_NormalParentRelation::~KX_NormalParentRelation()
+{
//nothing to do
}
-
-KX_NormalParentRelation::
-KX_NormalParentRelation(
-) {
+KX_NormalParentRelation::KX_NormalParentRelation()
+{
// nothing to do
}
+
+
+
/**
* Next KX_VertexParentRelation
*/
diff --git a/source/gameengine/Ketsji/KX_SG_NodeRelationships.h b/source/gameengine/Ketsji/KX_SG_NodeRelationships.h
index 5d777f5..f8df5a5 100644
--- a/source/gameengine/Ketsji/KX_SG_NodeRelationships.h
+++ b/source/gameengine/Ketsji/KX_SG_NodeRelationships.h
@@ -28,15 +28,15 @@
/** \file KX_SG_NodeRelationships.h
* \ingroup ketsji
- * \section KX_SG_NodeRelationships
- * This file provides common concrete implementations of
+ * \section KX_SG_NodeRelationships
+ * This file provides common concrete implementations of
* SG_ParentRelation used by the game engine. These are
* KX_SlowParentRelation a slow parent relationship.
- * KX_NormalParentRelation a normal parent relationship where
+ * KX_NormalParentRelation a normal parent relationship where
* orientation and position are inherited from the parent by
* the child.
- * KX_VertexParentRelation only location information is
- * inherited by the child.
+ * KX_VertexParentRelation only location information is
+ * inherited by the child.
*/
#ifndef __KX_SG_NODERELATIONSHIPS_H__
@@ -53,38 +53,23 @@ public :
* Allocate and construct a new KX_NormalParentRelation
* on the heap.
*/
-
- static
- KX_NormalParentRelation *
- New(
- );
+ static KX_NormalParentRelation* New();
/**
* Method inherited from KX_ParentRelation
*/
-
- bool
- UpdateChildCoordinates(
- SG_Spatial * child,
- const SG_Spatial * parent,
- bool& parentUpdated
- );
+ bool UpdateChildCoordinates(SG_Spatial *child, const SG_Spatial *parent, bool &parentUpdated);
/**
* Method inherited from KX_ParentRelation
*/
-
- SG_ParentRelation *
- NewCopy(
- );
+ SG_ParentRelation* NewCopy();
- ~KX_NormalParentRelation(
- );
+ ~KX_NormalParentRelation();
private :
- KX_NormalParentRelation(
- );
+ KX_NormalParentRelation();
#ifdef WITH_CXX_GUARDEDALLOC
@@ -228,4 +213,4 @@ private :
#endif
};
-#endif
+#endif * __KX_SG_NODERELATIONSHIPS_H__ */
More information about the Bf-blender-cvs
mailing list