public abstract class RenderFactory
extends java.lang.Object
Constructor and Description |
---|
RenderFactory() |
Modifier and Type | Method and Description |
---|---|
abstract IRenderTexture |
createCubeRenderTexture(RenderParameters parameters,
int width,
int height)
Create a render target contains 1 cube texture
|
abstract IDescriptorSet |
createDescriptorSet(ShaderProgram shader)
Create the descriptor set for specified shader program.
|
abstract IIndexBuffer |
createIndexBuffer()
Create an
IIndexBuffer instance to store polygon's face information. |
abstract IPipeline |
createPipeline(ShaderProgram shader,
RenderState renderState,
VertexDeclaration vertexDeclaration,
DrawOperation drawOperation)
Create a preconfigured graphics pipeline with preconfigured shader/render state/vertex declaration and draw operations.
|
abstract IRenderTexture |
createRenderTexture(RenderParameters parameters,
int width,
int height)
Create a render target contains 1 targets that renders to the texture
|
abstract IRenderTexture |
createRenderTexture(RenderParameters parameters,
int targets,
int width,
int height)
Create a render target that renders to the texture
|
abstract IRenderWindow |
createRenderWindow(RenderParameters parameters,
long handle)
Deprecated.
|
abstract IRenderWindow |
createRenderWindow(RenderParameters parameters,
WindowHandle handle)
Create a render target that renders to the native window.
|
abstract ShaderProgram |
createShaderProgram(ShaderSource shaderSource)
Create a
ShaderProgram object |
ITextureUnit |
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 IBuffer |
createUniformBuffer(int size)
Create a new uniform buffer in GPU side with preallocated size.
|
abstract IVertexBuffer |
createVertexBuffer(VertexDeclaration declaration)
Create an
IVertexBuffer instance to store polygon's vertex information. |
public abstract IRenderTexture createRenderTexture(RenderParameters parameters, int targets, int width, int height)
parameters
- Render parameters to create the render texturetargets
- How many color output targetswidth
- The width of the render textureheight
- The height of the render texturepublic abstract IRenderTexture createRenderTexture(RenderParameters parameters, int width, int height)
parameters
- Render parameters to create the render texturewidth
- The width of the render textureheight
- The height of the render texturepublic abstract IDescriptorSet createDescriptorSet(ShaderProgram shader)
shader
- The shader programpublic abstract IRenderTexture createCubeRenderTexture(RenderParameters parameters, int width, int height)
parameters
- Render parameters to create the render texturewidth
- The width of the render textureheight
- The height of the render texture@Deprecated public abstract IRenderWindow createRenderWindow(RenderParameters parameters, long handle)
parameters
- Render parameters to create the render windowhandle
- public abstract IRenderWindow createRenderWindow(RenderParameters parameters, WindowHandle handle)
parameters
- Render parameters to create the render windowhandle
- The handle of the window to renderpublic abstract IVertexBuffer createVertexBuffer(VertexDeclaration declaration)
IVertexBuffer
instance to store polygon's vertex information.declaration
- public abstract IIndexBuffer createIndexBuffer()
IIndexBuffer
instance to store polygon's face information.public abstract ITextureUnit createTextureUnit(TextureType textureType)
textureType
- Type of the texturepublic ITextureUnit createTextureUnit()
public abstract ShaderProgram createShaderProgram(ShaderSource shaderSource)
ShaderProgram
objectshaderSource
- The source code of the shaderpublic abstract IPipeline createPipeline(ShaderProgram shader, RenderState renderState, VertexDeclaration vertexDeclaration, DrawOperation drawOperation)
shader
- The shader used in the renderingrenderState
- The render state used in the renderingvertexDeclaration
- The vertex declaration of input vertex datadrawOperation
- Draw operationpublic abstract IBuffer createUniformBuffer(int size)
size
- The size of the uniform buffer