LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
Functions | |
LG_Scene | lg_scene (LG_Camera *cam1, LG_Light light1, Vertex_rgba *h_grid, int grid_n_vertices, Vertex_rgba *xyz_arrows, Rec2Df landscape_rec, LG_SceneNode *root_node) |
=== Higher level scene/frame stuff === Starting point to create a scene TODO: more helper funcs
LG_Scene lg_scene | ( | LG_Camera * | cam1, |
LG_Light | light1, | ||
Vertex_rgba * | h_grid, | ||
int | grid_n_vertices, | ||
Vertex_rgba * | xyz_arrows, | ||
Rec2Df | landscape_rec, | ||
LG_SceneNode * | root_node | ||
) |
Create a scene
You must add at least one cam, one light, one grid, one xyz_arrows, and one landscape_rec
cam1 | A pointer to a LG_Camera |
light1 | A LG_Light |
h_grid | A pointer to a Vertex_rgba buffer |
grid_n_vertices | Num of vertices of h_grid vertex buffer |
xyz_arrows | A pointer to a Vertex_rgba buffer |
landscape_rec | A Rec2Df |
root_node | A pointer to a LG_SceneNode, may be NULL |