Package icyllis.arc3d.granite

# Class RendererProvider

java.lang.Object
icyllis.arc3d.granite.RendererProvider

public class RendererProvider extends Object
Granite defines a limited set of renderers in order to increase the likelihood of batching across draw calls, and reducing the number of shader permutations required. These Renderers are stateless singletons and remain alive for the life of the Context and its Recorders.

Because Renderers are immutable and the defined Renderers are created at context initialization, RendererProvider is trivially thread-safe.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `RendererProvider(Caps caps, StaticBufferManager staticBufferManager)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `GeometryRenderer`
  `getArc(int type)`
  `GeometryRenderer`
  `getRasterText(int maskFormat)`
  `GeometryRenderer`
  `getSimpleBox(boolean aa)`
  `GeometryRenderer`
  `getVertices(int vertexMode, boolean hasColor, boolean hasTexCoords)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### RendererProvider

    public RendererProvider(Caps caps, StaticBufferManager staticBufferManager)

- ## Method Details

  - ### getSimpleBox

    public GeometryRenderer getSimpleBox(boolean aa)

  - ### getRasterText

    public GeometryRenderer getRasterText(int maskFormat)

  - ### getArc

    public GeometryRenderer getArc(int type)

  - ### getVertices

    public GeometryRenderer getVertices(int vertexMode, boolean hasColor, boolean hasTexCoords)