Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
ember_utils.h
Go to the documentation of this file.
1 #pragma once
2 #include "imports.h"
3 
11 std::string text_format(const char* fmt, ...);
12 
22 int get_memory_usage();
23 
32 
33 
42 int get_cpu_cores_num();
43 
44 
54 const char* file_extension_to_mime_type(const char* ext);
int get_memory_usage()
Get the current memory usage in MB.
Definition: ember_utils.cpp:24
int get_available_memory()
Get the available system memory in MB.
Definition: ember_utils.cpp:28
const char * file_extension_to_mime_type(const char *ext)
Get MIME type from file extension.
Definition: ember_utils.cpp:37
int get_cpu_cores_num()
Get the number of CPU cores ( LOGICAL )
Definition: ember_utils.cpp:32
std::string text_format(const char *fmt,...)
Create a formatted string.
Definition: ember_utils.cpp:3