Class VBORenderer

java.lang.Object
zombie.core.opengl.VBORenderer

public final class VBORenderer extends Object
  • Field Summary

    Fields
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAABB(float x, float y, float z, float width, float height, float length, float r, float g, float b)
     
    void
    addAABB(float x, float y, float z, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, float r, float g, float b, float a, boolean bQuads)
     
    void
    addAABB(float x, float y, float z, org.joml.Vector3f min, org.joml.Vector3f max, float r, float g, float b)
     
    void
    addBox(float width, float height, float length, float r, float g, float b, float a, ShaderProgram shaderProgram)
     
    void
    addCylinder(int drawStyle, int orientation, float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
     
    void
    addCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1)
     
    void
    addCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
     
    void
    addCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1)
     
    void
    addCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
     
    void
    addDisk(int drawStyle, int orientation, float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha)
     
    void
    addDisk_Fill(float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha)
     
     
    void
    addElement(float x, float y, float z, float r, float g, float b, float a)
     
    void
    addElement(float x, float y, float z, float u, float v, float r, float g, float b, float a)
     
    void
    addElementDepth(float x, float y, float z, float u, float v, float depth, float r, float g, float b, float a)
     
    void
    addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float a)
     
    void
    addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1)
     
    void
    addLineWithThickness(float x0, float y0, float z0, float x1, float y1, float z1, float thickness, float r, float g, float b, float a)
     
    void
    addQuad(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a)
     
    void
    addQuad(float x0, float y0, float u0, float v0, float x1, float y1, float u1, float v1, float z, float r, float g, float b, float a)
     
    void
    addQuad(float x0, float y0, float u0, float v0, float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float z, float r, float g, float b, float a)
     
    void
    addQuad(float x0, float y0, float z0, float u0, float v0, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float r, float g, float b, float a)
     
    void
    addQuadDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float x1, float y1, float z1, float u1, float v1, float depth1, float x2, float y2, float z2, float u2, float v2, float depth2, float x3, float y3, float z3, float u3, float v3, float depth3, float r, float g, float b, float a)
     
    void
    addRectOutline(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a)
     
    void
    addTorus(double r, double c, int rSeg, int cSeg, float r1, float g1, float b1, UI3DScene.Ray cameraRay)
     
    void
    addTriangle(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2, float r, float g, float b, float a)
     
    void
    addTriangle(float x0, float y0, float z0, float u0, float v0, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float r, float g, float b, float a)
     
    void
    addTriangleDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float x1, float y1, float z1, float u1, float v1, float depth1, float x2, float y2, float z2, float u2, float v2, float depth2, float r, float g, float b, float a)
     
    void
    addTriangleDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float alpha0, float x1, float y1, float z1, float u1, float v1, float depth1, float alpha1, float x2, float y2, float z2, float u2, float v2, float depth2, float alpha2, float r, float g, float b, float a)
     
    void
    cmdPopMatrix(int mode)
     
    void
    cmdPushAndLoadMatrix(int mode, org.joml.Matrix4f m)
     
    void
    cmdPushAndMultMatrix(int mode, org.joml.Matrix4f m)
     
    void
    cmdShader1f(int loc, float f1)
     
    void
    cmdShader1f(String loc, float f1)
     
    void
    cmdShader2f(int loc, float f1, float f2)
     
    void
    cmdShader2f(String loc, float f1, float f2)
     
    void
    cmdShader3f(String loc, float f1, float f2, float f3)
     
    void
    cmdShader4f(int loc, float f1, float f2, float f3, float f4)
     
    void
    cmdShader4f(String loc, float f1, float f2, float f3, float f4)
     
    void
     
    void
     
    void
     
     
    putByte(byte value)
     
    putFloat(float value)
     
    putInt(int value)
     
    putShort(short value)
     
    void
    reserve(int numElements)
     
    void
    setClampST(int S, int T)
     
    void
    setColor(float r, float g, float b, float a)
     
    void
    setDepth(float depth)
     
    void
    setDepthTest(boolean enable)
     
    void
     
    void
    setFloats1(int byteOffset, float f1)
     
    void
    setFloats2(int byteOffset, float f1, float f2)
     
    void
    setFloats3(int byteOffset, float f1, float f2, float f3)
     
    void
    setFloats4(int byteOffset, float f1, float f2, float f3, float f4)
     
    void
    setLineWidth(float width)
     
    void
    setMinMagFilters(int minFilter, int magFilter)
     
    void
    setMode(int mode)
     
    void
    setNormal(float x, float y, float z)
     
    void
    setOffset(float dx, float dy, float dz)
     
    void
     
    void
     
    void
    setUserDepth(float depth)
     
    void
     
    void
    setUV1(float u, float v)
     
    void
    setUV2(float u, float v)
     
    void
    setVertex(float x, float y, float z)
     
    void
     

    Methods inherited from class Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • VBORenderer

      public VBORenderer()
  • Method Details

    • getInstance

      public static VBORenderer getInstance()
    • setOffset

      public void setOffset(float dx, float dy, float dz)
    • addElement

      public VBORenderer addElement()
    • putByte

      public VBORenderer putByte(byte value)
    • putFloat

      public VBORenderer putFloat(float value)
    • putInt

      public VBORenderer putInt(int value)
    • putShort

      public VBORenderer putShort(short value)
    • setFloats1

      public void setFloats1(int byteOffset, float f1)
    • setFloats2

      public void setFloats2(int byteOffset, float f1, float f2)
    • setFloats3

      public void setFloats3(int byteOffset, float f1, float f2, float f3)
    • setFloats4

      public void setFloats4(int byteOffset, float f1, float f2, float f3, float f4)
    • setVertex

      public void setVertex(float x, float y, float z)
    • setNormal

      public void setNormal(float x, float y, float z)
    • setColor

      public void setColor(float r, float g, float b, float a)
    • setUV1

      public void setUV1(float u, float v)
    • setUV2

      public void setUV2(float u, float v)
    • setDepth

      public void setDepth(float depth)
    • addElement

      public void addElement(float x, float y, float z, float u, float v, float r, float g, float b, float a)
    • addElementDepth

      public void addElementDepth(float x, float y, float z, float u, float v, float depth, float r, float g, float b, float a)
    • addElement

      public void addElement(float x, float y, float z, float r, float g, float b, float a)
    • addLine

      public void addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float a)
    • addLine

      public void addLine(float x0, float y0, float z0, float x1, float y1, float z1, float r0, float g0, float b0, float a0, float r1, float g1, float b1, float a1)
    • addRectOutline

      public void addRectOutline(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a)
    • addLineWithThickness

      public void addLineWithThickness(float x0, float y0, float z0, float x1, float y1, float z1, float thickness, float r, float g, float b, float a)
    • addTriangle

      public void addTriangle(float x0, float y0, float z0, float u0, float v0, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float r, float g, float b, float a)
    • addTriangleDepth

      public void addTriangleDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float x1, float y1, float z1, float u1, float v1, float depth1, float x2, float y2, float z2, float u2, float v2, float depth2, float r, float g, float b, float a)
    • addTriangleDepth

      public void addTriangleDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float alpha0, float x1, float y1, float z1, float u1, float v1, float depth1, float alpha1, float x2, float y2, float z2, float u2, float v2, float depth2, float alpha2, float r, float g, float b, float a)
    • addTriangle

      public void addTriangle(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2, float r, float g, float b, float a)
    • addQuad

      public void addQuad(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a)
    • addQuad

      public void addQuad(float x0, float y0, float u0, float v0, float x1, float y1, float u1, float v1, float z, float r, float g, float b, float a)
    • addQuad

      public void addQuad(float x0, float y0, float u0, float v0, float x1, float y1, float u1, float v1, float x2, float y2, float u2, float v2, float x3, float y3, float u3, float v3, float z, float r, float g, float b, float a)
    • addQuad

      public void addQuad(float x0, float y0, float z0, float u0, float v0, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3, float r, float g, float b, float a)
    • addQuadDepth

      public void addQuadDepth(float x0, float y0, float z0, float u0, float v0, float depth0, float x1, float y1, float z1, float u1, float v1, float depth1, float x2, float y2, float z2, float u2, float v2, float depth2, float x3, float y3, float z3, float u3, float v3, float depth3, float r, float g, float b, float a)
    • addAABB

      public void addAABB(float x, float y, float z, float xMin, float yMin, float zMin, float xMax, float yMax, float zMax, float r, float g, float b, float a, boolean bQuads)
    • addAABB

      public void addAABB(float x, float y, float z, float width, float height, float length, float r, float g, float b)
    • addAABB

      public void addAABB(float x, float y, float z, org.joml.Vector3f min, org.joml.Vector3f max, float r, float g, float b)
    • reserve

      public void reserve(int numElements)
    • flush

      public void flush()
    • setDepthTest

      public void setDepthTest(boolean enable)
    • setDepthTestForAllRuns

      public void setDepthTestForAllRuns(Boolean enable)
    • setUserDepthForAllRuns

      public void setUserDepthForAllRuns(Float depth)
    • setUserDepth

      public void setUserDepth(float depth)
    • setLineWidth

      public void setLineWidth(float width)
    • setMode

      public void setMode(int mode)
    • setShaderProgram

      public void setShaderProgram(ShaderProgram shaderProgram)
    • setTextureID

      public void setTextureID(TextureID textureID)
    • setMinMagFilters

      public void setMinMagFilters(int minFilter, int magFilter)
    • setClampST

      public void setClampST(int S, int T)
    • startRun

      public void startRun(VertexBufferObject.VertexFormat format)
    • endRun

      public void endRun()
    • cmdPushAndLoadMatrix

      public void cmdPushAndLoadMatrix(int mode, org.joml.Matrix4f m)
    • cmdPushAndMultMatrix

      public void cmdPushAndMultMatrix(int mode, org.joml.Matrix4f m)
    • cmdPopMatrix

      public void cmdPopMatrix(int mode)
    • cmdShader1f

      public void cmdShader1f(String loc, float f1)
    • cmdShader2f

      public void cmdShader2f(String loc, float f1, float f2)
    • cmdShader2f

      public void cmdShader2f(int loc, float f1, float f2)
    • cmdShader3f

      public void cmdShader3f(String loc, float f1, float f2, float f3)
    • cmdShader1f

      public void cmdShader1f(int loc, float f1)
    • cmdShader4f

      public void cmdShader4f(String loc, float f1, float f2, float f3, float f4)
    • cmdShader4f

      public void cmdShader4f(int loc, float f1, float f2, float f3, float f4)
    • cmdUseProgram

      public void cmdUseProgram(ShaderProgram shaderProgram)
    • addBox

      public void addBox(float width, float height, float length, float r, float g, float b, float a, ShaderProgram shaderProgram)
    • addCylinder_Fill

      public void addCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1)
    • addCylinder_Line

      public void addCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1)
    • addCylinder_Fill

      public void addCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
    • addCylinder_Line

      public void addCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
    • addCylinder

      public void addCylinder(int drawStyle, int orientation, float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram)
    • addDisk_Fill

      public void addDisk_Fill(float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha)
    • addDisk

      public void addDisk(int drawStyle, int orientation, float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha)
    • addTorus

      public void addTorus(double r, double c, int rSeg, int cSeg, float r1, float g1, float b1, UI3DScene.Ray cameraRay)