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

Functions

const char * lg_img (const char *file_name)
 
const char * lg_snd (const char *file_name)
 
const char * lg_mus (const char *file_name)
 
const char * lg_fnt (const char *file_name)
 
const char * lg_mesh (const char *file_name)
 
const char * lg_assets_file (const char *path, const char *file_name)
 
const char * lg_app_wr_file (const char *file_name)
 

Detailed Description

 === Data/assets ===

 TODO: complete the doc

Function Documentation

◆ lg_img()

const char* lg_img ( const char *  file_name)

Image file

◆ lg_snd()

const char* lg_snd ( const char *  file_name)

Sound file

◆ lg_mus()

const char* lg_mus ( const char *  file_name)

Music file

◆ lg_fnt()

const char* lg_fnt ( const char *  file_name)

Font file

◆ lg_mesh()

const char* lg_mesh ( const char *  file_name)

Mesh file

◆ lg_assets_file()

const char* lg_assets_file ( const char *  path,
const char *  file_name 
)

Asset file

◆ lg_app_wr_file()

const char* lg_app_wr_file ( const char *  file_name)

File in app writable dir

WARNING: From: https://wiki.libsdl.org/SDL2/SDL_GetPrefPath 'The returned path is guaranteed to end with a path separator'