style cleanup: bge
authorCampbell Barton <ideasman42@gmail.com>
Mon, 15 Oct 2012 04:16:34 +0000 (04:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 15 Oct 2012 04:16:34 +0000 (04:16 +0000)
source/blender/render/intern/source/shadeoutput.c
source/gameengine/Converter/KX_ConvertActuators.cpp
source/gameengine/Converter/KX_ConvertActuators.h
source/gameengine/Ketsji/KX_Scene.cpp

index 873657ec6baa70ac596bd95e320f930d21a77ec1..31743b22c751aa75fe2b814d10fab8247baac4d0 100644 (file)
@@ -468,9 +468,10 @@ static float area_lamp_energy(float (*area)[3], const float co[3], const float v
 
        /* cross product */
 #define CROSS(dest, a, b) \
-       { dest[0]= a[1] * b[2] - a[2] * b[1]; \
-         dest[1]= a[2] * b[0] - a[0] * b[2]; \
-         dest[2]= a[0] * b[1] - a[1] * b[0]; \
+       { \
+               dest[0]= a[1] * b[2] - a[2] * b[1]; \
+               dest[1]= a[2] * b[0] - a[0] * b[2]; \
+               dest[2]= a[0] * b[1] - a[1] * b[0]; \
        } (void)0
 
        CROSS(cross[0], vec[0], vec[1]);
index cc5bf4ccbbc09458467612c4bcad7a67ab2b3e71..ea2b85f8c5edb648db177c5b676170004966a052 100644 (file)
 #include "BL_BlenderDataConversion.h"
 
 /** 
- * KX_BLENDERTRUNC needed to round 'almost' zero values to zero, else velocities etc. are incorrectly set
+ * KX_flt_trunc needed to round 'almost' zero values to zero, else velocities etc. are incorrectly set
  */
 
-#define KX_BLENDERTRUNC(x)  (( x < 0.0001f && x > -0.0001f ) ? 0.0f : x)
+BLI_INLINE float KX_flt_trunc(const float x)
+{
+       return ( x < 0.0001f && x > -0.0001f ) ? 0.0f : x;
+}
 
 void BL_ConvertActuators(const char* maggiename,
-                                                struct Object* blenderobject,
-                                                KX_GameObject* gameobj,
-                                                SCA_LogicManager* logicmgr,
-                                                KX_Scene* scene,
-                                                KX_KetsjiEngine* ketsjiEngine,
-                                                int activeLayerBitInfo,
-                                                bool isInActiveLayer,
-                                                RAS_IRenderTools* rendertools,
-                                                KX_BlenderSceneConverter* converter
-                                                )
+                         struct Object* blenderobject,
+                         KX_GameObject* gameobj,
+                         SCA_LogicManager* logicmgr,
+                         KX_Scene* scene,
+                         KX_KetsjiEngine* ketsjiEngine,
+                         int activeLayerBitInfo,
+                         bool isInActiveLayer,
+                         RAS_IRenderTools* rendertools,
+                         KX_BlenderSceneConverter* converter
+                         )
 {
        
        int uniqueint = 0;
@@ -145,20 +148,23 @@ void BL_ConvertActuators(const char* maggiename,
                        {
                                bObjectActuator* obact = (bObjectActuator*) bact->data;
                                KX_GameObject* obref = NULL;
-                               MT_Vector3 forcevec(KX_BLENDERTRUNC(obact->forceloc[0]),
-                                       KX_BLENDERTRUNC(obact->forceloc[1]),
-                                       KX_BLENDERTRUNC(obact->forceloc[2]));
-                               MT_Vector3 torquevec(obact->forcerot[0],obact->forcerot[1],obact->forcerot[2]);
-                               MT_Vector3 dlocvec ( KX_BLENDERTRUNC(obact->dloc[0]),
-                                       KX_BLENDERTRUNC(obact->dloc[1]),
-                                       KX_BLENDERTRUNC(obact->dloc[2]));
-                               MT_Vector3 drotvec ( KX_BLENDERTRUNC(obact->drot[0]),obact->drot[1],obact->drot[2]);
-                               MT_Vector3 linvelvec ( KX_BLENDERTRUNC(obact->linearvelocity[0]),
-                                       KX_BLENDERTRUNC(obact->linearvelocity[1]),
-                                       KX_BLENDERTRUNC(obact->linearvelocity[2]));
-                               MT_Vector3 angvelvec ( KX_BLENDERTRUNC(obact->angularvelocity[0]),
-                                       KX_BLENDERTRUNC(obact->angularvelocity[1]),
-                                       KX_BLENDERTRUNC(obact->angularvelocity[2]));
+                               MT_Vector3 forcevec(KX_flt_trunc(obact->forceloc[0]),
+                                                   KX_flt_trunc(obact->forceloc[1]),
+                                                   KX_flt_trunc(obact->forceloc[2]));
+                               MT_Vector3 torquevec(obact->forcerot[0],
+                                                    obact->forcerot[1],
+                                                    obact->forcerot[2]);
+                               MT_Vector3 dlocvec(KX_flt_trunc(obact->dloc[0]),
+                                                  KX_flt_trunc(obact->dloc[1]),
+                                                  KX_flt_trunc(obact->dloc[2]));
+                               MT_Vector3 drotvec(KX_flt_trunc(obact->drot[0]),
+                                                  obact->drot[1],obact->drot[2]);
+                               MT_Vector3 linvelvec(KX_flt_trunc(obact->linearvelocity[0]),
+                                                    KX_flt_trunc(obact->linearvelocity[1]),
+                                                    KX_flt_trunc(obact->linearvelocity[2]));
+                               MT_Vector3 angvelvec(KX_flt_trunc(obact->angularvelocity[0]),
+                                                    KX_flt_trunc(obact->angularvelocity[1]),
+                                                    KX_flt_trunc(obact->angularvelocity[2]));
                                short damping = obact->damping;
 
                                /* Blender uses a bit vector internally for the local-flags. In */
@@ -180,17 +186,17 @@ void BL_ConvertActuators(const char* maggiename,
                                        obref = converter->FindGameObject(obact->reference);
                                }
                                
-                               KX_ObjectActuator* tmpbaseact = new KX_ObjectActuator(gameobj,
-                                       obref,
-                                       forcevec.getValue(),
-                                       torquevec.getValue(),
-                                       dlocvec.getValue(),
-                                       drotvec.getValue(),
-                                       linvelvec.getValue(),
-                                       angvelvec.getValue(),
-                                       damping,
-                                       bitLocalFlag
-                                       );
+                               KX_ObjectActuator* tmpbaseact = new KX_ObjectActuator(
+                                           gameobj,
+                                           obref,
+                                           forcevec.getValue(),
+                                           torquevec.getValue(),
+                                           dlocvec.getValue(),
+                                           drotvec.getValue(),
+                                           linvelvec.getValue(),
+                                           angvelvec.getValue(),
+                                           damping,
+                                           bitLocalFlag);
                                baseact = tmpbaseact;
                                break;
                        }
@@ -209,22 +215,22 @@ void BL_ConvertActuators(const char* maggiename,
                                if (actact->flag & ACT_IPOCHILD) ipo_flags |= BL_Action::ACT_IPOFLAG_CHILD;
                                        
                                BL_ActionActuator* tmpbaseact = new BL_ActionActuator(
-                                       gameobj,
-                                       propname,
-                                       propframe,
-                                       actact->sta,
-                                       actact->end,
-                                       actact->act,
-                                       actact->type, // + 1, because Blender starts to count at zero,
-                                       actact->blendin,
-                                       actact->priority,
-                                       actact->layer,
-                                       actact->layer_weight,
-                                       ipo_flags,
-                                       actact->end_reset,
-                                       actact->stridelength
-                                       // Ketsji at 1, because zero is reserved for "NoDef"
-                                       );
+                                           gameobj,
+                                           propname,
+                                           propframe,
+                                           actact->sta,
+                                           actact->end,
+                                           actact->act,
+                                           actact->type, // + 1, because Blender starts to count at zero,
+                                           actact->blendin,
+                                           actact->priority,
+                                           actact->layer,
+                                           actact->layer_weight,
+                                           ipo_flags,
+                                           actact->end_reset,
+                                           actact->stridelength
+                                           // Ketsji at 1, because zero is reserved for "NoDef"
+                                           );
                                baseact= tmpbaseact;
                                break;
                        }
@@ -236,18 +242,17 @@ void BL_ConvertActuators(const char* maggiename,
                                        STR_String propframe = (actact->frameProp ? actact->frameProp : "");
                                        
                                        BL_ShapeActionActuator* tmpbaseact = new BL_ShapeActionActuator(
-                                               gameobj,
-                                               propname,
-                                               propframe,
-                                               actact->sta,
-                                               actact->end,
-                                               actact->act,
-                                               actact->type, // + 1, because Blender starts to count at zero,
-                                               actact->blendin,
-                                               actact->priority,
-                                               actact->stridelength
-                                               // Ketsji at 1, because zero is reserved for "NoDef"
-                                               );
+                                                   gameobj,
+                                                   propname,
+                                                   propframe,
+                                                   actact->sta,
+                                                   actact->end,
+                                                   actact->act,
+                                                   actact->type, // + 1, because Blender starts to count at zero,
+                                                   actact->blendin,
+                                                   actact->priority,
+                                                   actact->stridelength);
+                                       // Ketsji at 1, because zero is reserved for "NoDef"
                                        baseact= tmpbaseact;
                                        break;
                                }
@@ -266,17 +271,17 @@ void BL_ConvertActuators(const char* maggiename,
                                bool ipo_add = (ipoact->flag & ACT_IPOADD);
                                
                                KX_IpoActuator* tmpbaseact = new KX_IpoActuator(
-                                       gameobj,
-                                       propname ,
-                                       frameProp,
-                                       ipoact->sta,
-                                       ipoact->end,
-                                       ipochild,
-                                       ipoact->type + 1, // + 1, because Blender starts to count at zero,
-                                       // Ketsji at 1, because zero is reserved for "NoDef"
-                                       ipo_as_force,
-                                       ipo_add,
-                                       local);
+                                           gameobj,
+                                           propname ,
+                                           frameProp,
+                                           ipoact->sta,
+                                           ipoact->end,
+                                           ipochild,
+                                           ipoact->type + 1, // + 1, because Blender starts to count at zero,
+                                           // Ketsji at 1, because zero is reserved for "NoDef"
+                                           ipo_as_force,
+                                           ipo_add,
+                                           local);
                                baseact = tmpbaseact;
                                break;
                        }
@@ -292,14 +297,14 @@ void BL_ConvertActuators(const char* maggiename,
                                        
                                        /* visifac, fac and axis are not copied from the struct...   */ 
                                        /* that's some internal state...                             */
-                                       KX_CameraActuator *tmpcamact
-                                               = new KX_CameraActuator(gameobj,
-                                               tmpgob,
-                                               camact->height,
-                                               camact->min,
-                                               camact->max,
-                                               camact->axis,
-                                               camact->damping);
+                                       KX_CameraActuator *tmpcamact = new KX_CameraActuator(
+                                                   gameobj,
+                                                   tmpgob,
+                                                   camact->height,
+                                                   camact->min,
+                                                   camact->max,
+                                                   camact->axis,
+                                                   camact->damping);
                                        baseact = tmpcamact;
                                }
                                break;
@@ -332,14 +337,13 @@ void BL_ConvertActuators(const char* maggiename,
                                        ? (char*) msgAct->body
                                        : "");
                                
-                               KX_NetworkMessageActuator *tmpmsgact = 
-                                       new KX_NetworkMessageActuator(
-                                       gameobj,                                        // actuator controlling object
-                                       scene->GetNetworkScene(),       // needed for replication
-                                       toPropName,
-                                       subject,
-                                       bodyType,
-                                       body);
+                               KX_NetworkMessageActuator *tmpmsgact = new KX_NetworkMessageActuator(
+                                           gameobj,                                    // actuator controlling object
+                                           scene->GetNetworkScene(),   // needed for replication
+                                           toPropName,
+                                           subject,
+                                           bodyType,
+                                           body);
                                baseact = tmpmsgact;
                                break;
                        }
@@ -456,11 +460,11 @@ void BL_ConvertActuators(const char* maggiename,
                                        destinationObj = converter->FindGameObject(propact->ob);
                                
                                SCA_PropertyActuator* tmppropact = new SCA_PropertyActuator(
-                                       gameobj,
-                                       destinationObj,
-                                       propact->name,
-                                       propact->value,
-                                       propact->type+1); // + 1 because Ketsji Logic starts
+                                           gameobj,
+                                           destinationObj,
+                                           propact->name,
+                                           propact->value,
+                                           propact->type + 1); // + 1 because Ketsji Logic starts
                                // with 0 for KX_ACT_PROP_NODEF
                                baseact = tmppropact;
                                break;
@@ -490,18 +494,16 @@ void BL_ConvertActuators(const char* maggiename,
                                                        }
                                                }
                                                
-                                               KX_SCA_AddObjectActuator* tmpaddact = 
-                                                       new KX_SCA_AddObjectActuator(
-                                                               gameobj, 
-                                                               originalval,
-                                                               editobact->time,
-                                                               scene,
-                                                               editobact->linVelocity,
-                                                               (editobact->localflag & ACT_EDOB_LOCAL_LINV)!=0,
-                                                               editobact->angVelocity,
-                                                               (editobact->localflag & ACT_EDOB_LOCAL_ANGV)!=0
-                                                               );
-                                                               
+                                               KX_SCA_AddObjectActuator* tmpaddact = new KX_SCA_AddObjectActuator(
+                                                           gameobj,
+                                                           originalval,
+                                                           editobact->time,
+                                                           scene,
+                                                           editobact->linVelocity,
+                                                           (editobact->localflag & ACT_EDOB_LOCAL_LINV) != 0,
+                                                           editobact->angVelocity,
+                                                           (editobact->localflag & ACT_EDOB_LOCAL_ANGV) != 0);
+
                                                                //editobact->ob to gameobj
                                                                baseact = tmpaddact;
                                        }
@@ -518,23 +520,20 @@ void BL_ConvertActuators(const char* maggiename,
                                                RAS_MeshObject *tmpmesh = NULL;
                                                if (editobact->me)
                                                        tmpmesh = BL_ConvertMesh(
-                                                               editobact->me,
-                                                               blenderobject,
-                                                               scene,
-                                                               converter
-                                                               );
+                                                                   editobact->me,
+                                                                   blenderobject,
+                                                                   scene,
+                                                                   converter
+                                                                   );
 
-                                               KX_SCA_ReplaceMeshActuator* tmpreplaceact
-                                                       = new KX_SCA_ReplaceMeshActuator(
-                                                               gameobj,
-                                                               tmpmesh,
-                                                               scene,
-                                                               (editobact->flag & ACT_EDOB_REPLACE_MESH_NOGFX)==0,
-                                                               (editobact->flag & ACT_EDOB_REPLACE_MESH_PHYS)!=0
-                                                               
-                                                               );
-                                                       
-                                                       baseact = tmpreplaceact;
+                                               KX_SCA_ReplaceMeshActuator* tmpreplaceact = new KX_SCA_ReplaceMeshActuator(
+                                                           gameobj,
+                                                           tmpmesh,
+                                                           scene,
+                                                           (editobact->flag & ACT_EDOB_REPLACE_MESH_NOGFX) == 0,
+                                                           (editobact->flag & ACT_EDOB_REPLACE_MESH_PHYS) != 0);
+
+                                               baseact = tmpreplaceact;
                                        }
                                        break;
                                case ACT_EDOB_TRACK_TO:
@@ -543,25 +542,23 @@ void BL_ConvertActuators(const char* maggiename,
                                                if (editobact->ob)
                                                        originalval = converter->FindGameObject(editobact->ob);
                                                        
-                                               KX_TrackToActuator* tmptrackact 
-                                                       = new KX_TrackToActuator(gameobj, 
-                                                               originalval,
-                                                               editobact->time,
-                                                               editobact->flag,
-                                                               blenderobject->trackflag,
-                                                               blenderobject->upflag
-                                                               );
-                                                       baseact = tmptrackact;
+                                               KX_TrackToActuator* tmptrackact = new KX_TrackToActuator(
+                                                           gameobj,
+                                                           originalval,
+                                                           editobact->time,
+                                                           editobact->flag,
+                                                           blenderobject->trackflag,
+                                                           blenderobject->upflag);
+                                               baseact = tmptrackact;
                                                break;
                                        }
                                case ACT_EDOB_DYNAMICS:
                                        {
-                                               KX_SCA_DynamicActuator* tmpdynact 
-                                                       = new KX_SCA_DynamicActuator(gameobj, 
-                                                               editobact->dyn_operation,
-                                                               editobact->mass
-                                                               );
-                                                       baseact = tmpdynact;
+                                               KX_SCA_DynamicActuator* tmpdynact = new KX_SCA_DynamicActuator(
+                                                           gameobj,
+                                                           editobact->dyn_operation,
+                                                           editobact->mass);
+                                               baseact = tmpdynact;
                                        }
                                }
                                break;
@@ -693,17 +690,17 @@ void BL_ConvertActuators(const char* maggiename,
                                                ; /* error */ 
                                        }
                                }
-                               KX_ConstraintActuator *tmpconact 
-                                       = new KX_ConstraintActuator(gameobj,
-                                               conact->damp,
-                                               conact->rotdamp,
-                                               min,
-                                               max,
-                                               conact->maxrot,
-                                               locrot,
-                                               conact->time,
-                                               conact->flag,
-                                               prop);
+                               KX_ConstraintActuator *tmpconact = new KX_ConstraintActuator(
+                                           gameobj,
+                                           conact->damp,
+                                           conact->rotdamp,
+                                           min,
+                                           max,
+                                           conact->maxrot,
+                                           locrot,
+                                           conact->time,
+                                           conact->flag,
+                                           prop);
                                baseact = tmpconact;
                                break;
                        }
@@ -776,13 +773,14 @@ void BL_ConvertActuators(const char* maggiename,
                                default:
                                        ; /* flag error */
                                }
-                               tmpsceneact = new KX_SceneActuator(gameobj,
-                                               mode,
-                                               scene,
-                                               ketsjiEngine,
-                                               nextSceneName,
-                                               cam);
-                                       baseact = tmpsceneact;
+                               tmpsceneact = new KX_SceneActuator(
+                                           gameobj,
+                                           mode,
+                                           scene,
+                                           ketsjiEngine,
+                                           nextSceneName,
+                                           cam);
+                               baseact = tmpsceneact;
                                break;
                        }
                case ACT_GAME:
@@ -831,13 +829,14 @@ void BL_ConvertActuators(const char* maggiename,
                                default:
                                        ; /* flag error */
                                }
-                                       tmpgameact = new KX_GameActuator(gameobj,
-                                               mode,
-                                               filename,
-                                               loadinganimationname,
-                                               scene,
-                                               ketsjiEngine);
-                                       baseact = tmpgameact;
+                               tmpgameact = new KX_GameActuator(
+                                           gameobj,
+                                           mode,
+                                           filename,
+                                           loadinganimationname,
+                                           scene,
+                                           ketsjiEngine);
+                               baseact = tmpgameact;
 
                                break;
                        }
@@ -904,12 +903,13 @@ void BL_ConvertActuators(const char* maggiename,
                                default:
                                        ; /* error */
                                }
-                               tmprandomact = new SCA_RandomActuator(gameobj,
-                                       seedArg,
-                                       modeArg, 
-                                       paraArg1,
-                                       paraArg2,
-                                       randAct->propname);
+                               tmprandomact = new SCA_RandomActuator(
+                                           gameobj,
+                                           seedArg,
+                                           modeArg,
+                                           paraArg1,
+                                           paraArg2,
+                                           randAct->propname);
                                baseact = tmprandomact;
                        }
                        break;
@@ -998,8 +998,9 @@ void BL_ConvertActuators(const char* maggiename,
                                        break;
                        }
 
-                       tmp = new SCA_2DFilterActuator(gameobj, filtermode, _2dfilter->flag,
-                               _2dfilter->float_arg,_2dfilter->int_arg,ketsjiEngine->GetRasterizer(),scene);
+                       tmp = new SCA_2DFilterActuator(gameobj, filtermode,  _2dfilter->flag,
+                                                      _2dfilter->float_arg, _2dfilter->int_arg,
+                                                      ketsjiEngine->GetRasterizer(), scene);
 
                        if (_2dfilter->text)
                        {
@@ -1054,7 +1055,15 @@ void BL_ConvertActuators(const char* maggiename,
                                bArmatureActuator* armAct = (bArmatureActuator*) bact->data;
                                KX_GameObject *tmpgob = converter->FindGameObject(armAct->target);
                                KX_GameObject *subgob = converter->FindGameObject(armAct->subtarget);
-                               BL_ArmatureActuator* tmparmact = new BL_ArmatureActuator(gameobj, armAct->type, armAct->posechannel, armAct->constraint, tmpgob, subgob, armAct->weight, armAct->influence);
+                               BL_ArmatureActuator* tmparmact = new BL_ArmatureActuator(
+                                           gameobj,
+                                           armAct->type,
+                                           armAct->posechannel,
+                                           armAct->constraint,
+                                           tmpgob,
+                                           subgob,
+                                           armAct->weight,
+                                           armAct->influence);
                                baseact = tmparmact;
                                break;
                        }
index 596c8cab936b254313d2a6a3bf238bca32a14794..385d274bf8944fe7f6f7b0a5a7c8c1fd6f8d51d8 100644 (file)
 #define __KX_CONVERTACTUATORS_H__
 
 void BL_ConvertActuators(const char* maggiename,
-        struct Object* blenderobject,
-        class KX_GameObject* gameobj,
-        class SCA_LogicManager* logicmgr,
-        class KX_Scene* scene,
-        class KX_KetsjiEngine* ketsjiEngine,
-        int activeLayerBitInfo,
-        bool isInActiveLayer,
-        class RAS_IRenderTools* rendertools, 
-        class KX_BlenderSceneConverter* converter);
+                         struct Object* blenderobject,
+                         class KX_GameObject* gameobj,
+                         class SCA_LogicManager* logicmgr,
+                         class KX_Scene* scene,
+                         class KX_KetsjiEngine* ketsjiEngine,
+                         int activeLayerBitInfo,
+                         bool isInActiveLayer,
+                         class RAS_IRenderTools* rendertools,
+                         class KX_BlenderSceneConverter* converter);
 
 #endif  /* __KX_CONVERTACTUATORS_H__ */
index 75605fb8fd16bb73ff608fc6f76d9c403d80cf3b..a6b7ed3f732ad7fc8c8a1aaf409308055842e724 100644 (file)
@@ -1254,9 +1254,9 @@ KX_FontObject* KX_Scene::FindFont(KX_FontObject* font)
 {
        list<KX_FontObject*>::iterator it = m_fonts.begin();
 
-       while ( (it != m_fonts.end()) 
-                       && ((*it) != font) ) {
-         ++it;
+       while ((it != m_fonts.end()) && ((*it) != font))
+       {
+               ++it;
        }
 
        return ((it == m_fonts.end()) ? NULL : (*it));
@@ -1268,9 +1268,7 @@ KX_Camera* KX_Scene::FindCamera(KX_Camera* cam)
 {
        list<KX_Camera*>::iterator it = m_cameras.begin();
 
-       while ( (it != m_cameras.end())
-               && ((*it) != cam) )
-       {
+       while ((it != m_cameras.end()) && ((*it) != cam)) {
                it++;
        }
 
@@ -1282,9 +1280,7 @@ KX_Camera* KX_Scene::FindCamera(STR_String& name)
 {
        list<KX_Camera*>::iterator it = m_cameras.begin();
 
-       while ( (it != m_cameras.end())
-               && ((*it)->GetName() != name) )
-       {
+       while ((it != m_cameras.end()) && ((*it)->GetName() != name)) {
                it++;
        }
 
@@ -1509,8 +1505,8 @@ void KX_Scene::CalculateVisibleMeshes(RAS_IRasterizer* rasty,KX_Camera* cam, int
                cam->GetProjectionMatrix().getValue(pmat);
 
                dbvt_culling = m_physicsEnvironment->cullingTest(PhysicsCullingCallback,&info,planes,5,m_dbvt_occlusion_res,
-                                                                                                               KX_GetActiveEngine()->GetCanvas()->GetViewPort(),
-                                                                                                               mvmat, pmat);
+                                                                KX_GetActiveEngine()->GetCanvas()->GetViewPort(),
+                                                                mvmat, pmat);
        }
        if (!dbvt_culling) {
                // the physics engine couldn't help us, do it the hard way
@@ -1639,8 +1635,8 @@ RAS_MaterialBucket* KX_Scene::FindBucket(class RAS_IPolyMaterial* polymat, bool
 
 
 void KX_Scene::RenderBuckets(const MT_Transform & cameratransform,
-                                                        class RAS_IRasterizer* rasty,
-                                                        class RAS_IRenderTools* rendertools)
+                             class RAS_IRasterizer* rasty,
+                             class RAS_IRenderTools* rendertools)
 {
        m_bucketmanager->Renderbuckets(cameratransform,rasty,rendertools);
        KX_BlenderMaterial::EndFrame();