org.ogre4j
Interface IPass

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject
All Known Implementing Classes:
Pass

public interface IPass
extends INativeObject, IResourceAllocatedObject


Nested Class Summary
static interface IPass.IConstTextureUnitStateIterator
           
static interface IPass.IContentTypeLookup
           
static interface IPass.IHashFunc
           
static interface IPass.IPassSet
           
static interface IPass.ITextureUnitStateIterator
           
static interface IPass.ITextureUnitStates
           
 
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.
 ITextureUnitState createTextureUnitState()
          Inserts a new object into the .
 ITextureUnitState createTextureUnitState(java.lang.String textureName, int texCoordSet)
          Inserts a new object into the .
 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.
 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
 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()
           
 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)
           
 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.
 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 interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

operatorAssignment

IPass operatorAssignment(IPass oth)

isProgrammable

boolean isProgrammable()

hasVertexProgram

boolean hasVertexProgram()

hasFragmentProgram

boolean hasFragmentProgram()

hasGeometryProgram

boolean hasGeometryProgram()

hasShadowCasterVertexProgram

boolean hasShadowCasterVertexProgram()

hasShadowReceiverVertexProgram

boolean hasShadowReceiverVertexProgram()

hasShadowReceiverFragmentProgram

boolean hasShadowReceiverFragmentProgram()

getIndex

int getIndex()

setName

void setName(java.lang.String name)

getName

java.lang.String getName()

setAmbient

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


setAmbient

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


setDiffuse

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


setDiffuse

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


setSpecular

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


setSpecular

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


setShininess

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


setSelfIllumination

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


setSelfIllumination

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


setVertexColourTracking

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


getPointSize

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


setPointSize

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


setPointSpritesEnabled

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


getPointSpritesEnabled

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


setPointAttenuation

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


isPointAttenuationEnabled

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


getPointAttenuationConstant

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


getPointAttenuationLinear

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


getPointAttenuationQuadratic

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


setPointMinSize

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


getPointMinSize

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


setPointMaxSize

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


getPointMaxSize

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


getAmbient

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


getDiffuse

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


getSpecular

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


getSelfIllumination

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


getShininess

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


getVertexColourTracking

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


createTextureUnitState

ITextureUnitState createTextureUnitState()
Inserts a new object into the .


createTextureUnitState

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


addTextureUnitState

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


getTextureUnitState

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


getTextureUnitState

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


getTextureUnitState_const

ITextureUnitState getTextureUnitState_const(int index)

getTextureUnitState_const

ITextureUnitState getTextureUnitState_const(java.lang.String name)

getTextureUnitStateIndex

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


getTextureUnitStateIterator

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


getTextureUnitStateIterator_const

void getTextureUnitStateIterator_const(IPass.IConstTextureUnitStateIterator returnValue)

removeTextureUnitState

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


removeAllTextureUnitStates

void removeAllTextureUnitStates()
Removes all texture unit settings.


getNumTextureUnitStates

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


setSceneBlending

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


setSeparateSceneBlending

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


setSceneBlending

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


setSeparateSceneBlending

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


hasSeparateSceneBlending

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


getSourceBlendFactor

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


getDestBlendFactor

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


getSourceBlendFactorAlpha

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


getDestBlendFactorAlpha

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


isTransparent

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


setDepthCheckEnabled

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


getDepthCheckEnabled

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


setDepthWriteEnabled

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


getDepthWriteEnabled

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


setDepthFunction

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


getDepthFunction

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


setColourWriteEnabled

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


getColourWriteEnabled

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


setCullingMode

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


getCullingMode

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


setManualCullingMode

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


getManualCullingMode

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


setLightingEnabled

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


getLightingEnabled

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


setMaxSimultaneousLights

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


getMaxSimultaneousLights

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


setStartLight

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


getStartLight

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


setShadingMode

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


getShadingMode

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


setPolygonMode

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


getPolygonMode

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


setPolygonModeOverrideable

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


getPolygonModeOverrideable

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


setFog

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


getFogOverride

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


getFogMode

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


getFogColour

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


getFogStart

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


getFogEnd

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


getFogDensity

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


setDepthBias

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


getDepthBiasConstant

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


getDepthBiasSlopeScale

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


setIterationDepthBias

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


getIterationDepthBias

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


setAlphaRejectSettings

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


setAlphaRejectFunction

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


setAlphaRejectValue

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


getAlphaRejectFunction

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


getAlphaRejectValue

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


setAlphaToCoverageEnabled

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


isAlphaToCoverageEnabled

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


setTransparentSortingEnabled

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


getTransparentSortingEnabled

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


setIteratePerLight

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.


getIteratePerLight

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


getRunOnlyForOneLightType

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


getOnlyLightType

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


setLightCountPerIteration

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


getLightCountPerIteration

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


getParent

ITechnique getParent()

getResourceGroup

java.lang.String getResourceGroup()

setVertexProgram

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


setVertexProgramParameters

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


getVertexProgramName

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


getVertexProgramParameters

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


getVertexProgram

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


setShadowCasterVertexProgram

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


setShadowCasterVertexProgramParameters

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


getShadowCasterVertexProgramName

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


getShadowCasterVertexProgramParameters

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


getShadowCasterVertexProgram

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


setShadowReceiverVertexProgram

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


setShadowReceiverVertexProgramParameters

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


setShadowReceiverFragmentProgram

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


setShadowReceiverFragmentProgramParameters

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


getShadowReceiverVertexProgramName

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


getShadowReceiverVertexProgramParameters

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


getShadowReceiverVertexProgram

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


getShadowReceiverFragmentProgramName

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


getShadowReceiverFragmentProgramParameters

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


getShadowReceiverFragmentProgram

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


setFragmentProgram

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


setFragmentProgramParameters

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


getFragmentProgramName

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


getFragmentProgramParameters

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


getFragmentProgram

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


setGeometryProgram

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


setGeometryProgramParameters

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


getGeometryProgramName

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


getGeometryProgramParameters

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


getGeometryProgram

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


_split

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


_notifyIndex

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


_prepare

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


_unprepare

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


_load

void _load()
Internal method for loading this pass.


_unload

void _unload()
Internal method for unloading this pass.


isLoaded

boolean isLoaded()

getHash

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


_dirtyHash

void _dirtyHash()

_recalculateHash

void _recalculateHash()
Internal method for recalculating the hash.


_notifyNeedsRecompile

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


_updateAutoParamsNoLights

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


_updateAutoParamsLightsOnly

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


_getTextureUnitWithContentTypeIndex

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


setTextureFiltering

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


setTextureAnisotropy

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


setNormaliseNormals

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


getNormaliseNormals

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


queueForDeletion

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


isAmbientOnly

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


setPassIterationCount

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


getPassIterationCount

int getPassIterationCount()
Gets the pass iteration count value.


applyTextureAliases

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.


setLightScissoringEnabled

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.


getLightScissoringEnabled

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


setLightClipPlanesEnabled

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


getLightClipPlanesEnabled

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


setIlluminationStage

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


getIlluminationStage

IlluminationStage getIlluminationStage()


Copyright © 2007 netAllied GmbH. All Rights Reserved.