Class VBORenderer
java.lang.Object
zombie.core.opengl.VBORenderer
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAABB(float x, float y, float z, float width, float height, float length, float r, float g, float b) voidaddAABB(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) voidaddAABB(float x, float y, float z, org.joml.Vector3f min, org.joml.Vector3f max, float r, float g, float b) voidaddBox(float width, float height, float length, float r, float g, float b, float a, ShaderProgram shaderProgram) voidaddCylinder(int drawStyle, int orientation, float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram) voidaddCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1) voidaddCylinder_Fill(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram) voidaddCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1) voidaddCylinder_Line(float baseRadius, float topRadius, float height, int slices, int stacks, float r1, float g1, float b1, float a1, ShaderProgram shaderProgram) voidaddDisk(int drawStyle, int orientation, float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha) voidaddDisk_Fill(float innerRadius, float outerRadius, int slices, int loops, TextureID textureID, float red, float green, float blue, float alpha) voidaddElement(float x, float y, float z, float r, float g, float b, float a) voidaddElement(float x, float y, float z, float u, float v, float r, float g, float b, float a) voidaddElementDepth(float x, float y, float z, float u, float v, float depth, float r, float g, float b, float a) voidaddLine(float x0, float y0, float z0, float x1, float y1, float z1, float r, float g, float b, float a) voidaddLine(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) voidaddLineWithThickness(float x0, float y0, float z0, float x1, float y1, float z1, float thickness, float r, float g, float b, float a) voidaddQuad(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a) voidaddQuad(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) voidaddQuad(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) voidaddQuad(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) voidaddQuadDepth(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) voidaddRectOutline(float x0, float y0, float x1, float y1, float z, float r, float g, float b, float a) voidaddTorus(double r, double c, int rSeg, int cSeg, float r1, float g1, float b1, UI3DScene.Ray cameraRay) voidaddTriangle(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) voidaddTriangle(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) voidaddTriangleDepth(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) voidaddTriangleDepth(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) voidcmdPopMatrix(int mode) voidcmdPushAndLoadMatrix(int mode, org.joml.Matrix4f m) voidcmdPushAndMultMatrix(int mode, org.joml.Matrix4f m) voidcmdShader1f(int loc, float f1) voidcmdShader1f(String loc, float f1) voidcmdShader2f(int loc, float f1, float f2) voidcmdShader2f(String loc, float f1, float f2) voidcmdShader3f(String loc, float f1, float f2, float f3) voidcmdShader4f(int loc, float f1, float f2, float f3, float f4) voidcmdShader4f(String loc, float f1, float f2, float f3, float f4) voidcmdUseProgram(ShaderProgram shaderProgram) voidendRun()voidflush()static VBORendererputByte(byte value) putFloat(float value) putInt(int value) putShort(short value) voidreserve(int numElements) voidsetClampST(int S, int T) voidsetColor(float r, float g, float b, float a) voidsetDepth(float depth) voidsetDepthTest(boolean enable) voidsetDepthTestForAllRuns(Boolean enable) voidsetFloats1(int byteOffset, float f1) voidsetFloats2(int byteOffset, float f1, float f2) voidsetFloats3(int byteOffset, float f1, float f2, float f3) voidsetFloats4(int byteOffset, float f1, float f2, float f3, float f4) voidsetLineWidth(float width) voidsetMinMagFilters(int minFilter, int magFilter) voidsetMode(int mode) voidsetNormal(float x, float y, float z) voidsetOffset(float dx, float dy, float dz) voidsetShaderProgram(ShaderProgram shaderProgram) voidsetTextureID(TextureID textureID) voidsetUserDepth(float depth) voidsetUserDepthForAllRuns(Float depth) voidsetUV1(float u, float v) voidsetUV2(float u, float v) voidsetVertex(float x, float y, float z) void
-
Field Details
-
formatPositionColor
-
formatPositionColorUv
-
formatPositionColorUvDepth
-
formatPositionNormalColor
-
formatPositionNormalColorUv
-
-
Constructor Details
-
VBORenderer
public VBORenderer()
-
-
Method Details
-
getInstance
-
setOffset
public void setOffset(float dx, float dy, float dz) -
addElement
-
putByte
-
putFloat
-
putInt
-
putShort
-
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
-
setUserDepthForAllRuns
-
setUserDepth
public void setUserDepth(float depth) -
setLineWidth
public void setLineWidth(float width) -
setMode
public void setMode(int mode) -
setShaderProgram
-
setTextureID
-
setMinMagFilters
public void setMinMagFilters(int minFilter, int magFilter) -
setClampST
public void setClampST(int S, int T) -
startRun
-
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
-
cmdShader2f
-
cmdShader2f
public void cmdShader2f(int loc, float f1, float f2) -
cmdShader3f
-
cmdShader1f
public void cmdShader1f(int loc, float f1) -
cmdShader4f
-
cmdShader4f
public void cmdShader4f(int loc, float f1, float f2, float f3, float f4) -
cmdUseProgram
-
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)
-