RaylibDisplay

Constructors

this
this()

Members

Functions

addAnchor
RaylibAnchor addAnchor(void delegate() @(trusted) callback)

Add a Raylib anchor. See isodi.Anchor for reference.

draw
void draw()

Draw the contents of the display.

isodiPosition
Position isodiPosition(Vector3 original)

Get Isodi position from world position.

mouseRay
Ray mouseRay(bool inverted)

Get a ray from the mouse position relative to the camera.

raylibCamera
const(raylib.Camera) raylibCamera()

Get the underlying Raylib camera.

reloadResources
void reloadResources()
Undocumented in source. Be warned that the author may not have intended to support it.
snapWorldPosition
Vector3 snapWorldPosition(Vector3 pos)

Snap a Vector3 with a world position to Isodi.

Variables

raycam
raylib.Camera raycam;

Underlying raylib camera.

Inherited Members

From Display

cellSize
int cellSize;

Base cell size in the display, if supported by the renderer.

camera
Camera camera;

Active camera.

packs
PackList packs;

Used pack list

cellMap
Cell[UniquePosition] cellMap;

Registered cells

anchorMap
Anchor[size_t] anchorMap;

Registered anchors

modelMap
Model[size_t] modelMap;

Registered models

~this
~this()
Undocumented in source.
make
Display make()

Create a display with the current renderer.

reloadResources
void reloadResources()

Reload all resources in the display. Make sure to call PackList.clearCache.

cells
auto cells()

Iterate on all cells

models
auto models()

Iterate on all models

anchors
auto anchors()

Iterate on all anchors

cellCount
size_t cellCount()

Get the number of cells in the display.

modelCount
size_t modelCount()

Get the number of models in the display.

anchorCount
size_t anchorCount()

Get the number of anchors in the display.

clear
void clear()

Clear all objects within the display. Leaves packs and cache in place.

clearDestroy
void clearDestroy()

Destroy the contents of the display.

addCell
Cell addCell(Position position, string type)

Add a new cell to the display. Replaces the cell if one already exists.

getCell
Cell getCell(UniquePosition position)

Get a cell at given position.

removeCell
bool removeCell(UniquePosition position)
bool removeCell(Position position)

Remove the cell at given position.

addModel
Model addModel(string type)
Model addModel(Position position, string type)

Add a new model to the display.

removeModel
bool removeModel(Model model)

Remove the given model from the map.

addAnchor
Anchor addAnchor(Position position)

Add a new anchor to the display.

removeAnchor
bool removeAnchor(Anchor anchor)

Remove the given anchor from the map.

Meta