Node.load

Load a resource associated with the given I/O.

The resource should be continuously loaded during resizeImpl. Even if a resource has already been loaded, it has to be declared with load so the I/O system knows it is still in use.

CanvasIO canvasIO;
DrawableImage image;
void resizeImpl(Vector2 space) {
    require(canvasIO);
    load(canvasIO, image);
}
class Node
protected
void
load
(
T
I : IO
)
(
I io
,
ref T resource
)

Parameters

io I

I/O system to use to load the resource.

resource T

Resource to load.

Meta