Skip to content

ObjGroup

final class ObjGroup
Package: dev.joid.lib.obj.data · Module: core · Source: ObjGroup.java

A named group of triangles of an ObjModel, drawn in one batch.

ReturnsSignatureSummary
ObjGroupcreate(String name) factoryCreates an empty group named name.

ReturnsSignatureSummary
thisface(ObjFace face) fluentAdds a triangle to the group.
voidrender()Draws every triangle of the group in one Tessellator batch, with the texture and the render state already set.
List<ObjFace>getFaces()Returns the triangles, in order, as a list you cannot change.
StringgetName()Returns the name of the group: the rest of its g or o line.

ObjGroup create(String name) factory

Creates an empty group named name.

this face(ObjFace face) fluent

Adds a triangle to the group.

void render()

Draws every triangle of the group in one Tessellator batch, with the texture and the render state already set.

List<ObjFace> getFaces()

Returns the triangles, in order, as a list you cannot change.

String getName()

Returns the name of the group: the rest of its g or o line.


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