DrawableRaster
interface DrawableRaster
Package: dev.joid.lib.draw.raster · Module: core · Source: DrawableRaster.java
The drawing of another renderer, which JOID runs into an offscreen framebuffer and then shows as an image.
Description
Section titled “Description”Pass it to DrawRaster.drawRaster as a lambda.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
void | draw(int width, int height) abstract | JOID calls it on the render thread with the framebuffer bound, cleared to transparent, and a viewport of width × height screen pixels. |
Method details
Section titled “Method details”void draw(int width, int height) abstract
JOID calls it on the render thread with the framebuffer bound, cleared to transparent, and a viewport of width × height screen pixels.
Draw there with your own graphics code, with premultiplied alpha; the projection maps one unit to one pixel, with (0, 0) at the top-left corner.
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
