raisin::rayrai::sdl
namespace
Functions
setWindowsDpiAwarenessHint
#include <rayrai/sdl_hints.hpp>
cpp
void setWindowsDpiAwarenessHint()Ask SDL for per-monitor-v2 DPI awareness (affects Windows only). Call before SDL_Init.
getSdlInitFlag
#include <rayrai/sdl_shared.hpp>
cpp
std::once_flag &getSdlInitFlag()Shared SDL initialization guard across the rayrai shared library.
Returns Reference to the shared once_flag.
getSdlGlMutex
#include <rayrai/sdl_shared.hpp>
cpp
std::mutex &getSdlGlMutex()Shared mutex for OpenGL context creation and use.
Returns Reference to the shared mutex.
ensureSdlVideoInit
#include <rayrai/sdl_shared.hpp>
cpp
void ensureSdlVideoInit()Ensure SDL video subsystem is initialized once.
This also disables SDL's default signal handlers to allow the embedding application to handle signals.