Class OverlayVertexHelper
java.lang.Object
net.lugo.overlaylib.util.OverlayVertexHelper
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidrect(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, float firstAxisEnd, float secondAxisEnd, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) static float[]rotateUV(float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) static voidsquare(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, float sideLength, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) static voidsquare(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) static voidtexturedSquare(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, Color color, TextureSection section, UVRotation rotation) static voidtriangle(com.mojang.blaze3d.vertex.VertexConsumer buffer, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) static voidvertex(com.mojang.blaze3d.vertex.VertexConsumer buffer, float x, float y, float z, Color color, float u, float v)
-
Constructor Details
-
OverlayVertexHelper
public OverlayVertexHelper()
-
-
Method Details
-
rotateUV
public static float[] rotateUV(float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) -
vertex
public static void vertex(com.mojang.blaze3d.vertex.VertexConsumer buffer, float x, float y, float z, Color color, float u, float v) -
triangle
public static void triangle(com.mojang.blaze3d.vertex.VertexConsumer buffer, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) -
rect
public static void rect(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, float firstAxisEnd, float secondAxisEnd, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) -
square
public static void square(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, float sideLength, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) -
square
public static void square(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, Color color, float uStart, float vStart, float uEnd, float vEnd, UVRotation rotation) -
texturedSquare
public static void texturedSquare(com.mojang.blaze3d.vertex.VertexConsumer buffer, OverlayVertexHelper.FixedAxis fixedAxis, float fixedCoord, float firstAxisStart, float secondAxisStart, Color color, TextureSection section, UVRotation rotation)
-