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 IIndexBuffer |
createIndexBuffer()
Create an
IIndexBuffer instance to store polygon's face information. |
abstract RenderState |
createRenderState()
Create a
RenderState object. |
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)
Create a render target that renders to the native window.
|
ShaderProgram |
createShaderProgram(ShaderSource shaderSource,
java.util.List<VertexField> inputFields)
Create a
ShaderProgram object and using the vertex input in VertexDeclaration 's order |
ShaderProgram |
createShaderProgram(ShaderSource shaderSource,
VertexDeclaration vertexDeclaration)
Create a
ShaderProgram object and using the vertex input in VertexDeclaration 's order |
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 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 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 texturepublic abstract IRenderWindow createRenderWindow(RenderParameters parameters, long handle)
parameters
- Render parameters to create the render windowhandle
- public 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 RenderState createRenderState()
RenderState
object.public ShaderProgram createShaderProgram(ShaderSource shaderSource, java.util.List<VertexField> inputFields)
ShaderProgram
object and using the vertex input in VertexDeclaration
's ordershaderSource
- Shader's source code to compileinputFields
- Input vertex fields to vertex shaderpublic ShaderProgram createShaderProgram(ShaderSource shaderSource, VertexDeclaration vertexDeclaration)
ShaderProgram
object and using the vertex input in VertexDeclaration
's ordershaderSource
- Shader's source code to compilevertexDeclaration
- Input vertex fields to vertex shader