MyScene

MyScene

Represents the CGFapplication scene.

Constructor

new MyScene()

Instantiates a new scene instance.
Source:

Methods

checkKeys()

Method responsible for key handling.
Source:

display()

Displays the objects in the scene.
Source:

init(application)

Initializes the scene.
Source:
Parameters:
Name Type Description
application CGFapplication the application

initCameras()

Initializes the scene cameras.
Source:

initCubeMap()

Initializes the scene cube maps.
Source:

initLights()

Initializes the scene lights.
Source:

initSkins()

Initializes the scene blimp skins.
Source:

initSuppliesSkins()

Initializes the scene supply skins.
Source:

initTerrains()

Initializes the scene terrains.
Source:

onCameraChanged()

Event called when the camera is changed in the inteface.
Source:

onSkinChanged()

Event called when a blimp skin is changed in the interface.
Source:

onSupplySkinChanged()

Event called when a supply skin is changed in the interface.
Source:

onTerrainChanged()

Event called when a terrain is changed in the interface.
Source:

resetAll()

Resets all scene objects.
Source:

setDefaultAppearance()

Sets the default scene appearance.
Source:

update(t)

Updates periodically each object in the scene (as per setUpdatePeriod() in init())
Source:
Parameters:
Name Type Description
t number the current time