Skip to content

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.

Pass it to DrawRaster.drawRaster as a lambda.

ReturnsSignatureSummary
voiddraw(int width, int height) abstractJOID calls it on the render thread with the framebuffer bound, cleared to transparent, and a viewport of width × height screen pixels.

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

Report a problem with this page