Class ImmediateModeRenderSystem

java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.render.system.ImmediateModeRenderSystem
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IRenderSystem, Comparable<IRenderSystem>
Direct Known Subclasses:
InstancedRenderSystem, LineRenderSystem, ParticleEffectsRenderer, PointCloudRenderer, PointCloudRenderSystem, PointPrimitiveRenderSystem, PrimitiveVertexRenderSystem, StarSetPointRenderer, VariableSetPointRenderer

public abstract class ImmediateModeRenderSystem extends AbstractRenderSystem
  • Field Details Link icon

  • Constructor Details Link icon

  • Method Details Link icon

    • createMeshData Link icon

      protected int createMeshData()
      Creates a new mesh data object and adds it to the first available index in the meshes array
      Returns:
      The index of the new mesh data in meshes
    • clearMeshes Link icon

      public void clearMeshes()
    • clearMeshData Link icon

      public void clearMeshData(int i)
      Clears the mesh data at the index i
      Parameters:
      i - The index of the mesh data to remove
    • initVertices Link icon

      protected abstract void initVertices()
    • inGpu Link icon

      protected boolean inGpu(IRenderable renderable)
    • setInGpu Link icon

      protected void setInGpu(IRenderable renderable, boolean state)
    • setOffset Link icon

      protected void setOffset(IRenderable renderable, int offset)
    • getOffset Link icon

      protected int getOffset(IRenderable renderable)
    • setCount Link icon

      protected void setCount(IRenderable renderable, int count)
    • getCount Link icon

      protected int getCount(IRenderable renderable)
    • dispose Link icon

      public void dispose()
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable
      Overrides:
      dispose in class AbstractRenderSystem
    • ensureTempVertsSize Link icon

      protected void ensureTempVertsSize(int size)
      This function makes sure that the tempVerts array has at least the given size. After calling this function, the elements of tempVerts may have been cleared.
      Parameters:
      size - The size to ensure
    • ensureTempIndicesSize Link icon

      protected void ensureTempIndicesSize(int size)
      This function makes sure that the tempIndices array has at least the given size. After calling this function, the elements of tempIndices may have been cleared.
      Parameters:
      size - The size to ensure
    • color Link icon

      public void color(com.badlogic.gdx.graphics.Color color)
    • color Link icon

      public void color(float r, float g, float b, float a)
    • color Link icon

      public void color(double r, double g, double b, double a)
    • color Link icon

      public void color(float colorBits)
    • vertex Link icon

      public void vertex(float x, float y, float z)
    • addAffineTransformUniforms Link icon

      protected void addAffineTransformUniforms(ExtShaderProgram program, AffineTransformations affine)