Module rosen

The module implementing the 3D engine.

Behaviours: gen_fsm.

Description

The module implementing the 3D engine.

This module represents the 3D engine. It handles the collection of the objects of the world, providing the functions to add new objects and to change the view of the world. It also has the responsibility of triggering redrawing and activity execution.

Function Index

add_object/1Adds a new object (represented by its pid) to the engine.
left/1Changes the horizontal position of the camera.
start_link/0Starts the engine.
up/1Changes the height of the camera.
zoom/1Changes the zoom of the camera.

Function Details

add_object/1

add_object(Object::ObjectPid) -> ok

Adds a new object (represented by its pid) to the engine.

left/1

left(PanLeft::number()) -> ok

Changes the horizontal position of the camera.

start_link/0

start_link() -> {ok, Pid}

Starts the engine.

up/1

up(PanUp::number()) -> ok

Changes the height of the camera.

zoom/1

zoom(Zoom::number()) -> ok

Changes the zoom of the camera.


Generated by EDoc, Nov 21 2007, 10:13:23.