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.
Description
Section titled “Description”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.
Learn more
Section titled “Learn more”Values
Section titled “Values”| Value | Summary |
|---|---|
LINES | Every two vertices form a segment. |
TRIANGLES | Every three vertices form a triangle. |
Value details
Section titled “Value details”LINES
Every two vertices form a segment.
TRIANGLES
Section titled “TRIANGLES”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
