• rendererType: RendererType
▸ flush(): void
Draws all queued lines
void
▸ queueLineWorld(start
, end
, color?
, width?
, zIdx?
, dashed?
): void
The game calls the queue function when the entities should be put into a back buffer queue. The back buffer is used to contain information on the entities being drawn for later use in the flush function. The implementing renderer should contains its own back buffer. This will affect every line drawn in the game. Used to draw the line that the voyager take and wormholes
Name | Type | Description |
---|---|---|
start |
WorldCoords |
The coordinates of where the lines start relative to the game world |
end |
WorldCoords |
The coordinates of where the lines end relative to the game world |
color? |
RGBAVec |
|
width? |
number |
how thick the line should be from the center |
zIdx? |
number |
Z axis |
dashed? |
boolean |
if the line should be dashed |
void