2018-04-13 18:56:43 +02:00
|
|
|
/*
|
2019-11-24 01:00:35 +01:00
|
|
|
backends.h - backend macro definitions
|
2018-04-13 18:56:43 +02:00
|
|
|
Copyright (C) 2016 Mittorn
|
|
|
|
|
|
|
|
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 BACKENDS_H
|
|
|
|
#define BACKENDS_H
|
|
|
|
|
|
|
|
// video backends (XASH_VIDEO)
|
2019-11-24 01:00:35 +01:00
|
|
|
#define VIDEO_NULL 0
|
|
|
|
#define VIDEO_SDL 1
|
|
|
|
#define VIDEO_FBDEV 3
|
2020-02-08 17:06:13 +01:00
|
|
|
#define VIDEO_DOS 4
|
|
|
|
|
2018-04-13 18:56:43 +02:00
|
|
|
// audio backends (XASH_SOUND)
|
2019-11-24 01:00:35 +01:00
|
|
|
#define SOUND_NULL 0
|
|
|
|
#define SOUND_SDL 1
|
|
|
|
#define SOUND_ALSA 3
|
2018-04-13 18:56:43 +02:00
|
|
|
|
|
|
|
// input (XASH_INPUT)
|
2019-11-24 01:00:35 +01:00
|
|
|
#define INPUT_NULL 0
|
|
|
|
#define INPUT_SDL 1
|
|
|
|
#define INPUT_EVDEV 3
|
2018-04-13 18:56:43 +02:00
|
|
|
|
|
|
|
// timer (XASH_TIMER)
|
2019-11-24 01:00:35 +01:00
|
|
|
#define TIMER_NULL 0 // not used
|
|
|
|
#define TIMER_SDL 1
|
2021-06-25 23:19:49 +02:00
|
|
|
#define TIMER_POSIX 2
|
2018-04-13 18:56:43 +02:00
|
|
|
#define TIMER_WIN32 3
|
2020-02-08 17:06:13 +01:00
|
|
|
#define TIMER_DOS 4
|
2018-04-13 18:56:43 +02:00
|
|
|
|
2019-10-26 03:35:56 +02:00
|
|
|
// messageboxes (XASH_MESSAGEBOX)
|
2019-11-24 01:00:35 +01:00
|
|
|
#define MSGBOX_STDERR 0
|
|
|
|
#define MSGBOX_SDL 1
|
|
|
|
#define MSGBOX_WIN32 3
|
2023-02-05 02:09:32 +01:00
|
|
|
#define MSGBOX_NSWITCH 4
|
2019-10-26 03:35:56 +02:00
|
|
|
|
2019-11-18 15:13:21 +01:00
|
|
|
// library loading (XASH_LIB)
|
2019-11-17 21:31:25 +01:00
|
|
|
#define LIB_NULL 0
|
|
|
|
#define LIB_POSIX 1
|
|
|
|
#define LIB_WIN32 2
|
|
|
|
#define LIB_STATIC 3
|
|
|
|
|
2018-04-13 18:56:43 +02:00
|
|
|
#endif /* BACKENDS_H */
|