Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
file_system.h
Go to the documentation of this file.
1 #pragma once
2 #include "helpers/logging.h"
3 
4 
14 std::string LoadAssetsFile(const std::string& file_path);
15 
25 std::vector<char> LoadFileIntoMemory(const std::string& file_path);
26 
27 
28 struct SDL_File {
29  SDL_IOStream* rw;
30 };
31 
32 struct Ember_VFS
33 {
34  ma_vfs_callbacks base;
35 };
36 
37 
38 ma_result Ember_Init_VFS(Ember_VFS* vfs);
ma_result Ember_Init_VFS(Ember_VFS *vfs)
Definition: file_system.cpp:121
std::string LoadAssetsFile(const std::string &file_path)
Loads a given file from assets folder.
Definition: file_system.cpp:4
std::vector< char > LoadFileIntoMemory(const std::string &file_path)
Loads a given file from assets folder into memory.
Definition: file_system.cpp:13
Definition: file_system.h:33
ma_vfs_callbacks base
Definition: file_system.h:34
Definition: file_system.h:28
SDL_IOStream * rw
Definition: file_system.h:29