Skip to content

Primitive

enum Primitive
Package: dev.joid.lib.bridge.render.vertex · Module: core · Source: Primitive.java

How the vertices of a draw join, in segments or in triangles.

draw(primitive, buffer) of the render bridge passes it to the backend, which maps it to the topology of its API; it is part of the PipelineKey too. The Tessellator turns every drawing mode into one of the two.

ValueSummary
LINESEvery two vertices form a segment.
TRIANGLESEvery three vertices form a triangle.

LINES

Every two vertices form a segment.

TRIANGLES

Every three vertices form a triangle.


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