Renderer
Inheritance: java.lang.Object
All Implemented Interfaces: java.io.Closeable
public abstract class Renderer implements Closeable
The context about renderer.
Methods
Method | Description |
---|---|
clearCache() | Manually clear the cache. |
close() | Dispose the Renderer and all related resources |
createRenderer() | Creates a new Renderer with default profile. |
equals(Object arg0) | |
execute(PostProcessing postProcessing, IRenderTarget result) | Execute an post processing on specified render target |
getAssetDirectories() | Directories that stored external assets |
getClass() | |
getEnableShadows() | Gets whether to enable shadows. |
getFallbackEntityRenderer() | Gets the fallback entity renderer when the entity has no special renderer defined. |
getFrustum() | Gets the frustum that used to provide view matrix. |
getMaterial() | Gets the material that used to provide material information used by shaders. |
getNode() | Gets the getNode instance used to provide world transform matrix. |
getPostProcessing(String name) | Gets a built-in post-processor that supported by the renderer. |
getPostProcessings() | Active post-processing chain |
getPresetShaders() | Gets the preset shader set |
getRenderFactory() | Gets the factory to build render-related objects. |
getRenderStage() | Gets the current render stage. |
getRenderTarget() | Specify the render target that the following render operations will be performed on. |
getShader() | Gets the shader instance used for rendering the geometry. |
getShaderSet() | Gets the shader set that used to render the scene |
getVariables() | Access to the internal variables used for rendering |
hashCode() | |
notify() | |
notifyAll() | |
registerEntityRenderer(EntityRenderer renderer) | Register the entity renderer for specified entity |
render(IRenderTarget renderTarget) | Render the specified target |
setEnableShadows(boolean value) | Sets whether to enable shadows. |
setFallbackEntityRenderer(EntityRenderer value) | Sets the fallback entity renderer when the entity has no special renderer defined. |
setFrustum(Frustum value) | Sets the frustum that used to provide view matrix. |
setMaterial(Material value) | Sets the material that used to provide material information used by shaders. |
setNode(Node value) | Sets the getNode instance used to provide world transform matrix. |
setPresetShaders(PresetShaders value) | Sets the preset shader set |
setShader(ShaderProgram value) | Sets the shader instance used for rendering the geometry. |
setShaderSet(ShaderSet value) | Sets the shader set that used to render the scene |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
clearCache()
public void clearCache()
Manually clear the cache. Aspose.3D will cache some objects like materials/geometries into internal types that compatible with the render pipeline. This should be manually called when scene has major changes.
close()
public void close()
Dispose the Renderer and all related resources
createRenderer()
public static Renderer createRenderer()
Creates a new Renderer with default profile.
Returns: Renderer
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
execute(PostProcessing postProcessing, IRenderTarget result)
public abstract void execute(PostProcessing postProcessing, IRenderTarget result)
Execute an post processing on specified render target
Parameters:
Parameter | Type | Description |
---|---|---|
postProcessing | PostProcessing | |
result | IRenderTarget |
getAssetDirectories()
public ArrayList<String> getAssetDirectories()
Directories that stored external assets
Returns: java.util.ArrayList<java.lang.String>
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEnableShadows()
public boolean getEnableShadows()
Gets whether to enable shadows.
Returns: boolean
getFallbackEntityRenderer()
public EntityRenderer getFallbackEntityRenderer()
Gets the fallback entity renderer when the entity has no special renderer defined.
Returns: EntityRenderer
getFrustum()
public Frustum getFrustum()
Gets the frustum that used to provide view matrix.
Returns: Frustum
getMaterial()
public Material getMaterial()
Gets the material that used to provide material information used by shaders.
Returns: Material
getNode()
public Node getNode()
Gets the getNode instance used to provide world transform matrix.
Returns: Node
getPostProcessing(String name)
public PostProcessing getPostProcessing(String name)
Gets a built-in post-processor that supported by the renderer.
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: PostProcessing
getPostProcessings()
public List<PostProcessing> getPostProcessings()
Active post-processing chain
Returns: java.util.List<com.aspose.threed.PostProcessing>
getPresetShaders()
public PresetShaders getPresetShaders()
Gets the preset shader set
Returns: PresetShaders
getRenderFactory()
public abstract RenderFactory getRenderFactory()
Gets the factory to build render-related objects.
Returns: RenderFactory
getRenderStage()
public RenderStage getRenderStage()
Gets the current render stage.
Returns: RenderStage
getRenderTarget()
public IRenderTarget getRenderTarget()
Specify the render target that the following render operations will be performed on.
Returns: IRenderTarget
getShader()
public ShaderProgram getShader()
Gets the shader instance used for rendering the geometry.
Returns: ShaderProgram
getShaderSet()
public ShaderSet getShaderSet()
Gets the shader set that used to render the scene
Returns: ShaderSet
getVariables()
public RendererVariableManager getVariables()
Access to the internal variables used for rendering
Returns: RendererVariableManager
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
registerEntityRenderer(EntityRenderer renderer)
public void registerEntityRenderer(EntityRenderer renderer)
Register the entity renderer for specified entity
Parameters:
Parameter | Type | Description |
---|---|---|
renderer | EntityRenderer |
render(IRenderTarget renderTarget)
public void render(IRenderTarget renderTarget)
Render the specified target
Parameters:
Parameter | Type | Description |
---|---|---|
renderTarget | IRenderTarget |
setEnableShadows(boolean value)
public void setEnableShadows(boolean value)
Sets whether to enable shadows.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | New value |
setFallbackEntityRenderer(EntityRenderer value)
public void setFallbackEntityRenderer(EntityRenderer value)
Sets the fallback entity renderer when the entity has no special renderer defined.
Parameters:
Parameter | Type | Description |
---|---|---|
value | EntityRenderer | New value |
setFrustum(Frustum value)
public void setFrustum(Frustum value)
Sets the frustum that used to provide view matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Frustum | New value |
setMaterial(Material value)
public void setMaterial(Material value)
Sets the material that used to provide material information used by shaders.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Material | New value |
setNode(Node value)
public void setNode(Node value)
Sets the getNode instance used to provide world transform matrix.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Node | New value |
setPresetShaders(PresetShaders value)
public void setPresetShaders(PresetShaders value)
Sets the preset shader set
Parameters:
Parameter | Type | Description |
---|---|---|
value | PresetShaders | New value |
setShader(ShaderProgram value)
public void setShader(ShaderProgram value)
Sets the shader instance used for rendering the geometry.
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderProgram | New value |
setShaderSet(ShaderSet value)
public void setShaderSet(ShaderSet value)
Sets the shader set that used to render the scene
Parameters:
Parameter | Type | Description |
---|---|---|
value | ShaderSet | New value |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |