DrawMode
enum DrawMode
Package: dev.joid.lib.render.tessellator · Module: core · Source: DrawMode.java
How the Tessellator joins the vertices you give it into lines or triangles.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
LINES | Each pair of vertices is one segment. |
LINE_STRIP | Each vertex is joined to the next one, an open line. |
LINE_LOOP | Each vertex is joined to the next one, and the last one to the first, a closed line. |
TRIANGLES | Each group of three vertices is one triangle. |
QUADS | Each group of four vertices is one quad, drawn as two triangles. |
POLYGON | The vertices form one convex polygon, drawn as a fan of triangles from the first vertex. |
Value details
Section titled “Value details”LINES
Each pair of vertices is one segment.
LINE_STRIP
Section titled “LINE_STRIP”LINE_STRIP
Each vertex is joined to the next one, an open line.
LINE_LOOP
Section titled “LINE_LOOP”LINE_LOOP
Each vertex is joined to the next one, and the last one to the first, a closed line.
TRIANGLES
Section titled “TRIANGLES”TRIANGLES
Each group of three vertices is one triangle.
QUADS
Each group of four vertices is one quad, drawn as two triangles.
POLYGON
Section titled “POLYGON”POLYGON
The vertices form one convex polygon, drawn as a fan of triangles from the first vertex.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
