Skip to content

Drawing

Colors and gradients, the immediate drawing helpers, transformations, framebuffers, the tessellator and Wavefront OBJ models that a custom node draws with. Learn: Colors and styling, Drawing shapes and text, Drawing resources and transforms, Framebuffers and models.

TypeKindSummary
ColorclassAn RGBA color with channels on 1, which can also hold a linear gradient or change on every frame.
ColorGradientclassThe two stops and the direction of a linear gradient, carried by a gradient Color.
DrawableRasterinterfaceThe drawing of another renderer, which JOID runs into an offscreen framebuffer and then shows as an image.
DrawModeenumHow the Tessellator joins the vertices you give it into lines or triangles.
DrawModelclassDraws a 3D model into the UI, scaled to a size in design pixels, with the depth test and the lighting on.
DrawRasterclassShows what another renderer draws inside a UI, through an offscreen framebuffer drawn as an image.
DrawResourceclassDraws resources and GPU textures, tinted by the current color of the render state.
DrawShapeclassDraws filled and outlined shapes, lines and curves with a Color, sharp at every scale.
DrawUtilsclassEntry point of the immediate drawing API, with one helper each for shapes, text, images, 3D models and external rasters.
EdgeSmoothingclassDraws convex shapes with a soft edge one screen pixel wide, so that a rotated or scaled shape stays smooth without multisampling.
FrameBufferclassAn offscreen image that you draw into once and then draw as many times as you want.
FrameBufferPoolclassLends offscreen framebuffers by owner and nesting depth, grows them when a draw does not fit, and frees the ones left unused.
IDrawableModelinterfaceA 3D model that JOID can draw and size, which renders its geometry and reports its extent.
ObjFaceclassOne triangle of an ObjModel, with its vertices, its optional texture coordinates and normals, and the normal of its plane.
ObjGroupclassA named group of triangles of an ObjModel, drawn in one batch.
ObjModelclassA 3D model read from a Wavefront .obj file, drawn with one texture.
ObjTextureCoordinateclassA texture coordinate of an ObjModel, on 1 of the texture.
ObjVertexclassA point or a normal of an ObjModel, in model units.
RotationclassThe axis of a rotation in a Transformation, as yaw, pitch and roll components.
ScaleclassThe factors of a scale in a Transformation, one per axis, fixed or read from a supplier.
TessellatorclassCollects vertices with optional texture coordinates, colors and normals, and sends them to the render bridge in one draw.
TransformationclassA list of translations, rotations and scales applied to the model-view matrix around what you draw.
VectorclassA 3D offset or pivot of a Transformation, in design pixels, fixed or read from suppliers.

Report a problem with this page