Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.46 KB

MineBodyRendererType.md

File metadata and controls

65 lines (38 loc) · 1.46 KB

Interface: MineBodyRendererType

Table of contents

Properties

Methods

Properties

rendererType

rendererType: RendererType

Methods

flush

flush(): void

Draws all queued mine bodies.

Returns

void


queueMineScreen

queueMineScreen(planet, center, radius, z): 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. Draw the body of the Mine/Asteroid Field

Parameters

Name Type Description
planet Planet Planet class that contains information on the current Mine/Asteroid Field
center WorldCoords The location of the center of the Asteroid Field relative to the game world.
radius number Radius of the Asteroid Field relative to the game world
z number The amount of Asteroids in the Asteroid field

Returns

void


setUniforms

Optional setUniforms(): void

Returns

void