-
Notifications
You must be signed in to change notification settings - Fork 0
Scene
Noah Gallo edited this page Mar 12, 2023
·
2 revisions
A Scene is a 3D environment made up of a collection of SceneObjects
| 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 |
| 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 |