Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
Classes | Functions
file_system.h File Reference
#include "helpers/logging.h"

Go to the source code of this file.

Classes

struct  SDL_File
 
struct  Ember_VFS
 

Functions

std::string LoadAssetsFile (const std::string &file_path)
 Loads a given file from assets folder. More...
 
std::vector< char > LoadFileIntoMemory (const std::string &file_path)
 Loads a given file from assets folder into memory. More...
 
ma_result Ember_Init_VFS (Ember_VFS *vfs)
 

Function Documentation

◆ Ember_Init_VFS()

ma_result Ember_Init_VFS ( Ember_VFS vfs)

◆ LoadAssetsFile()

std::string LoadAssetsFile ( const std::string &  file_path)

Loads a given file from assets folder.

  • The file path is relative to assets folder
Version
0.0.1
Parameters
file_paththe path to the file in assets folder
Returns
File content as string

◆ LoadFileIntoMemory()

std::vector<char> LoadFileIntoMemory ( const std::string &  file_path)

Loads a given file from assets folder into memory.

  • The file path is relative to assets folder
Version
0.0.2
Parameters
file_paththe path to the file in assets folder
Returns
File content as vector<char>