Files
xash3d-fwgs/engine/platform/sdl3/platform_sdl3.h
Terence Noone f50e61403f engine: Fix SDL3 support
Gets SDL3 building again on macOS. The game is able to boot to the main
menu and play with hlsdk-portable and HL assets. Some bugs when changing
video modes.
2026-07-24 14:23:39 +05:00

40 lines
1.1 KiB
C

/*
platform_sdl3.h - SDL3 platform definitions
Copyright (C) 2025 Er2off
Copyright (C) 2025 Alibek Omarov
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
*/
#ifndef PLATFORM_SDL3_H
#define PLATFORM_SDL3_H
#include <SDL3/SDL.h>
#include "platform/platform.h"
#define Con_PrintSDLError( func ) \
Con_Printf( S_ERROR "%s: %s: %s\n", __func__, func, SDL_GetError( ));
//
// in_sdl3.c
//
void SDLash_InitCursors( void );
void SDLash_FreeCursors( void );
//
// sensor_sdl3.c
//
void SDLash_InitSensors( void );
void SDLash_ShutdownSensors( void );
qboolean SDLash_GyroIsAvailable( void );
void SDLash_SensorUpdate( SDL_SensorEvent sensor );
#endif // PLATFORM_SDL3_H