RenderFactory
Inheritance: java.lang.Object
public abstract class RenderFactory
RenderFactoryはレンダリングパイプラインで表されるすべてのリソースを作成します。
コンストラクタ
| コンストラクタ | 説明 |
|---|---|
| RenderFactory() |
メソッド
RenderFactory()
public RenderFactory()
createCubeRenderTexture(RenderParameters parameters, int width, int height)
public abstract IRenderTexture createCubeRenderTexture(RenderParameters parameters, int width, int height)
1 つのキューブテクスチャを含むレンダーターゲットを作成します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| parameters | RenderParameters | レンダーテクスチャを作成するためのレンダー パラメータ |
| 幅 | int | レンダーテクスチャの幅 |
| 高さ | int | レンダーテクスチャの高さ |
Returns: IRenderTexture
createDescriptorSet(ShaderProgram shader)
public abstract IDescriptorSet createDescriptorSet(ShaderProgram shader)
指定されたシェーダープログラム用のディスクリプタセットを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| shader | ShaderProgram | シェーダープログラム |
Returns: IDescriptorSet - A new descriptor set instance
createIndexBuffer()
public abstract IIndexBuffer createIndexBuffer()
ポリゴンの面情報を格納するための IIndexBuffer インスタンスを作成します。
Returns: IIndexBuffer
createPipeline(ShaderProgram shader, RenderState renderState, VertexDeclaration vertexDeclaration, DrawOperation drawOperation)
public abstract IPipeline createPipeline(ShaderProgram shader, RenderState renderState, VertexDeclaration vertexDeclaration, DrawOperation drawOperation)
事前設定されたシェーダー/レンダー状態/頂点宣言と描画操作を備えた、事前構成されたグラフィックスパイプラインを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| shader | ShaderProgram | レンダリングで使用されるシェーダー |
| renderState | RenderState | レンダリングで使用されるレンダー状態 |
| vertexDeclaration | VertexDeclaration | 入力頂点データの頂点宣言 |
| drawOperation | DrawOperation | 描画操作 |
Returns: IPipeline - A new pipeline instance
createRenderTexture(RenderParameters parameters, int width, int height)
public abstract IRenderTexture createRenderTexture(RenderParameters parameters, int width, int height)
テクスチャにレンダリングする 1 つのターゲットを含むレンダーターゲットを作成します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| parameters | RenderParameters | レンダーテクスチャを作成するためのレンダー パラメータ |
| 幅 | int | レンダーテクスチャの幅 |
| 高さ | int | レンダーテクスチャの高さ |
Returns: IRenderTexture
createRenderTexture(RenderParameters parameters, int targets, int width, int height)
public abstract IRenderTexture createRenderTexture(RenderParameters parameters, int targets, int width, int height)
テクスチャにレンダリングするレンダーターゲットを作成します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| parameters | RenderParameters | レンダーテクスチャを作成するためのレンダー パラメータ |
| ターゲット | int | カラー出力ターゲットの数 |
| 幅 | int | レンダーテクスチャの幅 |
| 高さ | int | レンダーテクスチャの高さ |
Returns: IRenderTexture
createRenderWindow(RenderParameters parameters, WindowHandle handle)
public abstract IRenderWindow createRenderWindow(RenderParameters parameters, WindowHandle handle)
ネイティブウィンドウにレンダリングするレンダーターゲットを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| parameters | RenderParameters | レンダーウィンドウを作成するためのレンダーパラメータ |
| handle | WindowHandle | レンダー対象ウィンドウのハンドル |
Returns: IRenderWindow
createShaderProgram(ShaderSource shaderSource)
public abstract ShaderProgram createShaderProgram(ShaderSource shaderSource)
ShaderProgram オブジェクトを作成します
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| shaderSource | ShaderSource | シェーダーのソースコード |
Returns: ShaderProgram
createTextureUnit()
public ITextureUnit createTextureUnit()
シェーダーからアクセス可能な 2D テクスチャユニットを作成します。
Returns: ITextureUnit
createTextureUnit(TextureType textureType)
public abstract ITextureUnit createTextureUnit(TextureType textureType)
シェーダーからアクセス可能なテクスチャユニットを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| textureType | TextureType | テクスチャのタイプ |
Returns: ITextureUnit
createUniformBuffer(int size)
public abstract IBuffer createUniformBuffer(int size)
事前に割り当てられたサイズで GPU 側に新しいユニフォームバッファを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| サイズ | int | ユニフォームバッファのサイズ |
Returns: IBuffer - The uniform buffer instance
createVertexBuffer(VertexDeclaration declaration)
public abstract IVertexBuffer createVertexBuffer(VertexDeclaration declaration)
ポリゴンの頂点情報を格納するための IVertexBuffer インスタンスを作成します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| declaration | VertexDeclaration |
Returns: IVertexBuffer
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
hashCode()
public native int hashCode()
Returns: int
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| arg0 | long | |
| arg1 | int |