|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISceneManager
| Method Summary | |
|---|---|
void |
_applySceneAnimations()
Internal method for applying animations to scene nodes. |
boolean |
_areRenderStateChangesSuppressed()
Are render state changes suppressed? |
boolean |
_areShadowsSuppressed()
Are shadows suppressed? |
void |
_findVisibleObjects(ICamera cam,
IVisibleObjectsBoundsInfo visibleBounds,
boolean onlyShadowCasters)
Internal method which parses the scene to find visible objects to render. |
long |
_getCombinedVisibilityMask()
Internal method for getting the combination between the global visibility mask and the per-viewport visibility mask. |
ILightList |
_getLightsAffectingFrustum()
Get the list of lights which could be affecting the frustum. |
long |
_getLightsDirtyCounter()
Advance method to gets the lights dirty counter. |
void |
_injectRenderWithPass(IPass pass,
IRenderable rend,
boolean shadowDerivation)
Render something as if it came from the current queue. |
void |
_notifyAutotrackingSceneNode(ISceneNode node,
boolean autoTrack)
Internal method for notifying the manager that a is autotracking. |
void |
_notifyLightsDirty()
Advance method to increase the lights dirty counter due lights changed. |
void |
_populateLightList(IVector3 position,
float radius,
ILightList destList)
Populate a light list with an ordered set of the lights which are closest to the position specified. |
void |
_queueSkiesForRendering(ICamera cam)
Internal method for queueing the sky objects with the params as previously set through setSkyBox, setSkyPlane and setSkyDome. |
void |
_renderQueueGroupObjects(IRenderQueueGroup group,
QueuedRenderableCollection.OrganisationMode om)
Render the objects in a given queue group |
void |
_renderScene(ICamera camera,
IViewport vp,
boolean includeOverlays)
Prompts the class to send its contents to the renderer. |
void |
_renderVisibleObjects()
Sends visible objects found in _findVisibleObjects to the rendering engine. |
void |
_setDestinationRenderSystem(IRenderSystem sys)
Notifies the scene manager of its destination render system |
IPass |
_setPass(IPass pass,
boolean evenIfSuppressed,
boolean shadowDerivation)
Internal method for setting up the renderstate for a rendering pass. |
void |
_setSkyBox(boolean enable,
java.lang.String materialName,
float distance,
short renderQueue,
IQuaternion orientation,
java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky. |
void |
_setSkyDome(boolean enable,
java.lang.String materialName,
float curvature,
float tiling,
float distance,
short renderQueue,
IQuaternion orientation,
int xsegments,
int ysegments,
int ysegments_keep,
java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky. |
void |
_setSkyPlane(boolean enable,
IPlane plane,
java.lang.String materialName,
float scale,
float tiling,
short renderQueue,
float bow,
int xsegments,
int ysegments,
java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky. |
void |
_suppressRenderStateChanges(boolean suppress)
Indicates to the whether it should suppress changing the states when rendering objects. |
void |
_suppressShadows(boolean suppress)
Indicates to the whether it should suppress the active shadow rendering technique until told otherwise. |
void |
_updateSceneGraph(ICamera cam)
Internal method for updating the scene graph ie the tree of instances managed by this class. |
void |
addListener(ISceneManager.IListener s)
Add a listener which will get called back on scene manager events. |
void |
addRenderQueueListener(IRenderQueueListener newListener)
Registers a new which will be notified when render queues are processed. |
void |
addSpecialCaseRenderQueue(short qid)
Adds an item to the 'special case' render queue list. |
void |
clearScene()
Empties the entire scene, inluding all SceneNodes, Entities, Lights, BillboardSets etc. |
void |
clearSpecialCaseRenderQueues()
Clears the 'special case' render queue list. |
IAxisAlignedBoxSceneQuery |
createAABBQuery(IAxisAlignedBox box,
long mask)
Creates an for this scene manager. |
IAnimation |
createAnimation(java.lang.String name,
float length)
Creates an animation which can be used to animate scene nodes. |
IAnimationState |
createAnimationState(java.lang.String animName)
Create an object for managing application of animations. |
IBillboardChain |
createBillboardChain(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards. |
IBillboardSet |
createBillboardSet(java.lang.String name,
long poolSize)
Creates a new for use with this scene manager. |
ICamera |
createCamera(java.lang.String name)
Creates a camera to be managed by this scene manager. |
IEntity |
createEntity(java.lang.String entityName,
SceneManager.PrefabType ptype)
Create an (instance of a discrete mesh) from a range of prefab shapes. |
IEntity |
createEntity(java.lang.String entityName,
java.lang.String meshName)
Create an (instance of a discrete mesh). |
IInstancedGeometry |
createInstancedGeometry(java.lang.String name)
Creates a instance suitable for use with this . |
IIntersectionSceneQuery |
createIntersectionQuery(long mask)
Creates an for this scene manager. |
ILight |
createLight(java.lang.String name)
Creates a light for use in the scene. |
IManualObject |
createManualObject(java.lang.String name)
Create a , an object which you populate with geometry manually through a GL immediate-mode style interface. |
IMovableObject |
createMovableObject(java.lang.String name,
java.lang.String typeName,
INameValuePairList params)
Create a movable object of the type specified. |
IParticleSystem |
createParticleSystem(java.lang.String name,
int quota,
java.lang.String resourceGroup)
Create a blank particle system. |
IParticleSystem |
createParticleSystem(java.lang.String name,
java.lang.String templateName)
Creates a particle system based on a template. |
IPlaneBoundedVolumeListSceneQuery |
createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes,
long mask)
Creates a for this scene manager. |
IRaySceneQuery |
createRayQuery(IRay ray,
long mask)
Creates a for this scene manager. |
IRibbonTrail |
createRibbonTrail(java.lang.String name)
Create a , an object which you can use to render a linked chain of billboards which follows one or more nodes. |
ISceneNode |
createSceneNode()
Creates an instance of a . |
ISceneNode |
createSceneNode(java.lang.String name)
Creates an instance of a with a given name. |
ISphereSceneQuery |
createSphereQuery(ISphere sphere,
long mask)
Creates a for this scene manager. |
IStaticGeometry |
createStaticGeometry(java.lang.String name)
Creates a instance suitable for use with this . |
void |
destroyAllAnimations()
Removes all animations created using this . |
void |
destroyAllAnimationStates()
Removes all animation states created using this . |
void |
destroyAllBillboardChains()
Removes & destroys all BillboardChains from the . |
void |
destroyAllBillboardSets()
Removes & destroys all BillboardSets. |
void |
destroyAllCameras()
Removes (and destroys) all cameras from the scene. |
void |
destroyAllEntities()
Removes & destroys all Entities. |
void |
destroyAllInstancedGeometry()
Remove & destroy all instances. |
void |
destroyAllLights()
Removes and destroys all lights in the scene. |
void |
destroyAllManualObjects()
Removes & destroys all ManualObjects from the . |
void |
destroyAllMovableObjects()
Destroy all MovableObjects. |
void |
destroyAllMovableObjectsByType(java.lang.String typeName)
Destroy all MovableObjects of a given type. |
void |
destroyAllParticleSystems()
Removes & destroys all ParticleSystems from the . |
void |
destroyAllRibbonTrails()
Removes & destroys all RibbonTrails from the . |
void |
destroyAllStaticGeometry()
Remove & destroy all instances. |
void |
destroyAnimation(java.lang.String name)
Destroys an . |
void |
destroyAnimationState(java.lang.String name)
Destroys an . |
void |
destroyBillboardChain(IBillboardChain obj)
Removes & destroys a from the . |
void |
destroyBillboardChain(java.lang.String name)
Removes & destroys a from the . |
void |
destroyBillboardSet(IBillboardSet set)
Removes & destroys an from the . |
void |
destroyBillboardSet(java.lang.String name)
Removes & destroys an from the by name. |
void |
destroyCamera(ICamera cam)
Removes a camera from the scene. |
void |
destroyCamera(java.lang.String name)
Removes a camera from the scene. |
void |
destroyEntity(IEntity ent)
Removes & destroys an from the . |
void |
destroyEntity(java.lang.String name)
Removes & destroys an from the by name. |
void |
destroyInstancedGeometry(IInstancedGeometry geom)
Remove & destroy a instance. |
void |
destroyInstancedGeometry(java.lang.String name)
Remove & destroy a instance. |
void |
destroyLight(ILight light)
Removes the light from the scene and destroys it based on a pointer. |
void |
destroyLight(java.lang.String name)
Removes the named light from the scene and destroys it. |
void |
destroyManualObject(IManualObject obj)
Removes & destroys a from the . |
void |
destroyManualObject(java.lang.String name)
Removes & destroys a from the . |
void |
destroyMovableObject(IMovableObject m)
Destroys a . |
void |
destroyMovableObject(java.lang.String name,
java.lang.String typeName)
Destroys a with the name specified, of the type specified. |
void |
destroyParticleSystem(IParticleSystem obj)
Removes & destroys a from the . |
void |
destroyParticleSystem(java.lang.String name)
Removes & destroys a from the . |
void |
destroyQuery(ISceneQuery query)
Destroys a scene query of any type. |
void |
destroyRibbonTrail(IRibbonTrail obj)
Removes & destroys a from the . |
void |
destroyRibbonTrail(java.lang.String name)
Removes & destroys a from the . |
void |
destroySceneNode(ISceneNode sn)
Destroys a . |
void |
destroySceneNode(java.lang.String name)
Destroys a with a given name. |
void |
destroyStaticGeometry(IStaticGeometry geom)
Remove & destroy a instance. |
void |
destroyStaticGeometry(java.lang.String name)
Remove & destroy a instance. |
int |
estimateWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
Estimate the number of loading stages required to load the named world geometry. |
int |
estimateWorldGeometry(java.lang.String filename)
Estimate the number of loading stages required to load the named world geometry. |
void |
extractAllMovableObjectsByType(java.lang.String typeName)
Extract all injected MovableObjects of a given type. |
void |
extractMovableObject(IMovableObject m)
Extract a previously injected . |
void |
extractMovableObject(java.lang.String name,
java.lang.String typeName)
Extract a previously injected . |
IColourValue |
getAmbientLight()
Returns the ambient light level to be used for the scene. |
IAnimation |
getAnimation(java.lang.String name)
Looks up an object previously created with createAnimation. |
void |
getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
Returns a specialised over all animations in the scene. |
IAnimationState |
getAnimationState(java.lang.String animName)
Retrieves animation state as previously created using createAnimationState. |
void |
getAnimationStateIterator(IAnimationStateIterator returnValue)
Returns a specialised over all animation states in the scene. |
IBillboardChain |
getBillboardChain(java.lang.String name)
Retrieves a pointer to the named . |
IBillboardSet |
getBillboardSet(java.lang.String name)
Retrieves a pointer to the named . |
ICamera |
getCamera(java.lang.String name)
Retrieves a pointer to the named camera. |
void |
getCameraIterator(ISceneManager.ICameraIterator returnValue)
Returns a specialised over all cameras in the scene. |
boolean |
getCameraRelativeRendering()
Get whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it. |
IViewport |
getCurrentViewport()
Gets the current viewport being rendered (advanced use only, only valid during viewport update. |
IRenderSystem |
getDestinationRenderSystem()
Get the rendersystem subclass to which the output of this Scene Manager gets sent |
boolean |
getDisplaySceneNodes()
Returns true if all scene nodes axis are to be displayed |
IEntity |
getEntity(java.lang.String name)
Retrieves a pointer to the named . |
boolean |
getFindVisibleObjects()
Gets whether the should search for visible objects, or whether they are being manually handled. |
boolean |
getFlipCullingOnNegativeScale()
Get whether to automatically flip the culling mode on objects whenever they are negatively scaled. |
IColourValue |
getFogColour()
Returns the fog colour for the scene. |
float |
getFogDensity()
Returns the fog density for the scene. |
float |
getFogEnd()
Returns the fog end distance for the scene. |
FogMode |
getFogMode()
Returns the fog mode for the scene. |
float |
getFogStart()
Returns the fog start distance for the scene. |
IInstancedGeometry |
getInstancedGeometry(java.lang.String name)
Retrieve a previously created instance. |
ILight |
getLight(java.lang.String name)
Returns a pointer to the named which has previously been added to the scene. |
IPlaneList |
getLightClippingPlanes(ILight l)
Retrieve a set of clipping planes for a given light. |
IRealRect |
getLightScissorRect(ILight l,
ICamera cam)
Retrieve a scissor rectangle for a given light and camera. |
IManualObject |
getManualObject(java.lang.String name)
Retrieves a pointer to the named . |
IMovableObject |
getMovableObject(java.lang.String name,
java.lang.String typeName)
Get a reference to a previously created . |
void |
getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue,
java.lang.String typeName)
Get an iterator over all MovableObect instances of a given type. |
java.lang.String |
getName()
Return the instance name of this . |
boolean |
getNormaliseNormalsOnScale()
Get whether to automatically normalise normals on objects whenever they are scaled. |
boolean |
getOption(java.lang.String strKey,
VoidPointer pDestValue)
Method for getting the value of an implementation-specific Scene Manager option. |
boolean |
getOptionKeys(IStringVector refKeys)
Method for getting all the implementation-specific options of the scene manager. |
boolean |
getOptionValues(java.lang.String strKey,
IStringVector refValueList)
Method for getting all possible values for a specific option. |
IParticleSystem |
getParticleSystem(java.lang.String name)
Retrieves a pointer to the named . |
ISceneManager.ISceneMgrQueuedRenderableVisitor |
getQueuedRenderableVisitor()
Gets the current visitor object which processes queued renderables. |
IRenderQueue |
getRenderQueue()
Retrieves the internal render queue, for advanced users only. |
IRibbonTrail |
getRibbonTrail(java.lang.String name)
Retrieves a pointer to the named . |
ISceneNode |
getRootSceneNode()
Gets the at the root of the scene hierarchy. |
ISceneNode |
getSceneNode(java.lang.String name)
Retrieves a named from the scene graph. |
IShadowCameraSetupPtr |
getShadowCameraSetup()
Get the shadow camera setup in use for all lights which don't have their own shadow camera setup. |
IVisibleObjectsBoundsInfo |
getShadowCasterBoundsInfo(ILight light,
int iteration)
Returns the shadow caster AAB for a specific light-camera combination |
boolean |
getShadowCasterRenderBackFaces()
Gets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces. |
IColourValue |
getShadowColour()
Get the colour used to modulate areas in shadow. |
float |
getShadowDirectionalLightExtrusionDistance()
Gets the distance a shadow volume is extruded for a directional light. |
float |
getShadowDirLightTextureOffset()
Gets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space. |
float |
getShadowFarDistance()
Gets the default maximum distance away from the camera that shadows will be visible. |
float |
getShadowFarDistanceSquared()
|
int |
getShadowIndexBufferSize()
|
ShadowTechnique |
getShadowTechnique()
Gets the current shadow technique. |
ITexturePtr |
getShadowTexture(int shadowIndex)
Get a reference to the shadow texture currently in use at the given index. |
void |
getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
Get an iterator over the current shadow texture settings. |
int |
getShadowTextureCount()
|
int |
getShadowTextureCountPerLightType(Light.LightTypes type)
|
boolean |
getShadowTextureSelfShadow()
|
boolean |
getShadowUseLightClipPlanes()
Gets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering. |
boolean |
getShowBoundingBoxes()
Returns if all bounding boxes of scene nodes are to be displayed |
boolean |
getShowDebugShadows()
Are debug shadows shown? |
ISceneManager.ISkyBoxGenParameters |
getSkyBoxGenParameters()
Get the parameters used to generate the current SkyBox, if any |
ISceneNode |
getSkyBoxNode()
Get the skybox node, if enabled. |
ISceneManager.ISkyDomeGenParameters |
getSkyDomeGenParameters()
Get the parameters used to generate the current SkyDome, if any |
ISceneNode |
getSkyDomeNode()
Get the sky dome node, if enabled. |
ISceneManager.ISkyPlaneGenParameters |
getSkyPlaneGenParameters()
Get the parameters used to construct the SkyPlane, if any |
ISceneNode |
getSkyPlaneNode()
Get the sky plane node, if enabled. |
SceneManager.SpecialCaseRenderQueueMode |
getSpecialCaseRenderQueueMode()
Gets the way the special case render queue list is processed. |
IStaticGeometry |
getStaticGeometry(java.lang.String name)
Retrieve a previously created instance. |
void |
getSuggestedViewpoint(IViewPoint returnValue,
boolean random)
Asks the to provide a suggested viewpoint from which the scene should be viewed. |
java.lang.String |
getTypeName()
Retrieve the type name of this scene manager. |
long |
getVisibilityMask()
Gets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible. |
IVisibleObjectsBoundsInfo |
getVisibleObjectsBoundsInfo(ICamera cam)
Returns a visibility boundary box for a specific camera. |
short |
getWorldGeometryRenderQueue()
Gets the render queue that the world geometry (if any) this renders will be associated with. |
boolean |
hasAnimation(java.lang.String name)
Returns whether an animation with the given name exists. |
boolean |
hasAnimationState(java.lang.String name)
Returns whether an animation state with the given name exists. |
boolean |
hasBillboardChain(java.lang.String name)
Returns whether a billboard chain with the given name exists. |
boolean |
hasBillboardSet(java.lang.String name)
Returns whether a billboardset with the given name exists. |
boolean |
hasCamera(java.lang.String name)
Returns whether a camera with the given name exists. |
boolean |
hasEntity(java.lang.String name)
Returns whether an entity with the given name exists. |
boolean |
hasLight(java.lang.String name)
Returns whether a light with the given name exists. |
boolean |
hasManualObject(java.lang.String name)
Returns whether a manual object with the given name exists. |
boolean |
hasMovableObject(java.lang.String name,
java.lang.String typeName)
Returns whether a movable object instance with the given name exists. |
boolean |
hasOption(java.lang.String strKey)
Method for verifying wether the scene manager has an implementation-specific option. |
boolean |
hasParticleSystem(java.lang.String name)
Returns whether a particle system with the given name exists. |
boolean |
hasRibbonTrail(java.lang.String name)
Returns whether a ribbon trail with the given name exists. |
boolean |
hasSceneNode(java.lang.String name)
Returns whether a scene node with the given name exists. |
boolean |
hasStaticGeometry(java.lang.String name)
Returns whether a static geometry instance with the given name exists. |
void |
injectMovableObject(IMovableObject m)
Inject a instance created externally. |
boolean |
isRenderQueueToBeProcessed(short qid)
Returns whether or not the named queue will be rendered based on the current 'special case' render queue list and mode. |
boolean |
isShadowTechniqueAdditive()
Is there an additive shadowing technique in use? |
boolean |
isShadowTechniqueIntegrated()
Is the shadow technique integrated into primary materials? |
boolean |
isShadowTechniqueInUse()
Is there any shadowing technique in use? |
boolean |
isShadowTechniqueModulative()
Is there a modulative shadowing technique in use? |
boolean |
isShadowTechniqueStencilBased()
Is there a stencil shadow based shadowing technique in use? |
boolean |
isShadowTechniqueTextureBased()
Is there a texture shadow based shadowing technique in use? |
boolean |
isSkyBoxEnabled()
Return whether a skybox is enabled |
boolean |
isSkyDomeEnabled()
Return whether a skydome is enabled |
boolean |
isSkyPlaneEnabled()
Return whether a key plane is enabled |
void |
manualRender(IRenderOperation rend,
IPass pass,
IViewport vp,
IMatrix4 worldMatrix,
IMatrix4 viewMatrix,
IMatrix4 projMatrix,
boolean doBeginEndFrame)
Manual rendering method, for advanced users only. |
void |
prepareWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. |
void |
prepareWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. |
void |
removeListener(ISceneManager.IListener s)
Remove a listener |
void |
removeRenderQueueListener(IRenderQueueListener delListener)
Removes a listener previously added with addRenderQueueListener. |
void |
removeSpecialCaseRenderQueue(short qid)
Removes an item to the 'special case' render queue list. |
void |
setAmbientLight(IColourValue colour)
Sets the ambient light level to be used for the scene. |
void |
setCameraRelativeRendering(boolean rel)
Set whether to use camera-relative co-ordinates when rendering, ie to always place the camera at the origin and move the world around it. |
void |
setDisplaySceneNodes(boolean display)
Tells the whether it should render the SceneNodes which make up the scene as well as the objects in the scene. |
void |
setFindVisibleObjects(boolean find)
Sets whether the should search for visible objects, or whether they are being manually handled. |
void |
setFlipCullingOnNegativeScale(boolean n)
Set whether to automatically flip the culling mode on objects whenever they are negatively scaled. |
void |
setFog(FogMode mode,
IColourValue colour,
float expDensity,
float linearStart,
float linearEnd)
Sets the fogging mode applied to the scene. |
void |
setNormaliseNormalsOnScale(boolean n)
Set whether to automatically normalise normals on objects whenever they are scaled. |
boolean |
setOption(java.lang.String strKey,
VoidPointer pValue)
Method for setting a specific option of the Scene Manager. |
void |
setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
Advanced method for supplying an alternative visitor, used for parsing the render queues and sending the results to the renderer. |
void |
setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
Set the shadow camera setup to use for all lights which don't have their own shadow camera setup. |
void |
setShadowCasterRenderBackFaces(boolean bf)
Sets whether or not shadow casters should be rendered into shadow textures using their back faces rather than their front faces. |
void |
setShadowColour(IColourValue colour)
Set the colour used to modulate areas in shadow. |
void |
setShadowDirectionalLightExtrusionDistance(float dist)
Sets the distance a shadow volume is extruded for a directional light. |
void |
setShadowDirLightTextureOffset(float offset)
Sets the proportional distance which a texture shadow which is generated from a directional light will be offset into the camera view to make best use of texture space. |
void |
setShadowFarDistance(float distance)
Sets the default maximum distance away from the camera that shadows will be visible. |
void |
setShadowIndexBufferSize(int size)
Sets the maximum size of the index buffer used to render shadow primitives. |
void |
setShadowTechnique(ShadowTechnique technique)
Sets the general shadow technique to be used in this scene. |
void |
setShadowTextureCasterMaterial(java.lang.String name)
Sets the default material to use for rendering shadow casters. |
void |
setShadowTextureConfig(int shadowIndex,
int width,
int height,
PixelFormat format)
Set the detailed configuration for a shadow texture. |
void |
setShadowTextureConfig(int shadowIndex,
IShadowTextureConfig config)
Set the detailed configuration for a shadow texture. |
void |
setShadowTextureCount(int count)
Set the number of textures allocated for texture-based shadows. |
void |
setShadowTextureCountPerLightType(Light.LightTypes type,
int count)
Set the number of shadow textures a light type uses. |
void |
setShadowTextureFadeEnd(float fadeEnd)
Sets the proportional distance at which texture shadows finish to fading out. |
void |
setShadowTextureFadeStart(float fadeStart)
Sets the proportional distance at which texture shadows begin to fade out. |
void |
setShadowTexturePixelFormat(PixelFormat fmt)
Set the pixel format of the textures used for texture-based shadows. |
void |
setShadowTextureReceiverMaterial(java.lang.String name)
Sets the default material to use for rendering shadow receivers. |
void |
setShadowTextureSelfShadow(boolean selfShadow)
Sets whether or not texture shadows should attempt to self-shadow. |
void |
setShadowTextureSettings(int size,
int count,
PixelFormat fmt)
Sets the size and count of textures used in texture-based shadows. |
void |
setShadowTextureSize(int size)
Set the size of the texture used for all texture-based shadows. |
void |
setShadowUseInfiniteFarPlane(boolean enable)
Sets whether we should use an inifinite camera far plane when rendering stencil shadows. |
void |
setShadowUseLightClipPlanes(boolean enabled)
Sets whether when using a built-in additive shadow mode, user clip planes should be used to restrict light rendering. |
void |
setShowDebugShadows(boolean debug)
Enables / disables the rendering of debug information for shadows. |
void |
setSkyBox(boolean enable,
java.lang.String materialName,
float distance,
boolean drawFirst,
IQuaternion orientation,
java.lang.String groupName)
Enables / disables a 'sky box' i.e. a 6-sided box at constant distance from the camera representing the sky. |
void |
setSkyDome(boolean enable,
java.lang.String materialName,
float curvature,
float tiling,
float distance,
boolean drawFirst,
IQuaternion orientation,
int xsegments,
int ysegments,
int ysegments_keep,
java.lang.String groupName)
Enables / disables a 'sky dome' i.e. an illusion of a curved sky. |
void |
setSkyPlane(boolean enable,
IPlane plane,
java.lang.String materialName,
float scale,
float tiling,
boolean drawFirst,
float bow,
int xsegments,
int ysegments,
java.lang.String groupName)
Enables / disables a 'sky plane' i.e. a plane at constant distance from the camera representing the sky. |
void |
setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
Sets the way the special case render queue list is processed. |
void |
setVisibilityMask(long vmask)
Sets a mask which is bitwise 'and'ed with objects own visibility masks to determine if the object is visible. |
void |
setWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. |
void |
setWorldGeometry(java.lang.String filename)
Sets the source of the 'world' geometry, i.e. the large, mainly static geometry making up the world e.g. rooms, landscape etc. |
void |
setWorldGeometryRenderQueue(short qid)
Sets the render queue that the world geometry (if any) this renders will be associated with. |
void |
showBoundingBoxes(boolean bShow)
Allows all bounding boxes of scene nodes to be displayed. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getTypeName()
ICamera createCamera(java.lang.String name)
ICamera getCamera(java.lang.String name)
boolean hasCamera(java.lang.String name)
void destroyCamera(ICamera cam)
void destroyCamera(java.lang.String name)
void destroyAllCameras()
ILight createLight(java.lang.String name)
ILight getLight(java.lang.String name)
boolean hasLight(java.lang.String name)
IPlaneList getLightClippingPlanes(ILight l)
IRealRect getLightScissorRect(ILight l,
ICamera cam)
void destroyLight(java.lang.String name)
void destroyLight(ILight light)
void destroyAllLights()
void _notifyLightsDirty()
long _getLightsDirtyCounter()
ILightList _getLightsAffectingFrustum()
void _populateLightList(IVector3 position,
float radius,
ILightList destList)
ISceneNode createSceneNode()
ISceneNode createSceneNode(java.lang.String name)
void destroySceneNode(java.lang.String name)
void destroySceneNode(ISceneNode sn)
ISceneNode getRootSceneNode()
ISceneNode getSceneNode(java.lang.String name)
boolean hasSceneNode(java.lang.String name)
IEntity createEntity(java.lang.String entityName,
java.lang.String meshName)
IEntity createEntity(java.lang.String entityName,
SceneManager.PrefabType ptype)
IEntity getEntity(java.lang.String name)
boolean hasEntity(java.lang.String name)
void destroyEntity(IEntity ent)
void destroyEntity(java.lang.String name)
void destroyAllEntities()
IManualObject createManualObject(java.lang.String name)
IManualObject getManualObject(java.lang.String name)
boolean hasManualObject(java.lang.String name)
void destroyManualObject(IManualObject obj)
void destroyManualObject(java.lang.String name)
void destroyAllManualObjects()
IBillboardChain createBillboardChain(java.lang.String name)
IBillboardChain getBillboardChain(java.lang.String name)
boolean hasBillboardChain(java.lang.String name)
void destroyBillboardChain(IBillboardChain obj)
void destroyBillboardChain(java.lang.String name)
void destroyAllBillboardChains()
IRibbonTrail createRibbonTrail(java.lang.String name)
IRibbonTrail getRibbonTrail(java.lang.String name)
boolean hasRibbonTrail(java.lang.String name)
void destroyRibbonTrail(IRibbonTrail obj)
void destroyRibbonTrail(java.lang.String name)
void destroyAllRibbonTrails()
IParticleSystem createParticleSystem(java.lang.String name,
java.lang.String templateName)
IParticleSystem createParticleSystem(java.lang.String name,
int quota,
java.lang.String resourceGroup)
IParticleSystem getParticleSystem(java.lang.String name)
boolean hasParticleSystem(java.lang.String name)
void destroyParticleSystem(IParticleSystem obj)
void destroyParticleSystem(java.lang.String name)
void destroyAllParticleSystems()
void clearScene()
void setAmbientLight(IColourValue colour)
IColourValue getAmbientLight()
void prepareWorldGeometry(java.lang.String filename)
void prepareWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
void setWorldGeometry(java.lang.String filename)
void setWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
int estimateWorldGeometry(java.lang.String filename)
int estimateWorldGeometry(IDataStreamPtr stream,
java.lang.String typeName)
void getSuggestedViewpoint(IViewPoint returnValue,
boolean random)
boolean setOption(java.lang.String strKey,
VoidPointer pValue)
boolean getOption(java.lang.String strKey,
VoidPointer pDestValue)
boolean hasOption(java.lang.String strKey)
boolean getOptionValues(java.lang.String strKey,
IStringVector refValueList)
boolean getOptionKeys(IStringVector refKeys)
void _updateSceneGraph(ICamera cam)
void _findVisibleObjects(ICamera cam,
IVisibleObjectsBoundsInfo visibleBounds,
boolean onlyShadowCasters)
void _applySceneAnimations()
void _renderVisibleObjects()
void _renderScene(ICamera camera,
IViewport vp,
boolean includeOverlays)
void _queueSkiesForRendering(ICamera cam)
void _setDestinationRenderSystem(IRenderSystem sys)
void setSkyPlane(boolean enable,
IPlane plane,
java.lang.String materialName,
float scale,
float tiling,
boolean drawFirst,
float bow,
int xsegments,
int ysegments,
java.lang.String groupName)
void _setSkyPlane(boolean enable,
IPlane plane,
java.lang.String materialName,
float scale,
float tiling,
short renderQueue,
float bow,
int xsegments,
int ysegments,
java.lang.String groupName)
boolean isSkyPlaneEnabled()
ISceneNode getSkyPlaneNode()
ISceneManager.ISkyPlaneGenParameters getSkyPlaneGenParameters()
void setSkyBox(boolean enable,
java.lang.String materialName,
float distance,
boolean drawFirst,
IQuaternion orientation,
java.lang.String groupName)
void _setSkyBox(boolean enable,
java.lang.String materialName,
float distance,
short renderQueue,
IQuaternion orientation,
java.lang.String groupName)
boolean isSkyBoxEnabled()
ISceneNode getSkyBoxNode()
ISceneManager.ISkyBoxGenParameters getSkyBoxGenParameters()
void setSkyDome(boolean enable,
java.lang.String materialName,
float curvature,
float tiling,
float distance,
boolean drawFirst,
IQuaternion orientation,
int xsegments,
int ysegments,
int ysegments_keep,
java.lang.String groupName)
void _setSkyDome(boolean enable,
java.lang.String materialName,
float curvature,
float tiling,
float distance,
short renderQueue,
IQuaternion orientation,
int xsegments,
int ysegments,
int ysegments_keep,
java.lang.String groupName)
boolean isSkyDomeEnabled()
ISceneNode getSkyDomeNode()
ISceneManager.ISkyDomeGenParameters getSkyDomeGenParameters()
void setFog(FogMode mode,
IColourValue colour,
float expDensity,
float linearStart,
float linearEnd)
FogMode getFogMode()
IColourValue getFogColour()
float getFogStart()
float getFogEnd()
float getFogDensity()
IBillboardSet createBillboardSet(java.lang.String name,
long poolSize)
IBillboardSet getBillboardSet(java.lang.String name)
boolean hasBillboardSet(java.lang.String name)
void destroyBillboardSet(IBillboardSet set)
void destroyBillboardSet(java.lang.String name)
void destroyAllBillboardSets()
void setDisplaySceneNodes(boolean display)
boolean getDisplaySceneNodes()
IAnimation createAnimation(java.lang.String name,
float length)
IAnimation getAnimation(java.lang.String name)
boolean hasAnimation(java.lang.String name)
void destroyAnimation(java.lang.String name)
void destroyAllAnimations()
IAnimationState createAnimationState(java.lang.String animName)
IAnimationState getAnimationState(java.lang.String animName)
boolean hasAnimationState(java.lang.String name)
void destroyAnimationState(java.lang.String name)
void destroyAllAnimationStates()
void manualRender(IRenderOperation rend,
IPass pass,
IViewport vp,
IMatrix4 worldMatrix,
IMatrix4 viewMatrix,
IMatrix4 projMatrix,
boolean doBeginEndFrame)
IRenderQueue getRenderQueue()
void addRenderQueueListener(IRenderQueueListener newListener)
void removeRenderQueueListener(IRenderQueueListener delListener)
void addSpecialCaseRenderQueue(short qid)
void removeSpecialCaseRenderQueue(short qid)
void clearSpecialCaseRenderQueues()
void setSpecialCaseRenderQueueMode(SceneManager.SpecialCaseRenderQueueMode mode)
SceneManager.SpecialCaseRenderQueueMode getSpecialCaseRenderQueueMode()
boolean isRenderQueueToBeProcessed(short qid)
void setWorldGeometryRenderQueue(short qid)
short getWorldGeometryRenderQueue()
void showBoundingBoxes(boolean bShow)
boolean getShowBoundingBoxes()
void _notifyAutotrackingSceneNode(ISceneNode node,
boolean autoTrack)
IAxisAlignedBoxSceneQuery createAABBQuery(IAxisAlignedBox box,
long mask)
ISphereSceneQuery createSphereQuery(ISphere sphere,
long mask)
IPlaneBoundedVolumeListSceneQuery createPlaneBoundedVolumeQuery(IPlaneBoundedVolumeList volumes,
long mask)
IRaySceneQuery createRayQuery(IRay ray,
long mask)
IIntersectionSceneQuery createIntersectionQuery(long mask)
void destroyQuery(ISceneQuery query)
void getCameraIterator(ISceneManager.ICameraIterator returnValue)
void getAnimationIterator(ISceneManager.IAnimationIterator returnValue)
void getAnimationStateIterator(IAnimationStateIterator returnValue)
void setShadowTechnique(ShadowTechnique technique)
ShadowTechnique getShadowTechnique()
void setShowDebugShadows(boolean debug)
boolean getShowDebugShadows()
void setShadowColour(IColourValue colour)
IColourValue getShadowColour()
void setShadowDirectionalLightExtrusionDistance(float dist)
float getShadowDirectionalLightExtrusionDistance()
void setShadowFarDistance(float distance)
float getShadowFarDistance()
float getShadowFarDistanceSquared()
void setShadowIndexBufferSize(int size)
int getShadowIndexBufferSize()
void setShadowTextureSize(int size)
void setShadowTextureConfig(int shadowIndex,
int width,
int height,
PixelFormat format)
void setShadowTextureConfig(int shadowIndex,
IShadowTextureConfig config)
void getShadowTextureConfigIterator(IConstShadowTextureConfigIterator returnValue)
void setShadowTexturePixelFormat(PixelFormat fmt)
void setShadowTextureCount(int count)
int getShadowTextureCount()
void setShadowTextureCountPerLightType(Light.LightTypes type,
int count)
int getShadowTextureCountPerLightType(Light.LightTypes type)
void setShadowTextureSettings(int size,
int count,
PixelFormat fmt)
ITexturePtr getShadowTexture(int shadowIndex)
void setShadowDirLightTextureOffset(float offset)
float getShadowDirLightTextureOffset()
void setShadowTextureFadeStart(float fadeStart)
void setShadowTextureFadeEnd(float fadeEnd)
void setShadowTextureSelfShadow(boolean selfShadow)
boolean getShadowTextureSelfShadow()
void setShadowTextureCasterMaterial(java.lang.String name)
void setShadowTextureReceiverMaterial(java.lang.String name)
void setShadowCasterRenderBackFaces(boolean bf)
boolean getShadowCasterRenderBackFaces()
void setShadowCameraSetup(IShadowCameraSetupPtr shadowSetup)
IShadowCameraSetupPtr getShadowCameraSetup()
void setShadowUseInfiniteFarPlane(boolean enable)
boolean isShadowTechniqueStencilBased()
boolean isShadowTechniqueTextureBased()
boolean isShadowTechniqueModulative()
boolean isShadowTechniqueAdditive()
boolean isShadowTechniqueIntegrated()
boolean isShadowTechniqueInUse()
void setShadowUseLightClipPlanes(boolean enabled)
boolean getShadowUseLightClipPlanes()
void addListener(ISceneManager.IListener s)
void removeListener(ISceneManager.IListener s)
IStaticGeometry createStaticGeometry(java.lang.String name)
IStaticGeometry getStaticGeometry(java.lang.String name)
boolean hasStaticGeometry(java.lang.String name)
void destroyStaticGeometry(IStaticGeometry geom)
void destroyStaticGeometry(java.lang.String name)
void destroyAllStaticGeometry()
IInstancedGeometry createInstancedGeometry(java.lang.String name)
IInstancedGeometry getInstancedGeometry(java.lang.String name)
void destroyInstancedGeometry(IInstancedGeometry geom)
void destroyInstancedGeometry(java.lang.String name)
void destroyAllInstancedGeometry()
IMovableObject createMovableObject(java.lang.String name,
java.lang.String typeName,
INameValuePairList params)
void destroyMovableObject(java.lang.String name,
java.lang.String typeName)
void destroyMovableObject(IMovableObject m)
void destroyAllMovableObjectsByType(java.lang.String typeName)
void destroyAllMovableObjects()
IMovableObject getMovableObject(java.lang.String name,
java.lang.String typeName)
boolean hasMovableObject(java.lang.String name,
java.lang.String typeName)
void getMovableObjectIterator(ISceneManager.IMovableObjectIterator returnValue,
java.lang.String typeName)
void injectMovableObject(IMovableObject m)
void extractMovableObject(java.lang.String name,
java.lang.String typeName)
void extractMovableObject(IMovableObject m)
void extractAllMovableObjectsByType(java.lang.String typeName)
void setVisibilityMask(long vmask)
long getVisibilityMask()
long _getCombinedVisibilityMask()
void setFindVisibleObjects(boolean find)
boolean getFindVisibleObjects()
void setNormaliseNormalsOnScale(boolean n)
boolean getNormaliseNormalsOnScale()
void setFlipCullingOnNegativeScale(boolean n)
boolean getFlipCullingOnNegativeScale()
void _injectRenderWithPass(IPass pass,
IRenderable rend,
boolean shadowDerivation)
void _suppressRenderStateChanges(boolean suppress)
boolean _areRenderStateChangesSuppressed()
IPass _setPass(IPass pass,
boolean evenIfSuppressed,
boolean shadowDerivation)
void _suppressShadows(boolean suppress)
boolean _areShadowsSuppressed()
void _renderQueueGroupObjects(IRenderQueueGroup group,
QueuedRenderableCollection.OrganisationMode om)
void setQueuedRenderableVisitor(ISceneManager.ISceneMgrQueuedRenderableVisitor visitor)
ISceneManager.ISceneMgrQueuedRenderableVisitor getQueuedRenderableVisitor()
IRenderSystem getDestinationRenderSystem()
IViewport getCurrentViewport()
IVisibleObjectsBoundsInfo getVisibleObjectsBoundsInfo(ICamera cam)
IVisibleObjectsBoundsInfo getShadowCasterBoundsInfo(ILight light,
int iteration)
void setCameraRelativeRendering(boolean rel)
boolean getCameraRelativeRendering()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||