LibGame  v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
lg_scene.c File Reference

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)
 

Detailed Description

 === Higher level scene/frame stuff ===

 Starting point to create a scene

 TODO: more helper funcs

Function Documentation

◆ lg_scene()

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

Parameters
cam1A pointer to a LG_Camera
light1A LG_Light
h_gridA pointer to a Vertex_rgba buffer
grid_n_verticesNum of vertices of h_grid vertex buffer
xyz_arrowsA pointer to a Vertex_rgba buffer
landscape_recA Rec2Df
root_nodeA pointer to a LG_SceneNode, may be NULL
Returns
A LG_Scene