Skip to content
Noah Gallo edited this page Mar 12, 2023 · 2 revisions

Scene

A Scene is a 3D environment made up of a collection of SceneObjects

Public Fields/Properties

Name Property? Type Description
currKey NO int The key to assign to the next SceneObject ID
objects NO map<int, SceneObject> The SceneObjects in the scene (key = object.ID)
mainCam NO Camera* The Main Camera of the scene used for drawing the scene

Public Methods

Signature Return Type Description
Instantiate(SceneObject* object, vec3 position, vec3 rotation, vec3 scale) SceneObject* Adds a copy of the given SceneObject to the scene at the specified position, rotation, and scale.
FindObject(string name) SceneObject* Returns the game object with the given name
Start() void Calls all the SceneObjects Start functions
Update() void Calls all the SceneObjects Update functions
Render() void Calls all the SceneObjects Render functions

Clone this wiki locally