IDrawableModel
interface IDrawableModel
Known subtypes: ObjModel
Package: dev.joid.lib.draw.model · Module: core · Source: IDrawableModel.java
A 3D model that JOID can draw and size, which renders its geometry and reports its extent.
Description
Section titled “Description”ObjModel implements it for Wavefront .obj files; implement it for another source of geometry.
A model node reads the extent to fit the model in its bounds.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | render() abstract | JOID calls it inside DrawModel.drawModel, with the matrices and the 3D render state already set. |
double | getDepth() abstract | Returns the extent of the model along Z, in model units. |
double | getWidth() abstract | Returns the extent of the model along X, in model units. |
double | getHeight() abstract | Returns the extent of the model along Y, in model units. |
Method details
Section titled “Method details”render
Section titled “render”void render() abstract
JOID calls it inside DrawModel.drawModel, with the matrices and the 3D render state already set.
Bind your texture and draw your geometry in model units, for example with the Tessellator.
getDepth
Section titled “getDepth”double getDepth() abstract
Returns the extent of the model along Z, in model units.
getWidth
Section titled “getWidth”double getWidth() abstract
Returns the extent of the model along X, in model units.
getHeight
Section titled “getHeight”double getHeight() abstract
Returns the extent of the model along Y, in model units.
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
