org.ogre4j
Class Pass

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.Pass
All Implemented Interfaces:
IAllocatedObject<IResourceAllocPolicy>, IPass, IResourceAllocatedObject, INativeObject

public class Pass
extends NativeObject
implements IPass


Nested Class Summary
static class Pass.BuiltinHashFunction
           
static class Pass.ConstTextureUnitStateIterator
           
protected static class Pass.ContentTypeLookup
           
static class Pass.HashFunc
           
static class Pass.PassSet
           
static class Pass.TextureUnitStateIterator
           
protected static class Pass.TextureUnitStates
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IPass
IPass.IConstTextureUnitStateIterator, IPass.IContentTypeLookup, IPass.IHashFunc, IPass.IPassSet, IPass.ITextureUnitStateIterator, IPass.ITextureUnitStates
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  Pass(InstancePointer p)
          This constructor is public for internal useage only!
protected Pass(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  Pass(ITechnique parent, int index)
           
  Pass(ITechnique parent, int index, IPass oth)
           
  Pass(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _dirtyHash()
           
 int _getTextureUnitWithContentTypeIndex(TextureUnitState.ContentType contentType, int index)
          Gets the 'nth' texture which references the given content type.
 void _load()
          Internal method for loading this pass.
 void _notifyIndex(int index)
          Internal method to adjust pass index.
 void _notifyNeedsRecompile()
          Tells the pass that it needs recompilation.
 void _prepare()
          Internal method for preparing to load this pass.
 void _recalculateHash()
          Internal method for recalculating the hash.
 IPass _split(int numUnits)
          Splits this to one which can be handled in the number of texture units specified.
 void _unload()
          Internal method for unloading this pass.
 void _unprepare()
          Internal method for undoing the load preparartion for this pass.
 void _updateAutoParamsLightsOnly(IAutoParamDataSource source)
          Update any automatic light parameters on this pass
 void _updateAutoParamsNoLights(IAutoParamDataSource source)
          Update any automatic parameters (except lights) on this pass
 void addTextureUnitState(ITextureUnitState state)
          Adds the passed in , to the existing .
 boolean applyTextureAliases(IAliasTextureNamePairList aliasList, boolean apply)
          Applies texture names to Unit State with matching texture name aliases.
static void clearDirtyHashList()
          Static method to reset the list of passes which need their hash values recalculated.
 ITextureUnitState createTextureUnitState()
          Inserts a new object into the .
 ITextureUnitState createTextureUnitState(java.lang.String textureName, int texCoordSet)
          Inserts a new object into the .
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 CompareFunction getAlphaRejectFunction()
          Gets the alpha reject function.
 short getAlphaRejectValue()
          Gets the alpha reject value.
 IColourValue getAmbient()
          Gets the ambient colour reflectance of the pass.
 boolean getColourWriteEnabled()
          Determines if colour buffer writing is enabled for this pass.
 CullingMode getCullingMode()
          Returns the culling mode for geometry rendered with this pass.
 float getDepthBiasConstant()
          Retrieves the const depth bias value as set by setDepthBias.
 float getDepthBiasSlopeScale()
          Retrieves the slope-scale depth bias value as set by setDepthBias.
 boolean getDepthCheckEnabled()
          Returns whether or not this pass renders with depth-buffer checking on or not.
 CompareFunction getDepthFunction()
          Returns the function used to compare depth values when depth checking is on.
 boolean getDepthWriteEnabled()
          Returns whether or not this pass renders with depth-buffer writing on or not.
 SceneBlendFactor getDestBlendFactor()
          Retrieves the destination blending factor for the material (as set using Materiall::setSceneBlending).
 SceneBlendFactor getDestBlendFactorAlpha()
          Retrieves the alpha destination blending factor for the material (as set using Materiall::setSeparateSceneBlending).
 IColourValue getDiffuse()
          Gets the diffuse colour reflectance of the pass.
static IPass.IPassSet getDirtyHashList()
          Static method to retrieve all the Passes which need their hash values recalculated.
 IColourValue getFogColour()
          Returns the fog colour for the scene.
 float getFogDensity()
          Returns the fog density for this pass.
 float getFogEnd()
          Returns the fog end distance for this pass.
 FogMode getFogMode()
          Returns the fog mode for this pass.
 boolean getFogOverride()
          Returns true if this pass is to override the scene fog settings.
 float getFogStart()
          Returns the fog start distance for this pass.
 IGpuProgramPtr getFragmentProgram()
          Gets the fragment program used by this pass, only available after .
 java.lang.String getFragmentProgramName()
          Gets the name of the fragment program used by this pass.
 void getFragmentProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the fragment program parameters used by this pass.
 IGpuProgramPtr getGeometryProgram()
          Gets the geometry program used by this pass, only available after .
 java.lang.String getGeometryProgramName()
          Gets the name of the geometry program used by this pass.
 void getGeometryProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the geometry program parameters used by this pass.
 long getHash()
          Gets the 'hash' of this pass, ie a precomputed number to use for sorting
static IPass.IHashFunc getHashFunction()
          Get the hash function used for all passes.
 IlluminationStage getIlluminationStage()
           
 int getIndex()
           
 boolean getIteratePerLight()
          Does this pass run once for every light in range?
 float getIterationDepthBias()
          Gets a factor which derives an additional depth bias from the number of times a pass is iterated.
 boolean getLightClipPlanesEnabled()
          Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.
 int getLightCountPerIteration()
          If light iteration is enabled, determine the number of lights per iteration.
 boolean getLightingEnabled()
          Returns whether or not dynamic lighting is enabled.
 boolean getLightScissoringEnabled()
          Gets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.
 ManualCullingMode getManualCullingMode()
          Retrieves the manual culling mode for this pass
 int getMaxSimultaneousLights()
          Gets the maximum number of lights to be used by this pass.
 java.lang.String getName()
           
 boolean getNormaliseNormals()
          Returns true if this pass has auto-normalisation of normals set.
 int getNumTextureUnitStates()
          Returns the number of texture unit settings.
 Light.LightTypes getOnlyLightType()
          Gets the single light type this pass runs for if getIteratePerLight and getRunOnlyForOneLightType are both true.
 ITechnique getParent()
           
static IPass.IPassSet getPassGraveyard()
          Static method to retrieve all the Passes which are pending deletion.
 int getPassIterationCount()
          Gets the pass iteration count value.
 float getPointAttenuationConstant()
          Returns the constant coefficient of point attenuation.
 float getPointAttenuationLinear()
          Returns the linear coefficient of point attenuation.
 float getPointAttenuationQuadratic()
          Returns the quadratic coefficient of point attenuation.
 float getPointMaxSize()
          Get the maximum point size, when point attenuation is in use.
 float getPointMinSize()
          Get the minimum point size, when point attenuation is in use.
 float getPointSize()
          Gets the point size of the pass.
 boolean getPointSpritesEnabled()
          Returns whether point sprites are enabled when rendering a point list.
 PolygonMode getPolygonMode()
          Returns the type of light shading to be used.
 boolean getPolygonModeOverrideable()
          Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.
 java.lang.String getResourceGroup()
           
 boolean getRunOnlyForOneLightType()
          Does this pass run only for a single light type (if getIteratePerLight is true).
 IColourValue getSelfIllumination()
          Gets the self illumination colour of the pass.
 ShadeOptions getShadingMode()
          Returns the type of light shading to be used.
 IGpuProgramPtr getShadowCasterVertexProgram()
          Gets the vertex program used by this pass when rendering shadow casters, only available after .
 java.lang.String getShadowCasterVertexProgramName()
          Gets the name of the vertex program used by this pass when rendering shadow casters.
 void getShadowCasterVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the vertex program parameters used by this pass when rendering shadow casters.
 IGpuProgramPtr getShadowReceiverFragmentProgram()
          Gets the fragment program used by this pass when rendering shadow receivers, only available after .
 java.lang.String getShadowReceiverFragmentProgramName()
          Gets the name of the fragment program used by this pass when rendering shadow receivers.
 void getShadowReceiverFragmentProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the fragment program parameters used by this pass when rendering shadow receivers.
 IGpuProgramPtr getShadowReceiverVertexProgram()
          Gets the vertex program used by this pass when rendering shadow receivers, only available after .
 java.lang.String getShadowReceiverVertexProgramName()
          Gets the name of the vertex program used by this pass when rendering shadow receivers.
 void getShadowReceiverVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the vertex program parameters used by this pass when rendering shadow receivers.
 float getShininess()
          Gets the 'shininess' property of the pass (affects specular highlights).
 SceneBlendFactor getSourceBlendFactor()
          Retrieves the source blending factor for the material (as set using Materiall::setSceneBlending).
 SceneBlendFactor getSourceBlendFactorAlpha()
          Retrieves the alpha source blending factor for the material (as set using Materiall::setSeparateSceneBlending).
 IColourValue getSpecular()
          Gets the specular colour reflectance of the pass.
 int getStartLight()
          Gets the light index that this pass will start at in the light list.
 ITextureUnitState getTextureUnitState_const(int index)
           
 ITextureUnitState getTextureUnitState_const(java.lang.String name)
           
 ITextureUnitState getTextureUnitState(int index)
          Retrieves a pointer to a texture unit state so it may be modified.
 ITextureUnitState getTextureUnitState(java.lang.String name)
          Retrieves the Unit State matching name.
 int getTextureUnitStateIndex(ITextureUnitState state)
          Retrieve the index of the Unit State in the pass.
 void getTextureUnitStateIterator_const(IPass.IConstTextureUnitStateIterator returnValue)
           
 void getTextureUnitStateIterator(IPass.ITextureUnitStateIterator returnValue)
          Get an iterator over the TextureUnitStates contained in this .
 boolean getTransparentSortingEnabled()
          Returns whether or not transparent sorting is enabled.
 int getVertexColourTracking()
          Gets which material properties follow the vertex colour
 IGpuProgramPtr getVertexProgram()
          Gets the vertex program used by this pass, only available after .
 java.lang.String getVertexProgramName()
          Gets the name of the vertex program used by this pass.
 void getVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the vertex program parameters used by this pass.
 boolean hasFragmentProgram()
           
 boolean hasGeometryProgram()
           
 boolean hasSeparateSceneBlending()
          Return true if this pass uses separate scene blending
 boolean hasShadowCasterVertexProgram()
           
 boolean hasShadowReceiverFragmentProgram()
           
 boolean hasShadowReceiverVertexProgram()
           
 boolean hasVertexProgram()
           
 boolean isAlphaToCoverageEnabled()
          Gets whether to use alpha to coverage (A2C) when blending alpha rejected values.
 boolean isAmbientOnly()
          Returns whether this pass is ambient only.
 boolean isLoaded()
           
 boolean isPointAttenuationEnabled()
          Returns whether points are attenuated with distance.
 boolean isProgrammable()
           
 boolean isTransparent()
          Returns true if this pass has some element of transparency.
 IPass operatorAssignment(IPass oth)
           
static void processPendingPassUpdates()
          Process all dirty and pending deletion passes.
 void queueForDeletion()
          Queue this pass for deletion when appropriate.
 void removeAllTextureUnitStates()
          Removes all texture unit settings.
 void removeTextureUnitState(int index)
          Removes the indexed texture unit state from this pass.
 void setAlphaRejectFunction(CompareFunction func)
          Sets the alpha reject function.
 void setAlphaRejectSettings(CompareFunction func, short value, boolean alphaToCoverageEnabled)
          Sets the way the pass will have use alpha to totally reject pixels from the pipeline.
 void setAlphaRejectValue(short val)
          Gets the alpha reject value.
 void setAlphaToCoverageEnabled(boolean enabled)
          Sets whether to use alpha to coverage (A2C) when blending alpha rejected values.
 void setAmbient(float red, float green, float blue)
          Sets the ambient colour reflectance properties of this pass.
 void setAmbient(IColourValue ambient)
          Sets the ambient colour reflectance properties of this pass.
 void setColourWriteEnabled(boolean enabled)
          Sets whether or not colour buffer writing is enabled for this .
 void setCullingMode(CullingMode mode)
          Sets the culling mode for this pass based on the 'vertex winding'.
 void setDepthBias(float constantBias, float slopeScaleBias)
          Sets the depth bias to be used for this material.
 void setDepthCheckEnabled(boolean enabled)
          Sets whether or not this pass renders with depth-buffer checking on or not.
 void setDepthFunction(CompareFunction func)
          Sets the function used to compare depth values when depth checking is on.
 void setDepthWriteEnabled(boolean enabled)
          Sets whether or not this pass renders with depth-buffer writing on or not.
 void setDiffuse(float red, float green, float blue, float alpha)
          Sets the diffuse colour reflectance properties of this pass.
 void setDiffuse(IColourValue diffuse)
          Sets the diffuse colour reflectance properties of this pass.
 void setFog(boolean overrideScene, FogMode mode, IColourValue colour, float expDensity, float linearStart, float linearEnd)
          Sets the fogging mode applied to this pass.
 void setFragmentProgram(java.lang.String name, boolean resetParams)
          Sets the details of the fragment program to use.
 void setFragmentProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the fragment program parameters.
 void setGeometryProgram(java.lang.String name, boolean resetParams)
          Sets the details of the geometry program to use.
 void setGeometryProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the geometry program parameters.
static void setHashFunction(IPass.IHashFunc hashFunc)
          Set the hash function used for all passes.
static void setHashFunction(Pass.BuiltinHashFunction builtin)
          Sets one of the default hash functions to be used.
 void setIlluminationStage(IlluminationStage is)
          Manually set which illumination stage this pass is a member of.
 void setIteratePerLight(boolean enabled, boolean onlyForOneLightType, Light.LightTypes lightType)
          Sets whether or not this pass should iterate per light or number of lights which can affect the object being rendered.
 void setIterationDepthBias(float biasPerIteration)
          Sets a factor which derives an additional depth bias from the number of times a pass is iterated.
 void setLightClipPlanesEnabled(boolean enabled)
          Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.
 void setLightCountPerIteration(int c)
          If light iteration is enabled, determine the number of lights per iteration.
 void setLightingEnabled(boolean enabled)
          Sets whether or not dynamic lighting is enabled.
 void setLightScissoringEnabled(boolean enabled)
          Sets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.
 void setManualCullingMode(ManualCullingMode mode)
          Sets the manual culling mode, performed by CPU rather than hardware.
 void setMaxSimultaneousLights(int maxLights)
          Sets the maximum number of lights to be used by this pass.
 void setName(java.lang.String name)
           
 void setNormaliseNormals(boolean normalise)
          If set to true, this forces normals to be normalised dynamically by the hardware for this pass.
 void setPassIterationCount(int count)
          set the number of iterations that this pass should perform when doing fast multi pass operation.
 void setPointAttenuation(boolean enabled, float constant, float linear, float quadratic)
          Sets how points are attenuated with distance.
 void setPointMaxSize(float _max)
          Set the maximum point size, when point attenuation is in use.
 void setPointMinSize(float _min)
          Set the minimum point size, when point attenuation is in use.
 void setPointSize(float ps)
          Sets the point size of this pass.
 void setPointSpritesEnabled(boolean enabled)
          Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points (dots).
 void setPolygonMode(PolygonMode mode)
          Sets the type of polygon rendering required
 void setPolygonModeOverrideable(boolean override)
          Sets whether this pass's chosen detail level can be overridden (downgraded) by the camera setting.
 void setSceneBlending(SceneBlendFactor sourceFactor, SceneBlendFactor destFactor)
          Allows very fine control of blending this with the existing contents of the scene.
 void setSceneBlending(SceneBlendType sbt)
          Sets the kind of blending this pass has with the existing contents of the scene.
 void setSelfIllumination(float red, float green, float blue)
          Sets the amount of self-illumination an object has.
 void setSelfIllumination(IColourValue selfIllum)
          Sets the amount of self-illumination an object has.
 void setSeparateSceneBlending(SceneBlendFactor sourceFactor, SceneBlendFactor destFactor, SceneBlendFactor sourceFactorAlpha, SceneBlendFactor destFactorAlpha)
          Allows very fine control of blending this with the existing contents of the scene.
 void setSeparateSceneBlending(SceneBlendType sbt, SceneBlendType sbta)
          Sets the kind of blending this pass has with the existing contents of the scene, separately for color and alpha channels
 void setShadingMode(ShadeOptions mode)
          Sets the type of light shading required
 void setShadowCasterVertexProgram(java.lang.String name)
          Sets the details of the vertex program to use when rendering as a shadow caster.
 void setShadowCasterVertexProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the vertex program parameters for rendering as a shadow caster.
 void setShadowReceiverFragmentProgram(java.lang.String name)
          This method allows you to specify a fragment program for use when rendering a texture shadow receiver.
 void setShadowReceiverFragmentProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the fragment program parameters for rendering as a shadow receiver.
 void setShadowReceiverVertexProgram(java.lang.String name)
          Sets the details of the vertex program to use when rendering as a shadow receiver.
 void setShadowReceiverVertexProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the vertex program parameters for rendering as a shadow receiver.
 void setShininess(float val)
          Sets the shininess of the pass, affecting the size of specular highlights.
 void setSpecular(float red, float green, float blue, float alpha)
          Sets the specular colour reflectance properties of this pass.
 void setSpecular(IColourValue specular)
          Sets the specular colour reflectance properties of this pass.
 void setStartLight(int startLight)
          Sets the light index that this pass will start at in the light list.
 void setTextureAnisotropy(long maxAniso)
          Sets the anisotropy level to be used for all textures.
 void setTextureFiltering(TextureFilterOptions filterType)
          Set texture filtering for every texture unit
 void setTransparentSortingEnabled(boolean enabled)
          Sets whether or not transparent sorting is enabled.
 void setVertexColourTracking(int tracking)
          Sets which material properties follow the vertex colour
 void setVertexProgram(java.lang.String name, boolean resetParams)
          Sets the details of the vertex program to use.
 void setVertexProgramParameters(IGpuProgramParametersSharedPtr params)
          Sets the vertex program parameters.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

Pass

public Pass(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


Pass

protected Pass(InstancePointer p,
               boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


Pass

public Pass(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

Pass

public Pass(ITechnique parent,
            int index)

Pass

public Pass(ITechnique parent,
            int index,
            IPass oth)
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

operatorAssignment

public IPass operatorAssignment(IPass oth)
Specified by:
operatorAssignment in interface IPass

isProgrammable

public boolean isProgrammable()
Specified by:
isProgrammable in interface IPass

hasVertexProgram

public boolean hasVertexProgram()
Specified by:
hasVertexProgram in interface IPass

hasFragmentProgram

public boolean hasFragmentProgram()
Specified by:
hasFragmentProgram in interface IPass

hasGeometryProgram

public boolean hasGeometryProgram()
Specified by:
hasGeometryProgram in interface IPass

hasShadowCasterVertexProgram

public boolean hasShadowCasterVertexProgram()
Specified by:
hasShadowCasterVertexProgram in interface IPass

hasShadowReceiverVertexProgram

public boolean hasShadowReceiverVertexProgram()
Specified by:
hasShadowReceiverVertexProgram in interface IPass

hasShadowReceiverFragmentProgram

public boolean hasShadowReceiverFragmentProgram()
Specified by:
hasShadowReceiverFragmentProgram in interface IPass

getIndex

public int getIndex()
Specified by:
getIndex in interface IPass

setName

public void setName(java.lang.String name)
Specified by:
setName in interface IPass

getName

public java.lang.String getName()
Specified by:
getName in interface IPass

setAmbient

public void setAmbient(float red,
                       float green,
                       float blue)
Sets the ambient colour reflectance properties of this pass.

Specified by:
setAmbient in interface IPass

setAmbient

public void setAmbient(IColourValue ambient)
Sets the ambient colour reflectance properties of this pass.

Specified by:
setAmbient in interface IPass

setDiffuse

public void setDiffuse(float red,
                       float green,
                       float blue,
                       float alpha)
Sets the diffuse colour reflectance properties of this pass.

Specified by:
setDiffuse in interface IPass

setDiffuse

public void setDiffuse(IColourValue diffuse)
Sets the diffuse colour reflectance properties of this pass.

Specified by:
setDiffuse in interface IPass

setSpecular

public void setSpecular(float red,
                        float green,
                        float blue,
                        float alpha)
Sets the specular colour reflectance properties of this pass.

Specified by:
setSpecular in interface IPass

setSpecular

public void setSpecular(IColourValue specular)
Sets the specular colour reflectance properties of this pass.

Specified by:
setSpecular in interface IPass

setShininess

public void setShininess(float val)
Sets the shininess of the pass, affecting the size of specular highlights.

Specified by:
setShininess in interface IPass

setSelfIllumination

public void setSelfIllumination(float red,
                                float green,
                                float blue)
Sets the amount of self-illumination an object has.

Specified by:
setSelfIllumination in interface IPass

setSelfIllumination

public void setSelfIllumination(IColourValue selfIllum)
Sets the amount of self-illumination an object has.

Specified by:
setSelfIllumination in interface IPass

setVertexColourTracking

public void setVertexColourTracking(int tracking)
Sets which material properties follow the vertex colour

Specified by:
setVertexColourTracking in interface IPass

getPointSize

public float getPointSize()
Gets the point size of the pass.

Specified by:
getPointSize in interface IPass

setPointSize

public void setPointSize(float ps)
Sets the point size of this pass.

Specified by:
setPointSize in interface IPass

setPointSpritesEnabled

public void setPointSpritesEnabled(boolean enabled)
Sets whether or not rendering points using OT_POINT_LIST will render point sprites (textured quads) or plain points (dots).

Specified by:
setPointSpritesEnabled in interface IPass

getPointSpritesEnabled

public boolean getPointSpritesEnabled()
Returns whether point sprites are enabled when rendering a point list.

Specified by:
getPointSpritesEnabled in interface IPass

setPointAttenuation

public void setPointAttenuation(boolean enabled,
                                float constant,
                                float linear,
                                float quadratic)
Sets how points are attenuated with distance.

Specified by:
setPointAttenuation in interface IPass

isPointAttenuationEnabled

public boolean isPointAttenuationEnabled()
Returns whether points are attenuated with distance.

Specified by:
isPointAttenuationEnabled in interface IPass

getPointAttenuationConstant

public float getPointAttenuationConstant()
Returns the constant coefficient of point attenuation.

Specified by:
getPointAttenuationConstant in interface IPass

getPointAttenuationLinear

public float getPointAttenuationLinear()
Returns the linear coefficient of point attenuation.

Specified by:
getPointAttenuationLinear in interface IPass

getPointAttenuationQuadratic

public float getPointAttenuationQuadratic()
Returns the quadratic coefficient of point attenuation.

Specified by:
getPointAttenuationQuadratic in interface IPass

setPointMinSize

public void setPointMinSize(float _min)
Set the minimum point size, when point attenuation is in use.

Specified by:
setPointMinSize in interface IPass

getPointMinSize

public float getPointMinSize()
Get the minimum point size, when point attenuation is in use.

Specified by:
getPointMinSize in interface IPass

setPointMaxSize

public void setPointMaxSize(float _max)
Set the maximum point size, when point attenuation is in use.

Specified by:
setPointMaxSize in interface IPass

getPointMaxSize

public float getPointMaxSize()
Get the maximum point size, when point attenuation is in use.

Specified by:
getPointMaxSize in interface IPass

getAmbient

public IColourValue getAmbient()
Gets the ambient colour reflectance of the pass.

Specified by:
getAmbient in interface IPass

getDiffuse

public IColourValue getDiffuse()
Gets the diffuse colour reflectance of the pass.

Specified by:
getDiffuse in interface IPass

getSpecular

public IColourValue getSpecular()
Gets the specular colour reflectance of the pass.

Specified by:
getSpecular in interface IPass

getSelfIllumination

public IColourValue getSelfIllumination()
Gets the self illumination colour of the pass.

Specified by:
getSelfIllumination in interface IPass

getShininess

public float getShininess()
Gets the 'shininess' property of the pass (affects specular highlights).

Specified by:
getShininess in interface IPass

getVertexColourTracking

public int getVertexColourTracking()
Gets which material properties follow the vertex colour

Specified by:
getVertexColourTracking in interface IPass

createTextureUnitState

public ITextureUnitState createTextureUnitState()
Inserts a new object into the .

Specified by:
createTextureUnitState in interface IPass

createTextureUnitState

public ITextureUnitState createTextureUnitState(java.lang.String textureName,
                                                int texCoordSet)
Inserts a new object into the .

Specified by:
createTextureUnitState in interface IPass

addTextureUnitState

public void addTextureUnitState(ITextureUnitState state)
Adds the passed in , to the existing .

Specified by:
addTextureUnitState in interface IPass

getTextureUnitState

public ITextureUnitState getTextureUnitState(int index)
Retrieves a pointer to a texture unit state so it may be modified.

Specified by:
getTextureUnitState in interface IPass

getTextureUnitState

public ITextureUnitState getTextureUnitState(java.lang.String name)
Retrieves the Unit State matching name. Returns 0 if name match is not found.

Specified by:
getTextureUnitState in interface IPass

getTextureUnitState_const

public ITextureUnitState getTextureUnitState_const(int index)
Specified by:
getTextureUnitState_const in interface IPass

getTextureUnitState_const

public ITextureUnitState getTextureUnitState_const(java.lang.String name)
Specified by:
getTextureUnitState_const in interface IPass

getTextureUnitStateIndex

public int getTextureUnitStateIndex(ITextureUnitState state)
Retrieve the index of the Unit State in the pass.

Specified by:
getTextureUnitStateIndex in interface IPass

getTextureUnitStateIterator

public void getTextureUnitStateIterator(IPass.ITextureUnitStateIterator returnValue)
Get an iterator over the TextureUnitStates contained in this .

Specified by:
getTextureUnitStateIterator in interface IPass

getTextureUnitStateIterator_const

public void getTextureUnitStateIterator_const(IPass.IConstTextureUnitStateIterator returnValue)
Specified by:
getTextureUnitStateIterator_const in interface IPass

removeTextureUnitState

public void removeTextureUnitState(int index)
Removes the indexed texture unit state from this pass.

Specified by:
removeTextureUnitState in interface IPass

removeAllTextureUnitStates

public void removeAllTextureUnitStates()
Removes all texture unit settings.

Specified by:
removeAllTextureUnitStates in interface IPass

getNumTextureUnitStates

public int getNumTextureUnitStates()
Returns the number of texture unit settings.

Specified by:
getNumTextureUnitStates in interface IPass

setSceneBlending

public void setSceneBlending(SceneBlendType sbt)
Sets the kind of blending this pass has with the existing contents of the scene.

Specified by:
setSceneBlending in interface IPass

setSeparateSceneBlending

public void setSeparateSceneBlending(SceneBlendType sbt,
                                     SceneBlendType sbta)
Sets the kind of blending this pass has with the existing contents of the scene, separately for color and alpha channels

Specified by:
setSeparateSceneBlending in interface IPass

setSceneBlending

public void setSceneBlending(SceneBlendFactor sourceFactor,
                             SceneBlendFactor destFactor)
Allows very fine control of blending this with the existing contents of the scene.

Specified by:
setSceneBlending in interface IPass

setSeparateSceneBlending

public void setSeparateSceneBlending(SceneBlendFactor sourceFactor,
                                     SceneBlendFactor destFactor,
                                     SceneBlendFactor sourceFactorAlpha,
                                     SceneBlendFactor destFactorAlpha)
Allows very fine control of blending this with the existing contents of the scene.

Specified by:
setSeparateSceneBlending in interface IPass

hasSeparateSceneBlending

public boolean hasSeparateSceneBlending()
Return true if this pass uses separate scene blending

Specified by:
hasSeparateSceneBlending in interface IPass

getSourceBlendFactor

public SceneBlendFactor getSourceBlendFactor()
Retrieves the source blending factor for the material (as set using Materiall::setSceneBlending).

Specified by:
getSourceBlendFactor in interface IPass

getDestBlendFactor

public SceneBlendFactor getDestBlendFactor()
Retrieves the destination blending factor for the material (as set using Materiall::setSceneBlending).

Specified by:
getDestBlendFactor in interface IPass

getSourceBlendFactorAlpha

public SceneBlendFactor getSourceBlendFactorAlpha()
Retrieves the alpha source blending factor for the material (as set using Materiall::setSeparateSceneBlending).

Specified by:
getSourceBlendFactorAlpha in interface IPass

getDestBlendFactorAlpha

public SceneBlendFactor getDestBlendFactorAlpha()
Retrieves the alpha destination blending factor for the material (as set using Materiall::setSeparateSceneBlending).

Specified by:
getDestBlendFactorAlpha in interface IPass

isTransparent

public boolean isTransparent()
Returns true if this pass has some element of transparency.

Specified by:
isTransparent in interface IPass

setDepthCheckEnabled

public void setDepthCheckEnabled(boolean enabled)
Sets whether or not this pass renders with depth-buffer checking on or not.

Specified by:
setDepthCheckEnabled in interface IPass

getDepthCheckEnabled

public boolean getDepthCheckEnabled()
Returns whether or not this pass renders with depth-buffer checking on or not.

Specified by:
getDepthCheckEnabled in interface IPass

setDepthWriteEnabled

public void setDepthWriteEnabled(boolean enabled)
Sets whether or not this pass renders with depth-buffer writing on or not.

Specified by:
setDepthWriteEnabled in interface IPass

getDepthWriteEnabled

public boolean getDepthWriteEnabled()
Returns whether or not this pass renders with depth-buffer writing on or not.

Specified by:
getDepthWriteEnabled in interface IPass

setDepthFunction

public void setDepthFunction(CompareFunction func)
Sets the function used to compare depth values when depth checking is on.

Specified by:
setDepthFunction in interface IPass

getDepthFunction

public CompareFunction getDepthFunction()
Returns the function used to compare depth values when depth checking is on.

Specified by:
getDepthFunction in interface IPass

setColourWriteEnabled

public void setColourWriteEnabled(boolean enabled)
Sets whether or not colour buffer writing is enabled for this .

Specified by:
setColourWriteEnabled in interface IPass

getColourWriteEnabled

public boolean getColourWriteEnabled()
Determines if colour buffer writing is enabled for this pass.

Specified by:
getColourWriteEnabled in interface IPass

setCullingMode

public void setCullingMode(CullingMode mode)
Sets the culling mode for this pass based on the 'vertex winding'.

Specified by:
setCullingMode in interface IPass

getCullingMode

public CullingMode getCullingMode()
Returns the culling mode for geometry rendered with this pass. See setCullingMode for more information.

Specified by:
getCullingMode in interface IPass

setManualCullingMode

public void setManualCullingMode(ManualCullingMode mode)
Sets the manual culling mode, performed by CPU rather than hardware.

Specified by:
setManualCullingMode in interface IPass

getManualCullingMode

public ManualCullingMode getManualCullingMode()
Retrieves the manual culling mode for this pass

Specified by:
getManualCullingMode in interface IPass

setLightingEnabled

public void setLightingEnabled(boolean enabled)
Sets whether or not dynamic lighting is enabled.

Specified by:
setLightingEnabled in interface IPass

getLightingEnabled

public boolean getLightingEnabled()
Returns whether or not dynamic lighting is enabled.

Specified by:
getLightingEnabled in interface IPass

setMaxSimultaneousLights

public void setMaxSimultaneousLights(int maxLights)
Sets the maximum number of lights to be used by this pass.

Specified by:
setMaxSimultaneousLights in interface IPass

getMaxSimultaneousLights

public int getMaxSimultaneousLights()
Gets the maximum number of lights to be used by this pass.

Specified by:
getMaxSimultaneousLights in interface IPass

setStartLight

public void setStartLight(int startLight)
Sets the light index that this pass will start at in the light list.

Specified by:
setStartLight in interface IPass

getStartLight

public int getStartLight()
Gets the light index that this pass will start at in the light list.

Specified by:
getStartLight in interface IPass

setShadingMode

public void setShadingMode(ShadeOptions mode)
Sets the type of light shading required

Specified by:
setShadingMode in interface IPass

getShadingMode

public ShadeOptions getShadingMode()
Returns the type of light shading to be used.

Specified by:
getShadingMode in interface IPass

setPolygonMode

public void setPolygonMode(PolygonMode mode)
Sets the type of polygon rendering required

Specified by:
setPolygonMode in interface IPass

getPolygonMode

public PolygonMode getPolygonMode()
Returns the type of light shading to be used.

Specified by:
getPolygonMode in interface IPass

setPolygonModeOverrideable

public void setPolygonModeOverrideable(boolean override)
Sets whether this pass's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
setPolygonModeOverrideable in interface IPass

getPolygonModeOverrideable

public boolean getPolygonModeOverrideable()
Gets whether this renderable's chosen detail level can be overridden (downgraded) by the camera setting.

Specified by:
getPolygonModeOverrideable in interface IPass

setFog

public void setFog(boolean overrideScene,
                   FogMode mode,
                   IColourValue colour,
                   float expDensity,
                   float linearStart,
                   float linearEnd)
Sets the fogging mode applied to this pass.

Specified by:
setFog in interface IPass

getFogOverride

public boolean getFogOverride()
Returns true if this pass is to override the scene fog settings.

Specified by:
getFogOverride in interface IPass

getFogMode

public FogMode getFogMode()
Returns the fog mode for this pass.

Specified by:
getFogMode in interface IPass

getFogColour

public IColourValue getFogColour()
Returns the fog colour for the scene.

Specified by:
getFogColour in interface IPass

getFogStart

public float getFogStart()
Returns the fog start distance for this pass.

Specified by:
getFogStart in interface IPass

getFogEnd

public float getFogEnd()
Returns the fog end distance for this pass.

Specified by:
getFogEnd in interface IPass

getFogDensity

public float getFogDensity()
Returns the fog density for this pass.

Specified by:
getFogDensity in interface IPass

setDepthBias

public void setDepthBias(float constantBias,
                         float slopeScaleBias)
Sets the depth bias to be used for this material.

Specified by:
setDepthBias in interface IPass

getDepthBiasConstant

public float getDepthBiasConstant()
Retrieves the const depth bias value as set by setDepthBias.

Specified by:
getDepthBiasConstant in interface IPass

getDepthBiasSlopeScale

public float getDepthBiasSlopeScale()
Retrieves the slope-scale depth bias value as set by setDepthBias.

Specified by:
getDepthBiasSlopeScale in interface IPass

setIterationDepthBias

public void setIterationDepthBias(float biasPerIteration)
Sets a factor which derives an additional depth bias from the number of times a pass is iterated.

Specified by:
setIterationDepthBias in interface IPass

getIterationDepthBias

public float getIterationDepthBias()
Gets a factor which derives an additional depth bias from the number of times a pass is iterated.

Specified by:
getIterationDepthBias in interface IPass

setAlphaRejectSettings

public void setAlphaRejectSettings(CompareFunction func,
                                   short value,
                                   boolean alphaToCoverageEnabled)
Sets the way the pass will have use alpha to totally reject pixels from the pipeline.

Specified by:
setAlphaRejectSettings in interface IPass

setAlphaRejectFunction

public void setAlphaRejectFunction(CompareFunction func)
Sets the alpha reject function. See setAlphaRejectSettings for more information.

Specified by:
setAlphaRejectFunction in interface IPass

setAlphaRejectValue

public void setAlphaRejectValue(short val)
Gets the alpha reject value. See setAlphaRejectSettings for more information.

Specified by:
setAlphaRejectValue in interface IPass

getAlphaRejectFunction

public CompareFunction getAlphaRejectFunction()
Gets the alpha reject function. See setAlphaRejectSettings for more information.

Specified by:
getAlphaRejectFunction in interface IPass

getAlphaRejectValue

public short getAlphaRejectValue()
Gets the alpha reject value. See setAlphaRejectSettings for more information.

Specified by:
getAlphaRejectValue in interface IPass

setAlphaToCoverageEnabled

public void setAlphaToCoverageEnabled(boolean enabled)
Sets whether to use alpha to coverage (A2C) when blending alpha rejected values.

Specified by:
setAlphaToCoverageEnabled in interface IPass

isAlphaToCoverageEnabled

public boolean isAlphaToCoverageEnabled()
Gets whether to use alpha to coverage (A2C) when blending alpha rejected values.

Specified by:
isAlphaToCoverageEnabled in interface IPass

setTransparentSortingEnabled

public void setTransparentSortingEnabled(boolean enabled)
Sets whether or not transparent sorting is enabled.

Specified by:
setTransparentSortingEnabled in interface IPass

getTransparentSortingEnabled

public boolean getTransparentSortingEnabled()
Returns whether or not transparent sorting is enabled.

Specified by:
getTransparentSortingEnabled in interface IPass

setIteratePerLight

public void setIteratePerLight(boolean enabled,
                               boolean onlyForOneLightType,
                               Light.LightTypes lightType)
Sets whether or not this pass should iterate per light or number of lights which can affect the object being rendered.

Specified by:
setIteratePerLight in interface IPass

getIteratePerLight

public boolean getIteratePerLight()
Does this pass run once for every light in range?

Specified by:
getIteratePerLight in interface IPass

getRunOnlyForOneLightType

public boolean getRunOnlyForOneLightType()
Does this pass run only for a single light type (if getIteratePerLight is true).

Specified by:
getRunOnlyForOneLightType in interface IPass

getOnlyLightType

public Light.LightTypes getOnlyLightType()
Gets the single light type this pass runs for if getIteratePerLight and getRunOnlyForOneLightType are both true.

Specified by:
getOnlyLightType in interface IPass

setLightCountPerIteration

public void setLightCountPerIteration(int c)
If light iteration is enabled, determine the number of lights per iteration.

Specified by:
setLightCountPerIteration in interface IPass

getLightCountPerIteration

public int getLightCountPerIteration()
If light iteration is enabled, determine the number of lights per iteration.

Specified by:
getLightCountPerIteration in interface IPass

getParent

public ITechnique getParent()
Specified by:
getParent in interface IPass

getResourceGroup

public java.lang.String getResourceGroup()
Specified by:
getResourceGroup in interface IPass

setVertexProgram

public void setVertexProgram(java.lang.String name,
                             boolean resetParams)
Sets the details of the vertex program to use.

Specified by:
setVertexProgram in interface IPass

setVertexProgramParameters

public void setVertexProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the vertex program parameters.

Specified by:
setVertexProgramParameters in interface IPass

getVertexProgramName

public java.lang.String getVertexProgramName()
Gets the name of the vertex program used by this pass.

Specified by:
getVertexProgramName in interface IPass

getVertexProgramParameters

public void getVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the vertex program parameters used by this pass.

Specified by:
getVertexProgramParameters in interface IPass

getVertexProgram

public IGpuProgramPtr getVertexProgram()
Gets the vertex program used by this pass, only available after .

Specified by:
getVertexProgram in interface IPass

setShadowCasterVertexProgram

public void setShadowCasterVertexProgram(java.lang.String name)
Sets the details of the vertex program to use when rendering as a shadow caster.

Specified by:
setShadowCasterVertexProgram in interface IPass

setShadowCasterVertexProgramParameters

public void setShadowCasterVertexProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the vertex program parameters for rendering as a shadow caster.

Specified by:
setShadowCasterVertexProgramParameters in interface IPass

getShadowCasterVertexProgramName

public java.lang.String getShadowCasterVertexProgramName()
Gets the name of the vertex program used by this pass when rendering shadow casters.

Specified by:
getShadowCasterVertexProgramName in interface IPass

getShadowCasterVertexProgramParameters

public void getShadowCasterVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the vertex program parameters used by this pass when rendering shadow casters.

Specified by:
getShadowCasterVertexProgramParameters in interface IPass

getShadowCasterVertexProgram

public IGpuProgramPtr getShadowCasterVertexProgram()
Gets the vertex program used by this pass when rendering shadow casters, only available after .

Specified by:
getShadowCasterVertexProgram in interface IPass

setShadowReceiverVertexProgram

public void setShadowReceiverVertexProgram(java.lang.String name)
Sets the details of the vertex program to use when rendering as a shadow receiver.

Specified by:
setShadowReceiverVertexProgram in interface IPass

setShadowReceiverVertexProgramParameters

public void setShadowReceiverVertexProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the vertex program parameters for rendering as a shadow receiver.

Specified by:
setShadowReceiverVertexProgramParameters in interface IPass

setShadowReceiverFragmentProgram

public void setShadowReceiverFragmentProgram(java.lang.String name)
This method allows you to specify a fragment program for use when rendering a texture shadow receiver.

Specified by:
setShadowReceiverFragmentProgram in interface IPass

setShadowReceiverFragmentProgramParameters

public void setShadowReceiverFragmentProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the fragment program parameters for rendering as a shadow receiver.

Specified by:
setShadowReceiverFragmentProgramParameters in interface IPass

getShadowReceiverVertexProgramName

public java.lang.String getShadowReceiverVertexProgramName()
Gets the name of the vertex program used by this pass when rendering shadow receivers.

Specified by:
getShadowReceiverVertexProgramName in interface IPass

getShadowReceiverVertexProgramParameters

public void getShadowReceiverVertexProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the vertex program parameters used by this pass when rendering shadow receivers.

Specified by:
getShadowReceiverVertexProgramParameters in interface IPass

getShadowReceiverVertexProgram

public IGpuProgramPtr getShadowReceiverVertexProgram()
Gets the vertex program used by this pass when rendering shadow receivers, only available after .

Specified by:
getShadowReceiverVertexProgram in interface IPass

getShadowReceiverFragmentProgramName

public java.lang.String getShadowReceiverFragmentProgramName()
Gets the name of the fragment program used by this pass when rendering shadow receivers.

Specified by:
getShadowReceiverFragmentProgramName in interface IPass

getShadowReceiverFragmentProgramParameters

public void getShadowReceiverFragmentProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the fragment program parameters used by this pass when rendering shadow receivers.

Specified by:
getShadowReceiverFragmentProgramParameters in interface IPass

getShadowReceiverFragmentProgram

public IGpuProgramPtr getShadowReceiverFragmentProgram()
Gets the fragment program used by this pass when rendering shadow receivers, only available after .

Specified by:
getShadowReceiverFragmentProgram in interface IPass

setFragmentProgram

public void setFragmentProgram(java.lang.String name,
                               boolean resetParams)
Sets the details of the fragment program to use.

Specified by:
setFragmentProgram in interface IPass

setFragmentProgramParameters

public void setFragmentProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the fragment program parameters.

Specified by:
setFragmentProgramParameters in interface IPass

getFragmentProgramName

public java.lang.String getFragmentProgramName()
Gets the name of the fragment program used by this pass.

Specified by:
getFragmentProgramName in interface IPass

getFragmentProgramParameters

public void getFragmentProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the fragment program parameters used by this pass.

Specified by:
getFragmentProgramParameters in interface IPass

getFragmentProgram

public IGpuProgramPtr getFragmentProgram()
Gets the fragment program used by this pass, only available after .

Specified by:
getFragmentProgram in interface IPass

setGeometryProgram

public void setGeometryProgram(java.lang.String name,
                               boolean resetParams)
Sets the details of the geometry program to use.

Specified by:
setGeometryProgram in interface IPass

setGeometryProgramParameters

public void setGeometryProgramParameters(IGpuProgramParametersSharedPtr params)
Sets the geometry program parameters.

Specified by:
setGeometryProgramParameters in interface IPass

getGeometryProgramName

public java.lang.String getGeometryProgramName()
Gets the name of the geometry program used by this pass.

Specified by:
getGeometryProgramName in interface IPass

getGeometryProgramParameters

public void getGeometryProgramParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the geometry program parameters used by this pass.

Specified by:
getGeometryProgramParameters in interface IPass

getGeometryProgram

public IGpuProgramPtr getGeometryProgram()
Gets the geometry program used by this pass, only available after .

Specified by:
getGeometryProgram in interface IPass

_split

public IPass _split(int numUnits)
Splits this to one which can be handled in the number of texture units specified.

Specified by:
_split in interface IPass

_notifyIndex

public void _notifyIndex(int index)
Internal method to adjust pass index.

Specified by:
_notifyIndex in interface IPass

_prepare

public void _prepare()
Internal method for preparing to load this pass.

Specified by:
_prepare in interface IPass

_unprepare

public void _unprepare()
Internal method for undoing the load preparartion for this pass.

Specified by:
_unprepare in interface IPass

_load

public void _load()
Internal method for loading this pass.

Specified by:
_load in interface IPass

_unload

public void _unload()
Internal method for unloading this pass.

Specified by:
_unload in interface IPass

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in interface IPass

getHash

public long getHash()
Gets the 'hash' of this pass, ie a precomputed number to use for sorting

Specified by:
getHash in interface IPass

_dirtyHash

public void _dirtyHash()
Specified by:
_dirtyHash in interface IPass

_recalculateHash

public void _recalculateHash()
Internal method for recalculating the hash.

Specified by:
_recalculateHash in interface IPass

_notifyNeedsRecompile

public void _notifyNeedsRecompile()
Tells the pass that it needs recompilation.

Specified by:
_notifyNeedsRecompile in interface IPass

_updateAutoParamsNoLights

public void _updateAutoParamsNoLights(IAutoParamDataSource source)
Update any automatic parameters (except lights) on this pass

Specified by:
_updateAutoParamsNoLights in interface IPass

_updateAutoParamsLightsOnly

public void _updateAutoParamsLightsOnly(IAutoParamDataSource source)
Update any automatic light parameters on this pass

Specified by:
_updateAutoParamsLightsOnly in interface IPass

_getTextureUnitWithContentTypeIndex

public int _getTextureUnitWithContentTypeIndex(TextureUnitState.ContentType contentType,
                                               int index)
Gets the 'nth' texture which references the given content type.

Specified by:
_getTextureUnitWithContentTypeIndex in interface IPass

setTextureFiltering

public void setTextureFiltering(TextureFilterOptions filterType)
Set texture filtering for every texture unit

Specified by:
setTextureFiltering in interface IPass

setTextureAnisotropy

public void setTextureAnisotropy(long maxAniso)
Sets the anisotropy level to be used for all textures.

Specified by:
setTextureAnisotropy in interface IPass

setNormaliseNormals

public void setNormaliseNormals(boolean normalise)
If set to true, this forces normals to be normalised dynamically by the hardware for this pass.

Specified by:
setNormaliseNormals in interface IPass

getNormaliseNormals

public boolean getNormaliseNormals()
Returns true if this pass has auto-normalisation of normals set.

Specified by:
getNormaliseNormals in interface IPass

queueForDeletion

public void queueForDeletion()
Queue this pass for deletion when appropriate.

Specified by:
queueForDeletion in interface IPass

isAmbientOnly

public boolean isAmbientOnly()
Returns whether this pass is ambient only.

Specified by:
isAmbientOnly in interface IPass

setPassIterationCount

public void setPassIterationCount(int count)
set the number of iterations that this pass should perform when doing fast multi pass operation.

Specified by:
setPassIterationCount in interface IPass

getPassIterationCount

public int getPassIterationCount()
Gets the pass iteration count value.

Specified by:
getPassIterationCount in interface IPass

applyTextureAliases

public boolean applyTextureAliases(IAliasTextureNamePairList aliasList,
                                   boolean apply)
Applies texture names to Unit State with matching texture name aliases. All Unit States within the pass are checked. If matching texture aliases are found then true is returned.

Specified by:
applyTextureAliases in interface IPass

setLightScissoringEnabled

public void setLightScissoringEnabled(boolean enabled)
Sets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.

Specified by:
setLightScissoringEnabled in interface IPass

getLightScissoringEnabled

public boolean getLightScissoringEnabled()
Gets whether or not this pass will be clipped by a scissor rectangle encompassing the lights that are being used in it.

Specified by:
getLightScissoringEnabled in interface IPass

setLightClipPlanesEnabled

public void setLightClipPlanesEnabled(boolean enabled)
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.

Specified by:
setLightClipPlanesEnabled in interface IPass

getLightClipPlanesEnabled

public boolean getLightClipPlanesEnabled()
Gets whether or not this pass will be clipped by user clips planes bounding the area covered by the light.

Specified by:
getLightClipPlanesEnabled in interface IPass

setIlluminationStage

public void setIlluminationStage(IlluminationStage is)
Manually set which illumination stage this pass is a member of.

Specified by:
setIlluminationStage in interface IPass

getIlluminationStage

public IlluminationStage getIlluminationStage()
Specified by:
getIlluminationStage in interface IPass

getDirtyHashList

public static IPass.IPassSet getDirtyHashList()
Static method to retrieve all the Passes which need their hash values recalculated.


getPassGraveyard

public static IPass.IPassSet getPassGraveyard()
Static method to retrieve all the Passes which are pending deletion.


clearDirtyHashList

public static void clearDirtyHashList()
Static method to reset the list of passes which need their hash values recalculated.


processPendingPassUpdates

public static void processPendingPassUpdates()
Process all dirty and pending deletion passes.


setHashFunction

public static void setHashFunction(Pass.BuiltinHashFunction builtin)
Sets one of the default hash functions to be used.


setHashFunction

public static void setHashFunction(IPass.IHashFunc hashFunc)
Set the hash function used for all passes.


getHashFunction

public static IPass.IHashFunc getHashFunction()
Get the hash function used for all passes.



Copyright © 2007 netAllied GmbH. All Rights Reserved.