Class RoundRectOp

All Implemented Interfaces:
Rect2fc, Mesh

@Deprecated public class RoundRectOp extends MeshDrawOp
Deprecated.
  • Constructor Details

    • RoundRectOp

      public RoundRectOp(float[] color, Rect2f localRect, float cornerRadius, float strokeRadius, Matrix viewMatrix, boolean stroke)
      Deprecated.
  • Method Details

    • onMayChain

      protected boolean onMayChain(@Nonnull Op __)
      Deprecated.
      Overrides:
      onMayChain in class Op
    • onExecute

      public void onExecute(OpFlushState state, Rect2f chainBounds)
      Deprecated.
      Description copied from class: Op
      Issues the op chain's commands to OpsRenderPass.
      Specified by:
      onExecute in class Op
      Parameters:
      chainBounds - If this op is chained then chainBounds is the union of the bounds of all ops in the chain. Otherwise, this op's bounds.
    • onCreatePipelineInfo

      @Nonnull protected GraphicsPipelineDesc_Old onCreatePipelineInfo(ImageProxyView writeView, int pipelineFlags)
      Deprecated.
      Specified by:
      onCreatePipelineInfo in class MeshDrawOp
    • getVertexCount

      public int getVertexCount()
      Deprecated.
      Description copied from interface: Mesh
      Returns the number of vertices to draw in the batch.
    • getInstanceCount

      public int getInstanceCount()
      Deprecated.
      Description copied from interface: Mesh
      Returns the number of instances to draw in the batch.
    • setVertexBuffer

      public void setVertexBuffer(@SharedPtr @SharedPtr Buffer buffer, int baseVertex, int actualVertexCount)
      Deprecated.
      Description copied from interface: Mesh
      The callback method for MeshDrawTarget.makeVertexSpace(Mesh) results. The given GPU buffer will be kept by GpuBufferPool and moved to command buffer when the frame ends.
      Parameters:
      buffer - the raw ptr to the vertex buffer that will hold the vertices
      baseVertex - the offset into buffer of the first vertex, in units of the size of a vertex from layout param
      actualVertexCount - the actual number of vertices allocated
    • setInstanceBuffer

      public void setInstanceBuffer(@SharedPtr @SharedPtr Buffer buffer, int baseInstance, int actualInstanceCount)
      Deprecated.
      Description copied from interface: Mesh
      The callback method for MeshDrawTarget.makeInstanceSpace(Mesh) results. The given GPU buffer will be kept by GpuBufferPool and moved to command buffer when the frame ends.
      Parameters:
      buffer - the raw ptr to the instance buffer that will hold the instances
      baseInstance - the offset into buffer of the first instance, in units of the size of an instance from layout param
      actualInstanceCount - the actual number of instances allocated
    • onPrepareDraws

      protected void onPrepareDraws(MeshDrawTarget target)
      Deprecated.
      Specified by:
      onPrepareDraws in class MeshDrawOp