Package com.aspose.threed
Class RenderFactory
- java.lang.Object
-
- com.aspose.threed.RenderFactory
-
public abstract class RenderFactory extends java.lang.Object
RenderFactory creates all resources that represented in rendering pipeline.
-
-
Constructor Summary
Constructors Constructor Description RenderFactory()
-
Method Summary
Modifier and Type Method Description abstract IRenderTexture
createCubeRenderTexture(RenderParameters parameters, int width, int height)
Create a render target contains 1 cube textureabstract IIndexBuffer
createIndexBuffer()
Create anIIndexBuffer
instance to store polygon's face information.abstract RenderState
createRenderState()
Create aRenderState
object.abstract IRenderTexture
createRenderTexture(RenderParameters parameters, int width, int height)
Create a render target contains 1 targets that renders to the textureabstract IRenderTexture
createRenderTexture(RenderParameters parameters, int targets, int width, int height)
Create a render target that renders to the textureabstract IRenderWindow
createRenderWindow(RenderParameters parameters, long handle)
Create a render target that renders to the native window.ShaderProgram
createShaderProgram(ShaderSource shaderSource, VertexDeclaration vertexDeclaration)
Create aShaderProgram
object and using the vertex input inVertexDeclaration
's orderShaderProgram
createShaderProgram(ShaderSource shaderSource, java.util.List<VertexField> inputFields)
Create aShaderProgram
object and using the vertex input inVertexDeclaration
's orderITextureUnit
createTextureUnit()
Create a 2D texture unit that can be accessed by shader.abstract ITextureUnit
createTextureUnit(TextureType textureType)
Create a texture unit that can be accessed by shader.abstract IVertexBuffer
createVertexBuffer(VertexDeclaration declaration)
Create anIVertexBuffer
instance to store polygon's vertex information.
-
-
-
Method Detail
-
createRenderTexture
public abstract IRenderTexture createRenderTexture(RenderParameters parameters, int targets, int width, int height)
Create a render target that renders to the texture- Parameters:
parameters
- Render parameters to create the render texturetargets
- How many color output targetswidth
- The width of the render textureheight
- The height of the render texture
-
createRenderTexture
public abstract IRenderTexture createRenderTexture(RenderParameters parameters, int width, int height)
Create a render target contains 1 targets that renders to the texture- Parameters:
parameters
- Render parameters to create the render texturewidth
- The width of the render textureheight
- The height of the render texture
-
createCubeRenderTexture
public abstract IRenderTexture createCubeRenderTexture(RenderParameters parameters, int width, int height)
Create a render target contains 1 cube texture- Parameters:
parameters
- Render parameters to create the render texturewidth
- The width of the render textureheight
- The height of the render texture
-
createRenderWindow
public abstract IRenderWindow createRenderWindow(RenderParameters parameters, long handle)
Create a render target that renders to the native window.- Parameters:
parameters
- Render parameters to create the render windowhandle
-
-
createVertexBuffer
public abstract IVertexBuffer createVertexBuffer(VertexDeclaration declaration)
Create anIVertexBuffer
instance to store polygon's vertex information.- Parameters:
declaration
-
-
createIndexBuffer
public abstract IIndexBuffer createIndexBuffer()
Create anIIndexBuffer
instance to store polygon's face information.
-
createTextureUnit
public abstract ITextureUnit createTextureUnit(TextureType textureType)
Create a texture unit that can be accessed by shader.- Parameters:
textureType
- Type of the texture
-
createTextureUnit
public ITextureUnit createTextureUnit()
Create a 2D texture unit that can be accessed by shader.
-
createRenderState
public abstract RenderState createRenderState()
Create aRenderState
object.
-
createShaderProgram
public ShaderProgram createShaderProgram(ShaderSource shaderSource, java.util.List<VertexField> inputFields)
Create aShaderProgram
object and using the vertex input inVertexDeclaration
's order- Parameters:
shaderSource
- Shader's source code to compileinputFields
- Input vertex fields to vertex shader
-
createShaderProgram
public ShaderProgram createShaderProgram(ShaderSource shaderSource, VertexDeclaration vertexDeclaration)
Create aShaderProgram
object and using the vertex input inVertexDeclaration
's order- Parameters:
shaderSource
- Shader's source code to compilevertexDeclaration
- Input vertex fields to vertex shader
-
-