|
Gama C Library
Gama C API Documentation
|
Defines the 3D scene structure, encompassing lights, cameras, and viewport settings. More...
Go to the source code of this file.
Data Structures | |
| struct | gm3Scene |
| Represents a complete 3D scene, including its camera, lights, and viewport. More... | |
Functions | |
| int | gm3_scene_create (gm3Scene *s, double w, double h) |
| Initializes a gm3Scene struct with default values and a specified viewport. | |
| gm3Scene | gm3_scene () |
| Creates and returns a new gm3Scene struct initialized with default values. | |
| int | gm3_scene_free (gm3Scene *s) |
| Frees any dynamically allocated memory associated with a gm3Scene. | |
Variables | |
| const gm3Scene | gm3_default_scene |
| A default gm3Scene instance. | |
Defines the 3D scene structure, encompassing lights, cameras, and viewport settings.
This file provides the gm3Scene structure to manage global properties of a 3D rendering environment, making it easier to pass scene context to projection and rendering functions.
| gm3Scene gm3_scene | ( | ) |
| int gm3_scene_create | ( | gm3Scene * | s, |
| double | w, | ||
| double | h ) |
| int gm3_scene_free | ( | gm3Scene * | s | ) |
| const gm3Scene gm3_default_scene |
A default gm3Scene instance.
Initializes a scene with a default viewport (2,2), a default light, and a default camera.