Package icyllis.arc3d.opengl
Class GLOpsRenderPass
java.lang.Object
icyllis.arc3d.engine.OpsRenderPass
icyllis.arc3d.opengl.GLOpsRenderPass
-
Field Summary
Fields inherited from class icyllis.arc3d.engine.OpsRenderPass
mRenderTarget, mSurfaceOrigin
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
begin()
void
clearColor
(int left, int top, int right, int bottom, float red, float green, float blue, float alpha) Clear the owned render target.void
clearStencil
(int left, int top, int right, int bottom, boolean insideMask) Same asOpsRenderPass.clearColor(int, int, int, int, float, float, float, float)
but modifies the stencil.void
end()
protected GLDevice
protected void
onBindBuffers
(@RawPtr Buffer indexBuffer, int indexType, @RawPtr Buffer vertexBuffer, int vertexStreamOffset, @RawPtr Buffer instanceBuffer, int instanceStreamOffset) protected boolean
onBindPipeline
(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) protected void
onDraw
(int vertexCount, int baseVertex) protected void
onDrawIndexed
(int indexCount, int baseIndex, int baseVertex) protected void
onDrawIndexedInstanced
(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) protected void
onDrawInstanced
(int instanceCount, int baseInstance, int vertexCount, int baseVertex) set
(GpuRenderTarget renderTarget, Rect2i bounds, int origin, byte colorOps, byte stencilOps, float[] clearColor) Methods inherited from class icyllis.arc3d.engine.OpsRenderPass
bindBuffers, bindPipeline, bindTexture, bindTextures, draw, drawIndexed, drawIndexedInstanced, drawInstanced, set
-
Constructor Details
-
GLOpsRenderPass
-
-
Method Details
-
getDevice
- Specified by:
getDevice
in classOpsRenderPass
-
set
public GLOpsRenderPass set(GpuRenderTarget renderTarget, Rect2i bounds, int origin, byte colorOps, byte stencilOps, float[] clearColor) -
begin
public void begin()- Overrides:
begin
in classOpsRenderPass
-
end
public void end()- Overrides:
end
in classOpsRenderPass
-
onBindPipeline
protected boolean onBindPipeline(GraphicsPipelineDesc_Old graphicsPipelineDesc, GraphicsPipeline pipeline, Rect2fc drawBounds) - Specified by:
onBindPipeline
in classOpsRenderPass
-
clearColor
public void clearColor(int left, int top, int right, int bottom, float red, float green, float blue, float alpha) Description copied from class:OpsRenderPass
Clear the owned render target. Clears the full target if 'scissor' is disabled, otherwise it is restricted to 'scissor'.- Overrides:
clearColor
in classOpsRenderPass
-
clearStencil
public void clearStencil(int left, int top, int right, int bottom, boolean insideMask) Description copied from class:OpsRenderPass
Same asOpsRenderPass.clearColor(int, int, int, int, float, float, float, float)
but modifies the stencil.- Overrides:
clearStencil
in classOpsRenderPass
-
onBindBuffers
protected void onBindBuffers(@RawPtr @RawPtr Buffer indexBuffer, int indexType, @RawPtr @RawPtr Buffer vertexBuffer, int vertexStreamOffset, @RawPtr @RawPtr Buffer instanceBuffer, int instanceStreamOffset) - Specified by:
onBindBuffers
in classOpsRenderPass
-
onDraw
protected void onDraw(int vertexCount, int baseVertex) - Specified by:
onDraw
in classOpsRenderPass
-
onDrawIndexed
protected void onDrawIndexed(int indexCount, int baseIndex, int baseVertex) - Specified by:
onDrawIndexed
in classOpsRenderPass
-
onDrawInstanced
protected void onDrawInstanced(int instanceCount, int baseInstance, int vertexCount, int baseVertex) - Specified by:
onDrawInstanced
in classOpsRenderPass
-
onDrawIndexedInstanced
protected void onDrawIndexedInstanced(int indexCount, int baseIndex, int instanceCount, int baseInstance, int baseVertex) - Specified by:
onDrawIndexedInstanced
in classOpsRenderPass
-