Skip to content

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.

ValueSummary
LINESEach pair of vertices is one segment.
LINE_STRIPEach vertex is joined to the next one, an open line.
LINE_LOOPEach vertex is joined to the next one, and the last one to the first, a closed line.
TRIANGLESEach group of three vertices is one triangle.
QUADSEach group of four vertices is one quad, drawn as two triangles.
POLYGONThe vertices form one convex polygon, drawn as a fan of triangles from the first vertex.

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.


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

Report a problem with this page