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.
| Type | Kind | Summary |
|---|---|---|
Color | class | An RGBA color with channels on 1, which can also hold a linear gradient or change on every frame. |
ColorGradient | class | The two stops and the direction of a linear gradient, carried by a gradient Color. |
DrawableRaster | interface | The drawing of another renderer, which JOID runs into an offscreen framebuffer and then shows as an image. |
DrawMode | enum | How the Tessellator joins the vertices you give it into lines or triangles. |
DrawModel | class | Draws a 3D model into the UI, scaled to a size in design pixels, with the depth test and the lighting on. |
DrawRaster | class | Shows what another renderer draws inside a UI, through an offscreen framebuffer drawn as an image. |
DrawResource | class | Draws resources and GPU textures, tinted by the current color of the render state. |
DrawShape | class | Draws filled and outlined shapes, lines and curves with a Color, sharp at every scale. |
DrawUtils | class | Entry point of the immediate drawing API, with one helper each for shapes, text, images, 3D models and external rasters. |
EdgeSmoothing | class | Draws convex shapes with a soft edge one screen pixel wide, so that a rotated or scaled shape stays smooth without multisampling. |
FrameBuffer | class | An offscreen image that you draw into once and then draw as many times as you want. |
FrameBufferPool | class | Lends offscreen framebuffers by owner and nesting depth, grows them when a draw does not fit, and frees the ones left unused. |
IDrawableModel | interface | A 3D model that JOID can draw and size, which renders its geometry and reports its extent. |
ObjFace | class | One triangle of an ObjModel, with its vertices, its optional texture coordinates and normals, and the normal of its plane. |
ObjGroup | class | A named group of triangles of an ObjModel, drawn in one batch. |
ObjModel | class | A 3D model read from a Wavefront .obj file, drawn with one texture. |
ObjTextureCoordinate | class | A texture coordinate of an ObjModel, on 1 of the texture. |
ObjVertex | class | A point or a normal of an ObjModel, in model units. |
Rotation | class | The axis of a rotation in a Transformation, as yaw, pitch and roll components. |
Scale | class | The factors of a scale in a Transformation, one per axis, fixed or read from a supplier. |
Tessellator | class | Collects vertices with optional texture coordinates, colors and normals, and sends them to the render bridge in one draw. |
Transformation | class | A list of translations, rotations and scales applied to the model-view matrix around what you draw. |
Vector | class | A 3D offset or pivot of a Transformation, in design pixels, fixed or read from suppliers. |
