com.aspose.threed

Interfaces

Classes

Enums

Exceptions

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 Detail

      • RenderFactory

        public RenderFactory()
    • 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 texture
        targets - How many color output targets
        width - The width of the render texture
        height - 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 texture
        width - The width of the render texture
        height - 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 texture
        width - The width of the render texture
        height - 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 window
        handle -
      • createIndexBuffer

        public abstract IIndexBuffer createIndexBuffer()
        Create an IIndexBuffer 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.
      • createShaderProgram

        public ShaderProgram createShaderProgram(ShaderSource shaderSource,
                                                 java.util.List<VertexField> inputFields)
        Create a ShaderProgram object and using the vertex input in VertexDeclaration's order
        Parameters:
        shaderSource - Shader's source code to compile
        inputFields - Input vertex fields to vertex shader