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

Functions

LG_Envlg_get_game_env ()
 
LG_Renderer2Dlg_get_renderer_2d ()
 
LG_Cameralg_get_camera_one ()
 
LG_Texturelg_get_texture_list ()
 

Function Documentation

◆ lg_get_game_env()

LG_Env* lg_get_game_env ( )
Returns
Libgame env

◆ lg_get_renderer_2d()

LG_Renderer2D* lg_get_renderer_2d ( )
Returns
The Libgame 2D renderer

◆ lg_get_camera_one()

LG_Camera* lg_get_camera_one ( )

"Camera One" is a global, always available, already initialized at start up, LG_Camera

Initialized with default values:

LG_CAMERA_ORIGIN
LG_CAMERA_TARGET
LG_CAMERA_UP
LG_V_FOV
LG_Z_NEAR
LG_Z_FAR

WARNING: you must re-initialize it with lg_camera_init(lg_get_camera_one()) between scenes, or you may get unexpected behaviour

Returns
The global LG_Camera, if needed

◆ lg_get_texture_list()

LG_Texture* lg_get_texture_list ( )
Returns
The first node of the global texture list