Nimbin[12]?SDL & Graphics / sdl_runtime_compiler / src/utils/globals.hpp

sdl_runtime_compiler git · main

SDL3 game for running and compiling code at runtime

sdl3 c++ compiler dlopen cmake · first commit 2026-04-19 · last commit 2026-07-03 (3 months ago) · synced 3 days ago · upstream: git.ide3.de/hsnr/sdl-runtime-compiler

C++ 72.3% C 26.2%
git clone https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler.gitwget https://git.christianimmanuel.de/sdl-graphics/sdl_runtime_compiler/archive/sdl_runtime_compiler.tar.gz
src/utils/globals.hpp 764 B · 41 lines raw
#pragma once

#include <SDL3/SDL.h>
#include <memory>
#include <print>
#include <vector>

#include "cpputils/unique_ptr.hpp"
#include "math.hpp"

namespace
Nimbin
{

using Math::Vec3;

template<typename T>
using DynArray = std::vector<T>;

namespace Text {
    namespace Token { struct Data; }
    using TokenPtr = cpputils::unique_ptr<Token::Data>;
}

namespace Wall {
    struct TextData;
    using  TextPtr     = cpputils::unique_ptr<TextData>;
    using  TextPtrList = DynArray<TextPtr>;
}

class  GlRenderer;
using  GlRendererPtr = cpputils::unique_ptr<GlRenderer>;

struct CarriedWordNode;
using  CarriedWordNodePtr = cpputils::unique_ptr<CarriedWordNode>;


struct GameObject;
using  GameObjectPtr = cpputils::unique_ptr<GameObject>;

} // namespace Nimbin