Ember
A C++ 20 'game engine' built with SDL3 with wide platform support.
|
#include "core/engine.h"
#include "core/ember_core.h"
#include "core/renderer/metal/ember_mtl.h"
#include "core/renderer/opengl/ember_gl.h"
#include <stb_image.h>
Functions | |
b2Vec2 | pixels_to_world (const glm::vec2 &pixel_pos) |
Convert pixel coordinates to Physics world coordinates. More... | |
glm::vec2 | world_to_pixels (const b2Vec2 &world_pos) |
Convert pixel coordinates to Physics world coordinates. More... | |
Variables | |
std::unique_ptr< Engine > | GEngine = std::make_unique<Engine>() |
ma_engine | audio_engine |
constexpr double | FIXED_TIMESTEP = 1.0 / 60.0 |
constexpr double | MAX_FRAME_TIME = 0.25 |
b2Vec2 pixels_to_world | ( | const glm::vec2 & | pixel_pos | ) |
Convert pixel coordinates to Physics world coordinates.
pixel_pos | Position in pixels. |
glm::vec2 world_to_pixels | ( | const b2Vec2 & | world_pos | ) |
Convert pixel coordinates to Physics world coordinates.
ma_engine audio_engine |
|
constexpr |
|
constexpr |