LoadBalancing mgt. |
enum | TPolygonBalancingMode { PolygonBalancingOff = 0,
PolygonBalancingOn,
PolygonBalancingClamp,
CountPolygonBalancing
} |
| The mode of polygon balancing. More...
|
virtual void | setPolygonBalancingMode (TPolygonBalancingMode polBalMode)=0 |
| Set the PolygonBalancingMode. More...
|
virtual TPolygonBalancingMode | getPolygonBalancingMode () const=0 |
| Get the PolygonBalancingMode. More...
|
virtual float | getNbFaceAsked () const=0 |
| Get the last face count asked from the instances before reduction. More...
|
virtual void | setGroupLoadMaxPolygon (const std::string &group, uint nFaces)=0 |
| Set the number of faces wanted for a LoadBlancingGroup. More...
|
virtual uint | getGroupLoadMaxPolygon (const std::string &group)=0 |
| Get the number of faces wanted for a LoadBlancingGroup. More...
|
virtual float | getGroupNbFaceAsked (const std::string &group) const=0 |
| Get the last face count asked from the instances before reduction. More...
|
virtual void | setMaxSkeletonsInNotCLodForm (uint m)=0 |
| LoadBalancing for CLod and Skeletons. More...
|
virtual uint | getMaxSkeletonsInNotCLodForm () const=0 |
| see setMaxSkeletonsInNotCLodForm(). More...
|
Public Types |
Public Methods |
|
virtual void | render ()=0 |
| Render the scene from the CurrentCamera view (setCam()), and the current Viewport. More...
|
virtual void | updateWaitingInstances (double systemTimeEllapsed)=0 |
| Update waiting instances and igs that are loaded asynchronously NB: this is called by render(). More...
|
virtual void | animate (TGlobalAnimationTime time)=0 |
| Set the animation time for lightmap and Particle System animation. More...
|
|
virtual void | setCam (UCamera *cam)=0 |
| Set the current camera for this scene. nlError if NULL, or if the camera was not created by this UScene. More...
|
virtual UCamera * | getCam ()=0 |
| Get the current camera. More...
|
virtual void | setViewport (const class CViewport &viewport)=0 |
| Set the current Viewport. More...
|
virtual CViewport | getViewport ()=0 |
| Get the current Viewport. More...
|
|
virtual UCamera * | createCamera ()=0 |
| Create a camera. Usefull for this scene only. More...
|
virtual void | deleteCamera (UCamera *cam)=0 |
| Delete a camera. More...
|
virtual UInstance * | createInstance (const std::string &shapeName)=0 |
| Create an instance of the shape "shapename". More...
|
virtual void | createInstanceAsync (const std::string &shapeName, UInstance **ppInstance)=0 |
| Same as createInstance but the instance is loaded asynchronously. More...
|
virtual void | deleteInstance (UInstance *inst)=0 |
| Delete an instance via his pointer. More...
|
virtual void | createInstanceGroupAndAddToSceneAsync (const std::string &instanceGroup, UInstanceGroup **pIG, const NLMISC::CVector &offset)=0 |
| create an instance group asynchronously, and add it to a scene asynchronously once it has been loaded. More...
|
virtual void | stopCreatingAndAddingIG (UInstanceGroup **pIG)=0 |
| Stop loading and adding an ig to the scene. More...
|
virtual UTransform * | createTransform ()=0 |
| Create a dummy object. More...
|
virtual void | deleteTransform (UTransform *tr)=0 |
| Delete a dummy object. More...
|
virtual USkeleton * | createSkeleton (const std::string &shapeName)=0 |
| Create a skeleton instance of the skeleton shape "shapename". More...
|
virtual void | deleteSkeleton (USkeleton *skel)=0 |
| Delete a skeleton instance via his pointer. More...
|
virtual ULandscape * | createLandscape ()=0 |
| Create a landscape. There could be many Landscape per Scene (Driver? :). But never tested :). More...
|
virtual void | deleteLandscape (ULandscape *land)=0 |
| delete a landscape. More...
|
virtual UCloudScape * | createCloudScape ()=0 |
| Create a landscape. There could be many Landscape per Scene (Driver? :). But never tested :). More...
|
virtual void | deleteCloudScape (UCloudScape *cs)=0 |
| delete a landscape. More...
|
virtual void | setToGlobalInstanceGroup (UInstanceGroup *pIGU)=0 |
| Assign the Instance Group to the root cluster. More...
|
virtual UPointLight * | createPointLight ()=0 |
| Create a dynamic PointLight. Usefull for this scene only. More...
|
virtual void | deletePointLight (UPointLight *light)=0 |
| Delete a dynamic PointLight. More...
|
|
virtual UAnimationSet * | createAnimationSet ()=0 |
| Create an empty AnimationSet. More...
|
virtual UAnimationSet * | createAnimationSet (const std::string &animationSetFile)=0 |
| Create a new AnimationSet, load it from a file. Use CPath to search the animation set. exception EPathNotFound if not found. More...
|
virtual void | deleteAnimationSet (UAnimationSet *animationSet)=0 |
| Delete a AnimationSet. NB: actually, this animation set is internally deleted only when no more UPlayList use it. More...
|
virtual UPlayListManager * | createPlayListManager ()=0 |
| Create a new PlayListManager. More...
|
virtual void | deletePlayListManager (UPlayListManager *playListManager)=0 |
| Delete a PlayListManager. More...
|
virtual void | setAutomaticAnimationSet (UAnimationSet *as)=0 |
| Set the automatic animation set used by the scene. More...
|
|
virtual UVisualCollisionManager * | createVisualCollisionManager ()=0 |
virtual void | deleteVisualCollisionManager (UVisualCollisionManager *mgr)=0 |
|
virtual void | setStaticCoarseMeshManagerTexture (const char *sPath)=0 |
| Set the static coarse meshes's common texture. More...
|
virtual void | setDynamicCoarseMeshManagerTexture (const char *sPath)=0 |
| Set the dynamic coarse meshes's common texture. More...
|
virtual void | setCoarseMeshLightingUpdate (uint8 period)=0 |
| Each coarseMesh lighting will be updated every "period" frame. More...
|
virtual uint8 | getCoarseMeshLightingUpdate () const=0 |
| see setCoarseMeshLightingUpdate(). More...
|
|
virtual void | enableLightingSystem (bool enable)=0 |
| Enable Scene Lighting system. More...
|
virtual void | setAmbientGlobal (NLMISC::CRGBA ambient)=0 |
| set the global Ambient used for the scene. Default to (50, 50, 50). More...
|
virtual void | setSunAmbient (NLMISC::CRGBA ambient)=0 |
| set the Ambient of the Sun used for the scene. More...
|
virtual void | setSunDiffuse (NLMISC::CRGBA diffuse)=0 |
| set the Diffuse of the Sun used for the scene. More...
|
virtual void | setSunSpecular (NLMISC::CRGBA specular)=0 |
| set the Specular of the Sun used for the scene. More...
|
virtual void | setSunDirection (const NLMISC::CVector &direction)=0 |
| set the Direction of the Sun used for the scene. More...
|
virtual NLMISC::CRGBA | getAmbientGlobal () const=0 |
| get the global Ambient used for the scene. Default to (50, 50, 50). More...
|
virtual NLMISC::CRGBA | getSunAmbient () const=0 |
| get the Ambient of the Sun used for the scene. More...
|
virtual NLMISC::CRGBA | getSunDiffuse () const=0 |
| get the Diffuse of the Sun used for the scene. More...
|
virtual NLMISC::CRGBA | getSunSpecular () const=0 |
| get the Specular of the Sun used for the scene. More...
|
virtual NLMISC::CVector | getSunDirection () const=0 |
| get the Direction of the Sun used for the scene. More...
|
virtual void | setMaxLightContribution (uint nlights)=0 |
| setup the max number of point light that can influence a model. More...
|
virtual uint | getMaxLightContribution () const=0 |
| -
See also:
-
setMaxLightContribution().
More...
|
virtual void | setLightTransitionThreshold (float lightTransitionThreshold)=0 |
| Advanced. More...
|
virtual float | getLightTransitionThreshold () const=0 |
| -
See also:
-
getLightTransitionThreshold().
More...
|
|
virtual void | setLayersRenderingOrder (bool directOrder=true)=0 |
| Set the order or rendering of layers containing transparent objects. More...
|
virtual bool | getLayersRenderingOrder () const=0 |
|
virtual void | setGlobalWindPower (float gwp)=0 |
| Set the current windPower for all the scene. 0-1. More...
|
virtual float | getGlobalWindPower () const=0 |
| get the current windPower. More...
|
virtual void | setGlobalWindDirection (const NLMISC::CVector &gwd)=0 |
| Set the current windDirection for all the scene. dir.z set to 0 and vector normalized. More...
|
virtual const NLMISC::CVector & | getGlobalWindDirection () const=0 |
| get the current windDirection. More...
|
|
virtual void | resetCLodManager ()=0 |
| reset the manager. More...
|
virtual uint32 | loadCLodShapeBank (const std::string &fileName)=0 |
| Load a Shape Bank. More...
|
virtual void | deleteCLodShapeBank (uint32 bankId)=0 |
| delete a Shape Bank. No-op if bad id. More...
|
virtual sint32 | getCLodShapeIdByName (const std::string &name) const=0 |
| Get a shapeId by its name. More...
|
virtual sint32 | getCLodAnimIdByName (uint32 shapeId, const std::string &name) const=0 |
| Get a AnimId of a shape by its name. More...
|
Protected Methods |
|
| UScene () |
virtual | ~UScene () |