RenderFactory
Overview
RenderFactory is a class in Aspose.3D FOSS for .NET.
RenderFactory creates all resources that represented in rendering pipeline.
This class provides 12 methods for working with RenderFactory objects in .NET programs.
Available methods include: CreateCubeRenderTexture, CreateDescriptorSet, CreateIndexBuffer, CreatePipeline, CreateRenderTexture, CreateRenderWindow, CreateShaderProgram, CreateTextureUnit, CreateUniformBuffer, CreateVertexBuffer.
All public members are accessible to any .NET application after installing the Aspose.3D FOSS for .NET package.
Methods
| Signature | Description |
|---|---|
CreateRenderTexture(parameters: RenderParameters, targets: int, width: int, height: int) | Create a render target that renders to the texture |
CreateRenderTexture(parameters: RenderParameters, width: int, height: int) | Create a render target contains 1 targets that renders to the texture |
CreateDescriptorSet(shader: ShaderProgram) | Create the descriptor set for specified shader program. |
CreateCubeRenderTexture(parameters: RenderParameters, width: int, height: int) | Create a render target contains 1 cube texture |
CreateRenderWindow(parameters: RenderParameters, handle: WindowHandle) | Create a render target that renders to the native window. |
CreateVertexBuffer(declaration: VertexDeclaration) | Create an IVertexBuffer instance to store polygon’s vertex information. |
CreateIndexBuffer() | Create an IIndexBuffer instance to store polygon’s face information. |
CreateTextureUnit(textureType: TextureType) | Create a texture unit that can be accessed by shader. |
CreateTextureUnit() | Create a 2D texture unit that can be accessed by shader. |
CreateShaderProgram(shaderSource: ShaderSource) | Create a ShaderProgram object |
CreatePipeline(shader: ShaderProgram, renderState: RenderState, vertexDeclaration: VertexDeclaration, drawOperation: DrawOperation) | Create a preconfigured graphics pipeline with preconfigured shader/render state/vertex declaration and draw operations. |
CreateUniformBuffer(size: int) | Create a new uniform buffer in GPU side with pre-allocated size. |