mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
update windows SDL2 build to latest 2.26.1 version.
This commit is contained in:
parent
a449780bb8
commit
2a312a5b32
50 changed files with 9466 additions and 4017 deletions
|
@ -1,6 +1,114 @@
|
||||||
|
|
||||||
This is a list of major changes in SDL's version history.
|
This is a list of major changes in SDL's version history.
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
2.26.0:
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
General:
|
||||||
|
* Updated OpenGL headers to the latest API from The Khronos Group Inc.
|
||||||
|
* Added SDL_GetWindowSizeInPixels() to get the window size in pixels, which may differ from the window coordinate size for windows with high-DPI support
|
||||||
|
* Added simulated vsync synchronization for the software renderer
|
||||||
|
* Added the mouse position to SDL_MouseWheelEvent
|
||||||
|
* Added SDL_ResetHints() to reset all hints to their default values
|
||||||
|
* Added SDL_GetJoystickGUIDInfo() to get device information encoded in a joystick GUID
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 to control whether the HIDAPI driver for XBox 360 controllers should be used
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED to control whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS to control whether the HIDAPI driver for XBox 360 wireless controllers should be used
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE to control whether the HIDAPI driver for XBox One controllers should be used
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED to control the brightness of the XBox One guide button LED
|
||||||
|
* Added support for PS3 controllers to the HIDAPI driver, enabled by default on macOS, controlled by the SDL_HINT_JOYSTICK_HIDAPI_PS3 hint
|
||||||
|
* Added support for Nintendo Wii controllers to the HIDAPI driver, not enabled by default, controlled by the SDL_HINT_JOYSTICK_HIDAPI_WII hint
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED to control whether the player LED should be lit on the Nintendo Wii controllers
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS to control whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
|
||||||
|
* Added access to the individual left and right gyro sensors of the combined Joy-Cons controller
|
||||||
|
* Added a microsecond timestamp to SDL_SensorEvent and SDL_ControllerSensorEvent, when the hardware provides that information
|
||||||
|
* Added SDL_SensorGetDataWithTimestamp() and SDL_GameControllerGetSensorDataWithTimestamp() to retrieve the last sensor data with the associated microsecond timestamp
|
||||||
|
* Added the hint SDL_HINT_HIDAPI_IGNORE_DEVICES to have the SDL HID API ignore specific devices
|
||||||
|
* SDL_GetRevision() now includes more information about the SDL build, including the git commit hash if available
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
* Added the hint SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE to control whether the system mouse acceleration curve is used for relative mouse motion
|
||||||
|
|
||||||
|
macOS:
|
||||||
|
* Implemented vsync synchronization on macOS 12
|
||||||
|
|
||||||
|
Linux:
|
||||||
|
* Added SDL_SetPrimarySelectionText(), SDL_GetPrimarySelectionText(), and SDL_HasPrimarySelectionText() to interact with the X11 primary selection clipboard
|
||||||
|
* Added the hint SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP to control whether mouse pointer warp emulation is enabled under Wayland
|
||||||
|
|
||||||
|
Android:
|
||||||
|
* Enabled IME soft keyboard input
|
||||||
|
* Added version checking to make sure the SDL Java and C code are compatible
|
||||||
|
|
||||||
|
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
2.24.0:
|
||||||
|
---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
General:
|
||||||
|
* New version numbering scheme, similar to GLib and Flatpak.
|
||||||
|
* An even number in the minor version (second component) indicates a production-ready stable release such as 2.24.0, which would have been 2.0.24 under the old system.
|
||||||
|
* The patchlevel (micro version, third component) indicates a bugfix-only update: for example, 2.24.1 would be a bugfix-only release to fix bugs in 2.24.0, without adding new features.
|
||||||
|
* An odd number in the minor version indicates a prerelease such as 2.23.0. Stable distributions should not use these prereleases.
|
||||||
|
* The patchlevel indicates successive prereleases, for example 2.23.1 and 2.23.2 would be prereleases during development of the SDL 2.24.0 stable release.
|
||||||
|
* Added SDL_GetPointDisplayIndex() and SDL_GetRectDisplayIndex() to get the display associated with a point and rectangle in screen space
|
||||||
|
* Added SDL_bsearch(), SDL_crc16(), and SDL_utf8strnlen() to the stdlib routines
|
||||||
|
* Added SDL_CPUPauseInstruction() as a macro in SDL_atomic.h
|
||||||
|
* Added SDL_size_mul_overflow() and SDL_size_add_overflow() for better size overflow protection
|
||||||
|
* Added SDL_ResetHint() to reset a hint to the default value
|
||||||
|
* Added SDL_ResetKeyboard() to reset SDL's internal keyboard state, generating key up events for all currently pressed keys
|
||||||
|
* Added the hint SDL_HINT_MOUSE_RELATIVE_WARP_MOTION to control whether mouse warping generates motion events in relative mode. This hint defaults off.
|
||||||
|
* Added the hint SDL_HINT_TRACKPAD_IS_TOUCH_ONLY to control whether trackpads are treated as touch devices or mice. By default touchpads are treated as mouse input.
|
||||||
|
* The hint SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS now defaults on
|
||||||
|
* Added support for mini-gamepad mode for Nintendo Joy-Con controllers using the HIDAPI driver
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS to control whether Joy-Con controllers are automatically merged into a unified gamepad when using the HIDAPI driver. This hint defaults on.
|
||||||
|
* The hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED can be set to a floating point value to set the brightness of the Home LED on Nintendo Switch controllers
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED to set the Home LED brightness for the Nintendo Joy-Con controllers. By default the Home LED is not modified.
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED to control whether the player LED should be lit on the Nintendo Joy-Con controllers
|
||||||
|
* Added support for Nintendo Online classic controllers using the HIDAPI driver
|
||||||
|
* Added the hint SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC to control whether the HIDAPI driver for Nintendo Online classic controllers should be used
|
||||||
|
* Added support for the NVIDIA Shield Controller to the HIDAPI driver, supporting rumble and battery status
|
||||||
|
* Added support for NVIDIA SHIELD controller to the HIDAPI driver, and a hint SDL_HINT_JOYSTICK_HIDAPI_SHIELD to control whether this is used
|
||||||
|
* Added functions to get the platform dependent name for a joystick or game controller:
|
||||||
|
* SDL_JoystickPathForIndex()
|
||||||
|
* SDL_JoystickPath()
|
||||||
|
* SDL_GameControllerPathForIndex()
|
||||||
|
* SDL_GameControllerPath()
|
||||||
|
* Added SDL_GameControllerGetFirmwareVersion() and SDL_JoystickGetFirmwareVersion(), currently implemented for DualSense(tm) Wireless Controllers using HIDAPI
|
||||||
|
* Added SDL_JoystickAttachVirtualEx() for extended virtual controller support
|
||||||
|
* Added joystick event SDL_JOYBATTERYUPDATED for when battery status changes
|
||||||
|
* Added SDL_GUIDToString() and SDL_GUIDFromString() to convert between SDL GUID and string
|
||||||
|
* Added SDL_HasLSX() and SDL_HasLASX() to detect LoongArch SIMD support
|
||||||
|
* Added SDL_GetOriginalMemoryFunctions()
|
||||||
|
* Added SDL_GetDefaultAudioInfo() to get the name and format of the default audio device, currently implemented for PipeWire, PulseAudio, WASAPI, and DirectSound
|
||||||
|
* Added HIDAPI driver for the NVIDIA SHIELD controller (2017 model) to enable support for battery status and rumble
|
||||||
|
* Added support for opening audio devices with 3 or 5 channels (2.1, 4.1). All channel counts from Mono to 7.1 are now supported.
|
||||||
|
* Rewrote audio channel converters used by SDL_AudioCVT, based on the channel matrix coefficients used as the default for FAudio voices
|
||||||
|
* SDL log messages are no longer limited to 4K and can be any length
|
||||||
|
* Fixed a long-standing calling convention issue with dynapi affecting OpenWatcom or OS/2 builds
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
* Added initial support for building for Windows and Xbox with Microsoft's Game Development Kit (GDK), see docs/README-gdk.md for details
|
||||||
|
* Added a D3D12 renderer implementation and SDL_RenderGetD3D12Device() to retrieve the D3D12 device associated with it
|
||||||
|
* Added the hint SDL_HINT_WINDOWS_DPI_AWARENESS to set whether the application is DPI-aware. This hint must be set before initializing the video subsystem
|
||||||
|
* Added the hint SDL_HINT_WINDOWS_DPI_SCALING to control whether the SDL coordinates are in DPI-scaled points or pixels
|
||||||
|
* Added the hint SDL_HINT_DIRECTINPUT_ENABLED to control whether the DirectInput driver should be used
|
||||||
|
* Added support for SDL_GetAudioDeviceSpec to the DirectSound backend
|
||||||
|
|
||||||
|
Linux:
|
||||||
|
* Support for XVidMode has been removed, mode changes are only supported using the XRandR extension
|
||||||
|
* Added the hint SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION to control whether to expose a set of emulated modes in addition to the native resolution modes available on Wayland
|
||||||
|
* Added the hint SDL_HINT_KMSDRM_DEVICE_INDEX to specify which KMSDRM device to use if the default is not desired
|
||||||
|
* Added the hint SDL_HINT_LINUX_DIGITAL_HATS to control whether to treat hats as digital rather than checking to see if they may be analog
|
||||||
|
* Added the hint SDL_HINT_LINUX_HAT_DEADZONES to control whether to use deadzones on analog hats
|
||||||
|
|
||||||
|
macOS:
|
||||||
|
* Bumped minimum OS deployment version to macOS 10.9
|
||||||
|
* Added SDL_GL_FLOATBUFFERS to allow Cocoa GL contexts to use EDR
|
||||||
|
* Added the hint SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH to control whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing. This hint defaults to blocking, which is the safer option on modern macOS.
|
||||||
|
|
||||||
|
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
2.0.22:
|
2.0.22:
|
||||||
---------------------------------------------------------------------------
|
---------------------------------------------------------------------------
|
||||||
|
|
|
@ -40,7 +40,7 @@ while test $# -gt 0; do
|
||||||
lib_suffix=$optarg
|
lib_suffix=$optarg
|
||||||
;;
|
;;
|
||||||
--version)
|
--version)
|
||||||
echo 2.0.22
|
echo 2.26.1
|
||||||
;;
|
;;
|
||||||
--cflags)
|
--cflags)
|
||||||
echo -I${prefix}/include -Dmain=SDL_main
|
echo -I${prefix}/include -Dmain=SDL_main
|
||||||
|
|
|
@ -41,6 +41,7 @@
|
||||||
#include "SDL_events.h"
|
#include "SDL_events.h"
|
||||||
#include "SDL_filesystem.h"
|
#include "SDL_filesystem.h"
|
||||||
#include "SDL_gamecontroller.h"
|
#include "SDL_gamecontroller.h"
|
||||||
|
#include "SDL_guid.h"
|
||||||
#include "SDL_haptic.h"
|
#include "SDL_haptic.h"
|
||||||
#include "SDL_hidapi.h"
|
#include "SDL_hidapi.h"
|
||||||
#include "SDL_hints.h"
|
#include "SDL_hints.h"
|
||||||
|
|
|
@ -237,6 +237,26 @@ typedef void (*SDL_KernelMemoryBarrierFunc)();
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* "REP NOP" is PAUSE, coded for tools that don't know it by that name. */
|
||||||
|
#if (defined(__GNUC__) || defined(__clang__)) && (defined(__i386__) || defined(__x86_64__))
|
||||||
|
#define SDL_CPUPauseInstruction() __asm__ __volatile__("pause\n") /* Some assemblers can't do REP NOP, so go with PAUSE. */
|
||||||
|
#elif (defined(__arm__) && __ARM_ARCH >= 7) || defined(__aarch64__)
|
||||||
|
#define SDL_CPUPauseInstruction() __asm__ __volatile__("yield" ::: "memory")
|
||||||
|
#elif (defined(__powerpc__) || defined(__powerpc64__))
|
||||||
|
#define SDL_CPUPauseInstruction() __asm__ __volatile__("or 27,27,27");
|
||||||
|
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
|
||||||
|
#define SDL_CPUPauseInstruction() _mm_pause() /* this is actually "rep nop" and not a SIMD instruction. No inline asm in MSVC x86-64! */
|
||||||
|
#elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_ARM64))
|
||||||
|
#define SDL_CPUPauseInstruction() __yield()
|
||||||
|
#elif defined(__WATCOMC__) && defined(__386__)
|
||||||
|
/* watcom assembler rejects PAUSE if CPU < i686, and it refuses REP NOP as an invalid combination. Hardcode the bytes. */
|
||||||
|
extern __inline void SDL_CPUPauseInstruction(void);
|
||||||
|
#pragma aux SDL_CPUPauseInstruction = "db 0f3h,90h"
|
||||||
|
#else
|
||||||
|
#define SDL_CPUPauseInstruction()
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A type representing an atomic integer value. It is a struct
|
* \brief A type representing an atomic integer value. It is a struct
|
||||||
* so people don't accidentally use numeric operations on it.
|
* so people don't accidentally use numeric operations on it.
|
||||||
|
|
|
@ -172,7 +172,7 @@ typedef void (SDLCALL * SDL_AudioCallback) (void *userdata, Uint8 * stream,
|
||||||
* 2: FL FR (stereo)
|
* 2: FL FR (stereo)
|
||||||
* 3: FL FR LFE (2.1 surround)
|
* 3: FL FR LFE (2.1 surround)
|
||||||
* 4: FL FR BL BR (quad)
|
* 4: FL FR BL BR (quad)
|
||||||
* 5: FL FR FC BL BR (quad + center)
|
* 5: FL FR LFE BL BR (4.1 surround)
|
||||||
* 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
|
* 6: FL FR FC LFE SL SR (5.1 surround - last two can also be BL BR)
|
||||||
* 7: FL FR FC LFE BC SL SR (6.1 surround)
|
* 7: FL FR FC LFE BC SL SR (6.1 surround)
|
||||||
* 8: FL FR FC LFE BL BR SL SR (7.1 surround)
|
* 8: FL FR FC LFE BL BR SL SR (7.1 surround)
|
||||||
|
@ -487,6 +487,7 @@ extern DECLSPEC int SDLCALL SDL_GetNumAudioDevices(int iscapture);
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_GetNumAudioDevices
|
* \sa SDL_GetNumAudioDevices
|
||||||
|
* \sa SDL_GetDefaultAudioInfo
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_GetAudioDeviceName(int index,
|
extern DECLSPEC const char *SDLCALL SDL_GetAudioDeviceName(int index,
|
||||||
int iscapture);
|
int iscapture);
|
||||||
|
@ -512,12 +513,48 @@ extern DECLSPEC const char *SDLCALL SDL_GetAudioDeviceName(int index,
|
||||||
* \since This function is available since SDL 2.0.16.
|
* \since This function is available since SDL 2.0.16.
|
||||||
*
|
*
|
||||||
* \sa SDL_GetNumAudioDevices
|
* \sa SDL_GetNumAudioDevices
|
||||||
|
* \sa SDL_GetDefaultAudioInfo
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_GetAudioDeviceSpec(int index,
|
extern DECLSPEC int SDLCALL SDL_GetAudioDeviceSpec(int index,
|
||||||
int iscapture,
|
int iscapture,
|
||||||
SDL_AudioSpec *spec);
|
SDL_AudioSpec *spec);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the name and preferred format of the default audio device.
|
||||||
|
*
|
||||||
|
* Some (but not all!) platforms have an isolated mechanism to get information
|
||||||
|
* about the "default" device. This can actually be a completely different
|
||||||
|
* device that's not in the list you get from SDL_GetAudioDeviceSpec(). It can
|
||||||
|
* even be a network address! (This is discussed in SDL_OpenAudioDevice().)
|
||||||
|
*
|
||||||
|
* As a result, this call is not guaranteed to be performant, as it can query
|
||||||
|
* the sound server directly every time, unlike the other query functions. You
|
||||||
|
* should call this function sparingly!
|
||||||
|
*
|
||||||
|
* `spec` will be filled with the sample rate, sample format, and channel
|
||||||
|
* count, if a default device exists on the system. If `name` is provided,
|
||||||
|
* will be filled with either a dynamically-allocated UTF-8 string or NULL.
|
||||||
|
*
|
||||||
|
* \param name A pointer to be filled with the name of the default device (can
|
||||||
|
* be NULL). Please call SDL_free() when you are done with this
|
||||||
|
* pointer!
|
||||||
|
* \param spec The SDL_AudioSpec to be initialized by this function.
|
||||||
|
* \param iscapture non-zero to query the default recording device, zero to
|
||||||
|
* query the default output device.
|
||||||
|
* \returns 0 on success, nonzero on error
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetAudioDeviceName
|
||||||
|
* \sa SDL_GetAudioDeviceSpec
|
||||||
|
* \sa SDL_OpenAudioDevice
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GetDefaultAudioInfo(char **name,
|
||||||
|
SDL_AudioSpec *spec,
|
||||||
|
int iscapture);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open a specific audio device.
|
* Open a specific audio device.
|
||||||
*
|
*
|
||||||
|
@ -584,6 +621,7 @@ extern DECLSPEC int SDLCALL SDL_GetAudioDeviceSpec(int index,
|
||||||
* - `SDL_AUDIO_ALLOW_FREQUENCY_CHANGE`
|
* - `SDL_AUDIO_ALLOW_FREQUENCY_CHANGE`
|
||||||
* - `SDL_AUDIO_ALLOW_FORMAT_CHANGE`
|
* - `SDL_AUDIO_ALLOW_FORMAT_CHANGE`
|
||||||
* - `SDL_AUDIO_ALLOW_CHANNELS_CHANGE`
|
* - `SDL_AUDIO_ALLOW_CHANNELS_CHANGE`
|
||||||
|
* - `SDL_AUDIO_ALLOW_SAMPLES_CHANGE`
|
||||||
* - `SDL_AUDIO_ALLOW_ANY_CHANGE`
|
* - `SDL_AUDIO_ALLOW_ANY_CHANGE`
|
||||||
*
|
*
|
||||||
* These flags specify how SDL should behave when a device cannot offer a
|
* These flags specify how SDL should behave when a device cannot offer a
|
||||||
|
|
|
@ -82,6 +82,53 @@ extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Put UTF-8 text into the primary selection.
|
||||||
|
*
|
||||||
|
* \param text the text to store in the primary selection
|
||||||
|
* \returns 0 on success or a negative error code on failure; call
|
||||||
|
* SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetPrimarySelectionText
|
||||||
|
* \sa SDL_HasPrimarySelectionText
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_SetPrimarySelectionText(const char *text);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get UTF-8 text from the primary selection, which must be freed with
|
||||||
|
* SDL_free().
|
||||||
|
*
|
||||||
|
* This functions returns empty string if there was not enough memory left for
|
||||||
|
* a copy of the primary selection's content.
|
||||||
|
*
|
||||||
|
* \returns the primary selection text on success or an empty string on
|
||||||
|
* failure; call SDL_GetError() for more information. Caller must
|
||||||
|
* call SDL_free() on the returned pointer when done with it (even if
|
||||||
|
* there was an error).
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_HasPrimarySelectionText
|
||||||
|
* \sa SDL_SetPrimarySelectionText
|
||||||
|
*/
|
||||||
|
extern DECLSPEC char * SDLCALL SDL_GetPrimarySelectionText(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Query whether the primary selection exists and contains a non-empty text
|
||||||
|
* string.
|
||||||
|
*
|
||||||
|
* \returns SDL_TRUE if the primary selection has text, or SDL_FALSE if it
|
||||||
|
* does not.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetPrimarySelectionText
|
||||||
|
* \sa SDL_SetPrimarySelectionText
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasPrimarySelectionText(void);
|
||||||
|
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
#include "SDL_config_windows.h"
|
#include "SDL_config_windows.h"
|
||||||
#elif defined(__WINRT__)
|
#elif defined(__WINRT__)
|
||||||
#include "SDL_config_winrt.h"
|
#include "SDL_config_winrt.h"
|
||||||
|
#elif defined(__WINGDK__)
|
||||||
|
#include "SDL_config_wingdk.h"
|
||||||
|
#elif defined(__XBOXONE__) || defined(__XBOXSERIES__)
|
||||||
|
#include "SDL_config_xbox.h"
|
||||||
#elif defined(__MACOSX__)
|
#elif defined(__MACOSX__)
|
||||||
#include "SDL_config_macosx.h"
|
#include "SDL_config_macosx.h"
|
||||||
#elif defined(__IPHONEOS__)
|
#elif defined(__IPHONEOS__)
|
||||||
|
@ -43,6 +47,8 @@
|
||||||
#include "SDL_config_os2.h"
|
#include "SDL_config_os2.h"
|
||||||
#elif defined(__EMSCRIPTEN__)
|
#elif defined(__EMSCRIPTEN__)
|
||||||
#include "SDL_config_emscripten.h"
|
#include "SDL_config_emscripten.h"
|
||||||
|
#elif defined(__NGAGE__)
|
||||||
|
#include "SDL_config_ngage.h"
|
||||||
#else
|
#else
|
||||||
/* This is a minimal configuration just to get SDL running on new platforms. */
|
/* This is a minimal configuration just to get SDL running on new platforms. */
|
||||||
#include "SDL_config_minimal.h"
|
#include "SDL_config_minimal.h"
|
||||||
|
|
|
@ -53,9 +53,8 @@
|
||||||
/* This is a set of defines to configure the SDL features */
|
/* This is a set of defines to configure the SDL features */
|
||||||
|
|
||||||
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
|
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
|
||||||
#if defined(__GNUC__) || defined(__DMC__) || defined(__WATCOMC__) || defined(__clang__) || defined(__BORLANDC__) || defined(__CODEGEARC__)
|
/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
|
||||||
#define HAVE_STDINT_H 1
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
typedef signed __int8 int8_t;
|
typedef signed __int8 int8_t;
|
||||||
typedef unsigned __int8 uint8_t;
|
typedef unsigned __int8 uint8_t;
|
||||||
typedef signed __int16 int16_t;
|
typedef signed __int16 int16_t;
|
||||||
|
@ -72,28 +71,9 @@ typedef unsigned int uintptr_t;
|
||||||
#endif
|
#endif
|
||||||
#define _UINTPTR_T_DEFINED
|
#define _UINTPTR_T_DEFINED
|
||||||
#endif
|
#endif
|
||||||
/* Older Visual C++ headers don't have the Win64-compatible typedefs... */
|
#else
|
||||||
#if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
|
#define HAVE_STDINT_H 1
|
||||||
#define DWORD_PTR DWORD
|
#endif /* Visual Studio 2008 */
|
||||||
#endif
|
|
||||||
#if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
|
|
||||||
#define LONG_PTR LONG
|
|
||||||
#endif
|
|
||||||
#else /* !__GNUC__ && !_MSC_VER */
|
|
||||||
typedef signed char int8_t;
|
|
||||||
typedef unsigned char uint8_t;
|
|
||||||
typedef signed short int16_t;
|
|
||||||
typedef unsigned short uint16_t;
|
|
||||||
typedef signed int int32_t;
|
|
||||||
typedef unsigned int uint32_t;
|
|
||||||
typedef signed long long int64_t;
|
|
||||||
typedef unsigned long long uint64_t;
|
|
||||||
#ifndef _SIZE_T_DEFINED_
|
|
||||||
#define _SIZE_T_DEFINED_
|
|
||||||
typedef unsigned int size_t;
|
|
||||||
#endif
|
|
||||||
typedef unsigned int uintptr_t;
|
|
||||||
#endif /* __GNUC__ || _MSC_VER */
|
|
||||||
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
|
#endif /* !_STDINT_H_ && !HAVE_STDINT_H */
|
||||||
|
|
||||||
#ifdef _WIN64
|
#ifdef _WIN64
|
||||||
|
@ -109,6 +89,7 @@ typedef unsigned int uintptr_t;
|
||||||
#define HAVE_DDRAW_H 1
|
#define HAVE_DDRAW_H 1
|
||||||
#define HAVE_DINPUT_H 1
|
#define HAVE_DINPUT_H 1
|
||||||
#define HAVE_DSOUND_H 1
|
#define HAVE_DSOUND_H 1
|
||||||
|
#ifndef __WATCOMC__
|
||||||
#define HAVE_DXGI_H 1
|
#define HAVE_DXGI_H 1
|
||||||
#define HAVE_XINPUT_H 1
|
#define HAVE_XINPUT_H 1
|
||||||
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */
|
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0A00 /* Windows 10 SDK */
|
||||||
|
@ -118,10 +99,17 @@ typedef unsigned int uintptr_t;
|
||||||
#define HAVE_D3D11_H 1
|
#define HAVE_D3D11_H 1
|
||||||
#define HAVE_ROAPI_H 1
|
#define HAVE_ROAPI_H 1
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(WDK_NTDDI_VERSION) && WDK_NTDDI_VERSION > 0x0A000008 /* 10.0.19041.0 */
|
||||||
|
#define HAVE_D3D12_H 1
|
||||||
|
#endif
|
||||||
|
#if defined(_WIN32_MAXVER) && _WIN32_MAXVER >= 0x0603 /* Windows 8.1 SDK */
|
||||||
|
#define HAVE_SHELLSCALINGAPI_H 1
|
||||||
|
#endif
|
||||||
#define HAVE_MMDEVICEAPI_H 1
|
#define HAVE_MMDEVICEAPI_H 1
|
||||||
#define HAVE_AUDIOCLIENT_H 1
|
#define HAVE_AUDIOCLIENT_H 1
|
||||||
#define HAVE_TPCSHRD_H 1
|
#define HAVE_TPCSHRD_H 1
|
||||||
#define HAVE_SENSORSAPI_H 1
|
#define HAVE_SENSORSAPI_H 1
|
||||||
|
#endif
|
||||||
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
#if (defined(_M_IX86) || defined(_M_X64) || defined(_M_AMD64)) && (defined(_MSC_VER) && _MSC_VER >= 1600)
|
||||||
#define HAVE_IMMINTRIN_H 1
|
#define HAVE_IMMINTRIN_H 1
|
||||||
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
#elif defined(__has_include) && (defined(__i386__) || defined(__x86_64))
|
||||||
|
@ -148,7 +136,11 @@ typedef unsigned int uintptr_t;
|
||||||
#define HAVE_REALLOC 1
|
#define HAVE_REALLOC 1
|
||||||
#define HAVE_FREE 1
|
#define HAVE_FREE 1
|
||||||
#define HAVE_ALLOCA 1
|
#define HAVE_ALLOCA 1
|
||||||
|
/* OpenWatcom requires specific calling conventions for qsort and bsearch */
|
||||||
|
#ifndef __WATCOMC__
|
||||||
#define HAVE_QSORT 1
|
#define HAVE_QSORT 1
|
||||||
|
#define HAVE_BSEARCH 1
|
||||||
|
#endif
|
||||||
#define HAVE_ABS 1
|
#define HAVE_ABS 1
|
||||||
#define HAVE_MEMSET 1
|
#define HAVE_MEMSET 1
|
||||||
#define HAVE_MEMCPY 1
|
#define HAVE_MEMCPY 1
|
||||||
|
@ -179,37 +171,40 @@ typedef unsigned int uintptr_t;
|
||||||
#define HAVE__WCSNICMP 1
|
#define HAVE__WCSNICMP 1
|
||||||
#define HAVE__WCSDUP 1
|
#define HAVE__WCSDUP 1
|
||||||
#define HAVE_ACOS 1
|
#define HAVE_ACOS 1
|
||||||
#define HAVE_ACOSF 1
|
|
||||||
#define HAVE_ASIN 1
|
#define HAVE_ASIN 1
|
||||||
#define HAVE_ASINF 1
|
|
||||||
#define HAVE_ATAN 1
|
#define HAVE_ATAN 1
|
||||||
#define HAVE_ATANF 1
|
|
||||||
#define HAVE_ATAN2 1
|
#define HAVE_ATAN2 1
|
||||||
|
#define HAVE_CEIL 1
|
||||||
|
#define HAVE_COS 1
|
||||||
|
#define HAVE_EXP 1
|
||||||
|
#define HAVE_FABS 1
|
||||||
|
#define HAVE_FLOOR 1
|
||||||
|
#define HAVE_FMOD 1
|
||||||
|
#define HAVE_LOG 1
|
||||||
|
#define HAVE_LOG10 1
|
||||||
|
#define HAVE_POW 1
|
||||||
|
#define HAVE_SIN 1
|
||||||
|
#define HAVE_SQRT 1
|
||||||
|
#define HAVE_TAN 1
|
||||||
|
#ifndef __WATCOMC__
|
||||||
|
#define HAVE_ACOSF 1
|
||||||
|
#define HAVE_ASINF 1
|
||||||
|
#define HAVE_ATANF 1
|
||||||
#define HAVE_ATAN2F 1
|
#define HAVE_ATAN2F 1
|
||||||
#define HAVE_CEILF 1
|
#define HAVE_CEILF 1
|
||||||
#define HAVE__COPYSIGN 1
|
#define HAVE__COPYSIGN 1
|
||||||
#define HAVE_COS 1
|
|
||||||
#define HAVE_COSF 1
|
#define HAVE_COSF 1
|
||||||
#define HAVE_EXP 1
|
|
||||||
#define HAVE_EXPF 1
|
#define HAVE_EXPF 1
|
||||||
#define HAVE_FABS 1
|
|
||||||
#define HAVE_FABSF 1
|
#define HAVE_FABSF 1
|
||||||
#define HAVE_FLOOR 1
|
|
||||||
#define HAVE_FLOORF 1
|
#define HAVE_FLOORF 1
|
||||||
#define HAVE_FMOD 1
|
|
||||||
#define HAVE_FMODF 1
|
#define HAVE_FMODF 1
|
||||||
#define HAVE_LOG 1
|
|
||||||
#define HAVE_LOGF 1
|
#define HAVE_LOGF 1
|
||||||
#define HAVE_LOG10 1
|
|
||||||
#define HAVE_LOG10F 1
|
#define HAVE_LOG10F 1
|
||||||
#define HAVE_POW 1
|
|
||||||
#define HAVE_POWF 1
|
#define HAVE_POWF 1
|
||||||
#define HAVE_SIN 1
|
|
||||||
#define HAVE_SINF 1
|
#define HAVE_SINF 1
|
||||||
#define HAVE_SQRT 1
|
|
||||||
#define HAVE_SQRTF 1
|
#define HAVE_SQRTF 1
|
||||||
#define HAVE_TAN 1
|
|
||||||
#define HAVE_TANF 1
|
#define HAVE_TANF 1
|
||||||
|
#endif
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
/* These functions were added with the VC++ 2013 C runtime library */
|
/* These functions were added with the VC++ 2013 C runtime library */
|
||||||
#if _MSC_VER >= 1800
|
#if _MSC_VER >= 1800
|
||||||
|
@ -229,8 +224,18 @@ typedef unsigned int uintptr_t;
|
||||||
#if _MSC_VER >= 1400
|
#if _MSC_VER >= 1400
|
||||||
#define HAVE__FSEEKI64 1
|
#define HAVE__FSEEKI64 1
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef _USE_MATH_DEFINES
|
||||||
|
#define HAVE_M_PI 1
|
||||||
#endif
|
#endif
|
||||||
#if !defined(_MSC_VER) || defined(_USE_MATH_DEFINES)
|
#elif defined(__WATCOMC__)
|
||||||
|
#define HAVE__FSEEKI64 1
|
||||||
|
#define HAVE_STRTOLL 1
|
||||||
|
#define HAVE_STRTOULL 1
|
||||||
|
#define HAVE_VSSCANF 1
|
||||||
|
#define HAVE_ROUND 1
|
||||||
|
#define HAVE_SCALBN 1
|
||||||
|
#define HAVE_TRUNC 1
|
||||||
|
#else
|
||||||
#define HAVE_M_PI 1
|
#define HAVE_M_PI 1
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
|
@ -288,6 +293,9 @@ typedef unsigned int uintptr_t;
|
||||||
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
#if !defined(SDL_VIDEO_RENDER_D3D11) && defined(HAVE_D3D11_H)
|
||||||
#define SDL_VIDEO_RENDER_D3D11 1
|
#define SDL_VIDEO_RENDER_D3D11 1
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(SDL_VIDEO_RENDER_D3D12) && defined(HAVE_D3D12_H)
|
||||||
|
#define SDL_VIDEO_RENDER_D3D12 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Enable OpenGL support */
|
/* Enable OpenGL support */
|
||||||
#ifndef SDL_VIDEO_OPENGL
|
#ifndef SDL_VIDEO_OPENGL
|
||||||
|
|
|
@ -79,7 +79,7 @@ _m_prefetch(void *__P)
|
||||||
#if !defined(SDL_DISABLE_ARM_NEON_H)
|
#if !defined(SDL_DISABLE_ARM_NEON_H)
|
||||||
# if defined(__ARM_NEON)
|
# if defined(__ARM_NEON)
|
||||||
# include <arm_neon.h>
|
# include <arm_neon.h>
|
||||||
# elif defined(__WINDOWS__) || defined(__WINRT__)
|
# elif defined(__WINDOWS__) || defined(__WINRT__) || defined(__GDK__)
|
||||||
/* Visual Studio doesn't define __ARM_ARCH, but _M_ARM (if set, always 7), and _M_ARM64 (if set, always 1). */
|
/* Visual Studio doesn't define __ARM_ARCH, but _M_ARM (if set, always 7), and _M_ARM64 (if set, always 1). */
|
||||||
# if defined(_M_ARM)
|
# if defined(_M_ARM)
|
||||||
# include <armintr.h>
|
# include <armintr.h>
|
||||||
|
@ -90,6 +90,7 @@ _m_prefetch(void *__P)
|
||||||
# include <arm64intr.h>
|
# include <arm64intr.h>
|
||||||
# include <arm64_neon.h>
|
# include <arm64_neon.h>
|
||||||
# define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
|
# define __ARM_NEON 1 /* Set __ARM_NEON so that it can be used elsewhere, at compile time */
|
||||||
|
# define __ARM_ARCH 8
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -98,6 +99,14 @@ _m_prefetch(void *__P)
|
||||||
#if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
|
#if defined(__3dNOW__) && !defined(SDL_DISABLE_MM3DNOW_H)
|
||||||
#include <mm3dnow.h>
|
#include <mm3dnow.h>
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__loongarch_sx) && !defined(SDL_DISABLE_LSX_H)
|
||||||
|
#include <lsxintrin.h>
|
||||||
|
#define __LSX__
|
||||||
|
#endif
|
||||||
|
#if defined(__loongarch_asx) && !defined(SDL_DISABLE_LASX_H)
|
||||||
|
#include <lasxintrin.h>
|
||||||
|
#define __LASX__
|
||||||
|
#endif
|
||||||
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
|
#if defined(HAVE_IMMINTRIN_H) && !defined(SDL_DISABLE_IMMINTRIN_H)
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#else
|
#else
|
||||||
|
@ -433,10 +442,36 @@ extern DECLSPEC SDL_bool SDLCALL SDL_HasARMSIMD(void);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasNEON(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the CPU has LSX (LOONGARCH SIMD) features.
|
||||||
|
*
|
||||||
|
* This always returns false on CPUs that aren't using LOONGARCH instruction
|
||||||
|
* sets.
|
||||||
|
*
|
||||||
|
* \returns SDL_TRUE if the CPU has LOONGARCH LSX features or SDL_FALSE if
|
||||||
|
* not.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasLSX(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine whether the CPU has LASX (LOONGARCH SIMD) features.
|
||||||
|
*
|
||||||
|
* This always returns false on CPUs that aren't using LOONGARCH instruction
|
||||||
|
* sets.
|
||||||
|
*
|
||||||
|
* \returns SDL_TRUE if the CPU has LOONGARCH LASX features or SDL_FALSE if
|
||||||
|
* not.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_bool SDLCALL SDL_HasLASX(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the amount of RAM configured in the system.
|
* Get the amount of RAM configured in the system.
|
||||||
*
|
*
|
||||||
* \returns the amount of RAM configured in the system in MB.
|
* \returns the amount of RAM configured in the system in MiB.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.1.
|
* \since This function is available since SDL 2.0.1.
|
||||||
*/
|
*/
|
||||||
|
@ -494,7 +529,7 @@ extern DECLSPEC size_t SDLCALL SDL_SIMDGetAlignment(void);
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.10.
|
* \since This function is available since SDL 2.0.10.
|
||||||
*
|
*
|
||||||
* \sa SDL_SIMDAlignment
|
* \sa SDL_SIMDGetAlignment
|
||||||
* \sa SDL_SIMDRealloc
|
* \sa SDL_SIMDRealloc
|
||||||
* \sa SDL_SIMDFree
|
* \sa SDL_SIMDFree
|
||||||
*/
|
*/
|
||||||
|
@ -518,7 +553,7 @@ extern DECLSPEC void * SDLCALL SDL_SIMDAlloc(const size_t len);
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*
|
*
|
||||||
* \sa SDL_SIMDAlignment
|
* \sa SDL_SIMDGetAlignment
|
||||||
* \sa SDL_SIMDAlloc
|
* \sa SDL_SIMDAlloc
|
||||||
* \sa SDL_SIMDFree
|
* \sa SDL_SIMDFree
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -192,6 +192,20 @@ typedef int64_t khronos_int64_t;
|
||||||
typedef uint64_t khronos_uint64_t;
|
typedef uint64_t khronos_uint64_t;
|
||||||
#define KHRONOS_SUPPORT_INT64 1
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
#define KHRONOS_SUPPORT_FLOAT 1
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
/*
|
||||||
|
* To support platform where unsigned long cannot be used interchangeably with
|
||||||
|
* inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t.
|
||||||
|
* Ideally, we could just use (u)intptr_t everywhere, but this could result in
|
||||||
|
* ABI breakage if khronos_uintptr_t is changed from unsigned long to
|
||||||
|
* unsigned long long or similar (this results in different C++ name mangling).
|
||||||
|
* To avoid changes for existing platforms, we restrict usage of intptr_t to
|
||||||
|
* platforms where the size of a pointer is larger than the size of long.
|
||||||
|
*/
|
||||||
|
#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__)
|
||||||
|
#if __SIZEOF_POINTER__ > __SIZEOF_LONG__
|
||||||
|
#define KHRONOS_USE_INTPTR_T
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__VMS ) || defined(__sgi)
|
#elif defined(__VMS ) || defined(__sgi)
|
||||||
|
|
||||||
|
@ -274,14 +288,21 @@ typedef unsigned short int khronos_uint16_t;
|
||||||
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
||||||
* to be the only LLP64 architecture in current use.
|
* to be the only LLP64 architecture in current use.
|
||||||
*/
|
*/
|
||||||
#ifdef _WIN64
|
#ifdef KHRONOS_USE_INTPTR_T
|
||||||
|
typedef intptr_t khronos_intptr_t;
|
||||||
|
typedef uintptr_t khronos_uintptr_t;
|
||||||
|
#elif defined(_WIN64)
|
||||||
typedef signed long long int khronos_intptr_t;
|
typedef signed long long int khronos_intptr_t;
|
||||||
typedef unsigned long long int khronos_uintptr_t;
|
typedef unsigned long long int khronos_uintptr_t;
|
||||||
typedef signed long long int khronos_ssize_t;
|
|
||||||
typedef unsigned long long int khronos_usize_t;
|
|
||||||
#else
|
#else
|
||||||
typedef signed long int khronos_intptr_t;
|
typedef signed long int khronos_intptr_t;
|
||||||
typedef unsigned long int khronos_uintptr_t;
|
typedef unsigned long int khronos_uintptr_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
typedef signed long long int khronos_ssize_t;
|
||||||
|
typedef unsigned long long int khronos_usize_t;
|
||||||
|
#else
|
||||||
typedef signed long int khronos_ssize_t;
|
typedef signed long int khronos_ssize_t;
|
||||||
typedef unsigned long int khronos_usize_t;
|
typedef unsigned long int khronos_usize_t;
|
||||||
#endif
|
#endif
|
||||||
|
@ -516,7 +537,7 @@ extern "C" {
|
||||||
** used to make the header, and the header can be found at
|
** used to make the header, and the header can be found at
|
||||||
** http://www.khronos.org/registry/egl
|
** http://www.khronos.org/registry/egl
|
||||||
**
|
**
|
||||||
** Khronos $Git commit SHA1: b35e89ca9a $ on $Git commit date: 2021-09-01 09:34:00 +0530 $
|
** Khronos $Git commit SHA1: 6fb1daea15 $ on $Git commit date: 2022-05-25 09:41:13 -0600 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*#include <EGL/eglplatform.h>*/
|
/*#include <EGL/eglplatform.h>*/
|
||||||
|
@ -525,7 +546,7 @@ extern "C" {
|
||||||
#define EGL_EGL_PROTOTYPES 1
|
#define EGL_EGL_PROTOTYPES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Generated on date 20210901 */
|
/* Generated on date 20220525 */
|
||||||
|
|
||||||
/* Generated C header for:
|
/* Generated C header for:
|
||||||
* API: egl
|
* API: egl
|
||||||
|
@ -860,12 +881,12 @@ extern "C" {
|
||||||
** used to make the header, and the header can be found at
|
** used to make the header, and the header can be found at
|
||||||
** http://www.khronos.org/registry/egl
|
** http://www.khronos.org/registry/egl
|
||||||
**
|
**
|
||||||
** Khronos $Git commit SHA1: b35e89ca9a $ on $Git commit date: 2021-09-01 09:34:00 +0530 $
|
** Khronos $Git commit SHA1: 6fb1daea15 $ on $Git commit date: 2022-05-25 09:41:13 -0600 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*#include <EGL/eglplatform.h>*/
|
/*#include <EGL/eglplatform.h>*/
|
||||||
|
|
||||||
#define EGL_EGLEXT_VERSION 20210901
|
#define EGL_EGLEXT_VERSION 20220525
|
||||||
|
|
||||||
/* Generated C header for:
|
/* Generated C header for:
|
||||||
* API: egl
|
* API: egl
|
||||||
|
@ -1569,6 +1590,10 @@ EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceBinaryEXT (EGLDeviceEXT device, EGLi
|
||||||
#define EGL_RENDERER_EXT 0x335F
|
#define EGL_RENDERER_EXT 0x335F
|
||||||
#endif /* EGL_EXT_device_query_name */
|
#endif /* EGL_EXT_device_query_name */
|
||||||
|
|
||||||
|
#ifndef EGL_EXT_explicit_device
|
||||||
|
#define EGL_EXT_explicit_device 1
|
||||||
|
#endif /* EGL_EXT_explicit_device */
|
||||||
|
|
||||||
#ifndef EGL_EXT_gl_colorspace_bt2020_linear
|
#ifndef EGL_EXT_gl_colorspace_bt2020_linear
|
||||||
#define EGL_EXT_gl_colorspace_bt2020_linear 1
|
#define EGL_EXT_gl_colorspace_bt2020_linear 1
|
||||||
#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
|
#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
|
||||||
|
@ -1794,6 +1819,31 @@ EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStr
|
||||||
#define EGL_METADATA_SCALING_EXT 50000
|
#define EGL_METADATA_SCALING_EXT 50000
|
||||||
#endif /* EGL_EXT_surface_SMPTE2086_metadata */
|
#endif /* EGL_EXT_surface_SMPTE2086_metadata */
|
||||||
|
|
||||||
|
#ifndef EGL_EXT_surface_compression
|
||||||
|
#define EGL_EXT_surface_compression 1
|
||||||
|
#define EGL_SURFACE_COMPRESSION_EXT 0x34B0
|
||||||
|
#define EGL_SURFACE_COMPRESSION_PLANE1_EXT 0x328E
|
||||||
|
#define EGL_SURFACE_COMPRESSION_PLANE2_EXT 0x328F
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT 0x34B1
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT 0x34B2
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT 0x34B4
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT 0x34B5
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT 0x34B6
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT 0x34B7
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT 0x34B8
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT 0x34B9
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT 0x34BA
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT 0x34BB
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT 0x34BC
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT 0x34BD
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT 0x34BE
|
||||||
|
#define EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT 0x34BF
|
||||||
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSUPPORTEDCOMPRESSIONRATESEXTPROC) (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
|
||||||
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||||
|
EGLAPI EGLBoolean EGLAPIENTRY eglQuerySupportedCompressionRatesEXT (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
|
||||||
|
#endif
|
||||||
|
#endif /* EGL_EXT_surface_compression */
|
||||||
|
|
||||||
#ifndef EGL_EXT_swap_buffers_with_damage
|
#ifndef EGL_EXT_swap_buffers_with_damage
|
||||||
#define EGL_EXT_swap_buffers_with_damage 1
|
#define EGL_EXT_swap_buffers_with_damage 1
|
||||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
|
||||||
|
@ -2028,12 +2078,12 @@ EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface sur
|
||||||
#define EGL_STREAM_IMAGE_ADD_NV 0x3374
|
#define EGL_STREAM_IMAGE_ADD_NV 0x3374
|
||||||
#define EGL_STREAM_IMAGE_REMOVE_NV 0x3375
|
#define EGL_STREAM_IMAGE_REMOVE_NV 0x3375
|
||||||
#define EGL_STREAM_IMAGE_AVAILABLE_NV 0x3376
|
#define EGL_STREAM_IMAGE_AVAILABLE_NV 0x3376
|
||||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
|
||||||
typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
|
typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
|
||||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
|
||||||
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
|
typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
|
||||||
#ifdef EGL_EGLEXT_PROTOTYPES
|
#ifdef EGL_EGLEXT_PROTOTYPES
|
||||||
EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, EGLuint64KHR *modifiers, EGLAttrib *attrib_list);
|
EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
|
||||||
EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
|
EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
|
||||||
EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
|
EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
|
||||||
EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
|
EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
static __inline__ void __attribute__((__always_inline__, __nodebug__))
|
static __inline__ void __attribute__((__always_inline__, __nodebug__))
|
||||||
_m_prefetch(void *__P)
|
_m_prefetch(void *__P)
|
||||||
{
|
{
|
||||||
__builtin_prefetch (__P, 0, 3 /* _MM_HINT_T0 */);
|
__builtin_prefetch(__P, 0, 3 /* _MM_HINT_T0 */);
|
||||||
}
|
}
|
||||||
#endif /* __PRFCHWINTRIN_H */
|
#endif /* __PRFCHWINTRIN_H */
|
||||||
#endif /* __clang__ */
|
#endif /* __clang__ */
|
||||||
|
@ -59,7 +59,7 @@ _m_prefetch(void *__P)
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#define SDL_BYTEORDER __BYTE_ORDER
|
#define SDL_BYTEORDER __BYTE_ORDER
|
||||||
#elif defined(__OpenBSD__)
|
#elif defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#define SDL_BYTEORDER BYTE_ORDER
|
#define SDL_BYTEORDER BYTE_ORDER
|
||||||
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
#elif defined(__FreeBSD__) || defined(__NetBSD__)
|
||||||
|
@ -78,7 +78,7 @@ _m_prefetch(void *__P)
|
||||||
#if defined(__hppa__) || \
|
#if defined(__hppa__) || \
|
||||||
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
|
||||||
(defined(__MIPS__) && defined(__MIPSEB__)) || \
|
(defined(__MIPS__) && defined(__MIPSEB__)) || \
|
||||||
defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
|
defined(__ppc__) || defined(__POWERPC__) || defined(__powerpc__) || defined(__PPC__) || \
|
||||||
defined(__sparc__)
|
defined(__sparc__)
|
||||||
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
#define SDL_BYTEORDER SDL_BIG_ENDIAN
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -118,6 +118,7 @@ typedef enum
|
||||||
SDL_JOYBUTTONUP, /**< Joystick button released */
|
SDL_JOYBUTTONUP, /**< Joystick button released */
|
||||||
SDL_JOYDEVICEADDED, /**< A new joystick has been inserted into the system */
|
SDL_JOYDEVICEADDED, /**< A new joystick has been inserted into the system */
|
||||||
SDL_JOYDEVICEREMOVED, /**< An opened joystick has been removed */
|
SDL_JOYDEVICEREMOVED, /**< An opened joystick has been removed */
|
||||||
|
SDL_JOYBATTERYUPDATED, /**< Joystick battery level change */
|
||||||
|
|
||||||
/* Game controller events */
|
/* Game controller events */
|
||||||
SDL_CONTROLLERAXISMOTION = 0x650, /**< Game controller axis motion */
|
SDL_CONTROLLERAXISMOTION = 0x650, /**< Game controller axis motion */
|
||||||
|
@ -142,7 +143,7 @@ typedef enum
|
||||||
SDL_MULTIGESTURE,
|
SDL_MULTIGESTURE,
|
||||||
|
|
||||||
/* Clipboard events */
|
/* Clipboard events */
|
||||||
SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
|
SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard or primary selection changed */
|
||||||
|
|
||||||
/* Drag and drop events */
|
/* Drag and drop events */
|
||||||
SDL_DROPFILE = 0x1000, /**< The system requests a file open */
|
SDL_DROPFILE = 0x1000, /**< The system requests a file open */
|
||||||
|
@ -317,6 +318,8 @@ typedef struct SDL_MouseWheelEvent
|
||||||
Uint32 direction; /**< Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back */
|
Uint32 direction; /**< Set to one of the SDL_MOUSEWHEEL_* defines. When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back */
|
||||||
float preciseX; /**< The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18) */
|
float preciseX; /**< The amount scrolled horizontally, positive to the right and negative to the left, with float precision (added in 2.0.18) */
|
||||||
float preciseY; /**< The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18) */
|
float preciseY; /**< The amount scrolled vertically, positive away from the user and negative toward the user, with float precision (added in 2.0.18) */
|
||||||
|
Sint32 mouseX; /**< X coordinate, relative to window (added in 2.26.0) */
|
||||||
|
Sint32 mouseY; /**< Y coordinate, relative to window (added in 2.26.0) */
|
||||||
} SDL_MouseWheelEvent;
|
} SDL_MouseWheelEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -395,6 +398,16 @@ typedef struct SDL_JoyDeviceEvent
|
||||||
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
|
Sint32 which; /**< The joystick device index for the ADDED event, instance id for the REMOVED event */
|
||||||
} SDL_JoyDeviceEvent;
|
} SDL_JoyDeviceEvent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Joysick battery level change event structure (event.jbattery.*)
|
||||||
|
*/
|
||||||
|
typedef struct SDL_JoyBatteryEvent
|
||||||
|
{
|
||||||
|
Uint32 type; /**< ::SDL_JOYBATTERYUPDATED */
|
||||||
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
|
SDL_JoystickPowerLevel level; /**< The joystick battery level */
|
||||||
|
} SDL_JoyBatteryEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Game controller axis motion event structure (event.caxis.*)
|
* \brief Game controller axis motion event structure (event.caxis.*)
|
||||||
|
@ -463,6 +476,7 @@ typedef struct SDL_ControllerSensorEvent
|
||||||
SDL_JoystickID which; /**< The joystick instance id */
|
SDL_JoystickID which; /**< The joystick instance id */
|
||||||
Sint32 sensor; /**< The type of the sensor, one of the values of ::SDL_SensorType */
|
Sint32 sensor; /**< The type of the sensor, one of the values of ::SDL_SensorType */
|
||||||
float data[3]; /**< Up to 3 values from the sensor, as defined in SDL_sensor.h */
|
float data[3]; /**< Up to 3 values from the sensor, as defined in SDL_sensor.h */
|
||||||
|
Uint64 timestamp_us; /**< The timestamp of the sensor reading in microseconds, if the hardware provides this information. */
|
||||||
} SDL_ControllerSensorEvent;
|
} SDL_ControllerSensorEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -554,6 +568,7 @@ typedef struct SDL_SensorEvent
|
||||||
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
Uint32 timestamp; /**< In milliseconds, populated using SDL_GetTicks() */
|
||||||
Sint32 which; /**< The instance ID of the sensor */
|
Sint32 which; /**< The instance ID of the sensor */
|
||||||
float data[6]; /**< Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData() */
|
float data[6]; /**< Up to 6 values from the sensor - additional values can be queried using SDL_SensorGetData() */
|
||||||
|
Uint64 timestamp_us; /**< The timestamp of the sensor reading in microseconds, if the hardware provides this information. */
|
||||||
} SDL_SensorEvent;
|
} SDL_SensorEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -625,6 +640,7 @@ typedef union SDL_Event
|
||||||
SDL_JoyHatEvent jhat; /**< Joystick hat event data */
|
SDL_JoyHatEvent jhat; /**< Joystick hat event data */
|
||||||
SDL_JoyButtonEvent jbutton; /**< Joystick button event data */
|
SDL_JoyButtonEvent jbutton; /**< Joystick button event data */
|
||||||
SDL_JoyDeviceEvent jdevice; /**< Joystick device change event data */
|
SDL_JoyDeviceEvent jdevice; /**< Joystick device change event data */
|
||||||
|
SDL_JoyBatteryEvent jbattery; /**< Joystick battery event data */
|
||||||
SDL_ControllerAxisEvent caxis; /**< Game Controller axis event data */
|
SDL_ControllerAxisEvent caxis; /**< Game Controller axis event data */
|
||||||
SDL_ControllerButtonEvent cbutton; /**< Game Controller button event data */
|
SDL_ControllerButtonEvent cbutton; /**< Game Controller button event data */
|
||||||
SDL_ControllerDeviceEvent cdevice; /**< Game Controller device event data */
|
SDL_ControllerDeviceEvent cdevice; /**< Game Controller device event data */
|
||||||
|
|
|
@ -60,6 +60,10 @@ extern "C" {
|
||||||
* - `parent`: the containing directory of the bundle. For example:
|
* - `parent`: the containing directory of the bundle. For example:
|
||||||
* `/Applications/SDLApp/`
|
* `/Applications/SDLApp/`
|
||||||
*
|
*
|
||||||
|
* **Nintendo 3DS Specific Functionality**: This function returns "romfs"
|
||||||
|
* directory of the application as it is uncommon to store resources outside
|
||||||
|
* the executable. As such it is not a writable directory.
|
||||||
|
*
|
||||||
* The returned path is guaranteed to end with a path separator ('\' on
|
* The returned path is guaranteed to end with a path separator ('\' on
|
||||||
* Windows, '/' on most other platforms).
|
* Windows, '/' on most other platforms).
|
||||||
*
|
*
|
||||||
|
@ -92,7 +96,7 @@ extern DECLSPEC char *SDLCALL SDL_GetBasePath(void);
|
||||||
*
|
*
|
||||||
* `C:\\Users\\bob\\AppData\\Roaming\\My Company\\My Program Name\\`
|
* `C:\\Users\\bob\\AppData\\Roaming\\My Company\\My Program Name\\`
|
||||||
*
|
*
|
||||||
* On Linux, the string might look like"
|
* On Linux, the string might look like:
|
||||||
*
|
*
|
||||||
* `/home/bob/.local/share/My Program Name/`
|
* `/home/bob/.local/share/My Program Name/`
|
||||||
*
|
*
|
||||||
|
|
|
@ -69,7 +69,11 @@ typedef enum
|
||||||
SDL_CONTROLLER_TYPE_VIRTUAL,
|
SDL_CONTROLLER_TYPE_VIRTUAL,
|
||||||
SDL_CONTROLLER_TYPE_PS5,
|
SDL_CONTROLLER_TYPE_PS5,
|
||||||
SDL_CONTROLLER_TYPE_AMAZON_LUNA,
|
SDL_CONTROLLER_TYPE_AMAZON_LUNA,
|
||||||
SDL_CONTROLLER_TYPE_GOOGLE_STADIA
|
SDL_CONTROLLER_TYPE_GOOGLE_STADIA,
|
||||||
|
SDL_CONTROLLER_TYPE_NVIDIA_SHIELD,
|
||||||
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_LEFT,
|
||||||
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_RIGHT,
|
||||||
|
SDL_CONTROLLER_TYPE_NINTENDO_SWITCH_JOYCON_PAIR
|
||||||
} SDL_GameControllerType;
|
} SDL_GameControllerType;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -289,6 +293,25 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsGameController(int joystick_index);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_index);
|
extern DECLSPEC const char *SDLCALL SDL_GameControllerNameForIndex(int joystick_index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implementation dependent path for the game controller.
|
||||||
|
*
|
||||||
|
* This function can be called before any controllers are opened.
|
||||||
|
*
|
||||||
|
* `joystick_index` is the same as the `device_index` passed to
|
||||||
|
* SDL_JoystickOpen().
|
||||||
|
*
|
||||||
|
* \param joystick_index the device_index of a device, from zero to
|
||||||
|
* SDL_NumJoysticks()-1
|
||||||
|
* \returns the implementation-dependent path for the game controller, or NULL
|
||||||
|
* if there is no path or the index is invalid.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GameControllerPath
|
||||||
|
*/
|
||||||
|
extern DECLSPEC const char *SDLCALL SDL_GameControllerPathForIndex(int joystick_index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of a game controller.
|
* Get the type of a game controller.
|
||||||
*
|
*
|
||||||
|
@ -386,6 +409,23 @@ extern DECLSPEC SDL_GameController *SDLCALL SDL_GameControllerFromPlayerIndex(in
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController *gamecontroller);
|
extern DECLSPEC const char *SDLCALL SDL_GameControllerName(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implementation-dependent path for an opened game controller.
|
||||||
|
*
|
||||||
|
* This is the same path as returned by SDL_GameControllerNameForIndex(), but
|
||||||
|
* it takes a controller identifier instead of the (unstable) device index.
|
||||||
|
*
|
||||||
|
* \param gamecontroller a game controller identifier previously returned by
|
||||||
|
* SDL_GameControllerOpen()
|
||||||
|
* \returns the implementation dependent path for the game controller, or NULL
|
||||||
|
* if there is no path or the identifier passed is invalid.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GameControllerPathForIndex
|
||||||
|
*/
|
||||||
|
extern DECLSPEC const char *SDLCALL SDL_GameControllerPath(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the type of this currently opened controller
|
* Get the type of this currently opened controller
|
||||||
*
|
*
|
||||||
|
@ -415,7 +455,8 @@ extern DECLSPEC int SDLCALL SDL_GameControllerGetPlayerIndex(SDL_GameController
|
||||||
* Set the player index of an opened game controller.
|
* Set the player index of an opened game controller.
|
||||||
*
|
*
|
||||||
* \param gamecontroller the game controller object to adjust.
|
* \param gamecontroller the game controller object to adjust.
|
||||||
* \param player_index Player index to assign to this controller.
|
* \param player_index Player index to assign to this controller, or -1 to
|
||||||
|
* clear the player index and turn off player LEDs.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.12.
|
* \since This function is available since SDL 2.0.12.
|
||||||
*/
|
*/
|
||||||
|
@ -457,6 +498,18 @@ extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProduct(SDL_GameController *
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProductVersion(SDL_GameController *gamecontroller);
|
extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetProductVersion(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the firmware version of an opened controller, if available.
|
||||||
|
*
|
||||||
|
* If the firmware version isn't available this function returns 0.
|
||||||
|
*
|
||||||
|
* \param gamecontroller the game controller object to query.
|
||||||
|
* \return the controller firmware version, or zero if unavailable.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC Uint16 SDLCALL SDL_GameControllerGetFirmwareVersion(SDL_GameController *gamecontroller);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the serial number of an opened controller, if available.
|
* Get the serial number of an opened controller, if available.
|
||||||
*
|
*
|
||||||
|
@ -701,7 +754,7 @@ extern DECLSPEC SDL_GameControllerButton SDLCALL SDL_GameControllerGetButtonFrom
|
||||||
* The caller should not SDL_free() the returned string.
|
* The caller should not SDL_free() the returned string.
|
||||||
*
|
*
|
||||||
* \param button an enum value for a given SDL_GameControllerButton
|
* \param button an enum value for a given SDL_GameControllerButton
|
||||||
* \returns a string for the given button, or NULL if an invalid axis is
|
* \returns a string for the given button, or NULL if an invalid button is
|
||||||
* specified. The string returned is of the format used by
|
* specified. The string returned is of the format used by
|
||||||
* SDL_GameController mapping strings.
|
* SDL_GameController mapping strings.
|
||||||
*
|
*
|
||||||
|
@ -842,6 +895,25 @@ extern DECLSPEC float SDLCALL SDL_GameControllerGetSensorDataRate(SDL_GameContro
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_GameControllerGetSensorData(SDL_GameController *gamecontroller, SDL_SensorType type, float *data, int num_values);
|
extern DECLSPEC int SDLCALL SDL_GameControllerGetSensorData(SDL_GameController *gamecontroller, SDL_SensorType type, float *data, int num_values);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current state of a game controller sensor with the timestamp of the
|
||||||
|
* last update.
|
||||||
|
*
|
||||||
|
* The number of values and interpretation of the data is sensor dependent.
|
||||||
|
* See SDL_sensor.h for the details for each type of sensor.
|
||||||
|
*
|
||||||
|
* \param gamecontroller The controller to query
|
||||||
|
* \param type The type of sensor to query
|
||||||
|
* \param timestamp A pointer filled with the timestamp in microseconds of the
|
||||||
|
* current sensor reading if available, or 0 if not
|
||||||
|
* \param data A pointer filled with the current sensor state
|
||||||
|
* \param num_values The number of values to write to data
|
||||||
|
* \return 0 or -1 if an error occurred.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GameControllerGetSensorDataWithTimestamp(SDL_GameController *gamecontroller, SDL_SensorType type, Uint64 *timestamp, float *data, int num_values);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start a rumble effect on a game controller.
|
* Start a rumble effect on a game controller.
|
||||||
*
|
*
|
||||||
|
|
100
Windows/SDL2/include/SDL_guid.h
Normal file
100
Windows/SDL2/include/SDL_guid.h
Normal file
|
@ -0,0 +1,100 @@
|
||||||
|
/*
|
||||||
|
Simple DirectMedia Layer
|
||||||
|
Copyright (C) 1997-2022 Sam Lantinga <slouken@libsdl.org>
|
||||||
|
|
||||||
|
This software is provided 'as-is', without any express or implied
|
||||||
|
warranty. In no event will the authors be held liable for any damages
|
||||||
|
arising from the use of this software.
|
||||||
|
|
||||||
|
Permission is granted to anyone to use this software for any purpose,
|
||||||
|
including commercial applications, and to alter it and redistribute it
|
||||||
|
freely, subject to the following restrictions:
|
||||||
|
|
||||||
|
1. The origin of this software must not be misrepresented; you must not
|
||||||
|
claim that you wrote the original software. If you use this software
|
||||||
|
in a product, an acknowledgment in the product documentation would be
|
||||||
|
appreciated but is not required.
|
||||||
|
2. Altered source versions must be plainly marked as such, and must not be
|
||||||
|
misrepresented as being the original software.
|
||||||
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \file SDL_guid.h
|
||||||
|
*
|
||||||
|
* Include file for handling ::SDL_GUID values.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef SDL_guid_h_
|
||||||
|
#define SDL_guid_h_
|
||||||
|
|
||||||
|
#include "SDL_stdinc.h"
|
||||||
|
#include "SDL_error.h"
|
||||||
|
|
||||||
|
#include "begin_code.h"
|
||||||
|
/* Set up for C function definitions, even when using C++ */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An SDL_GUID is a 128-bit identifier for an input device that
|
||||||
|
* identifies that device across runs of SDL programs on the same
|
||||||
|
* platform. If the device is detached and then re-attached to a
|
||||||
|
* different port, or if the base system is rebooted, the device
|
||||||
|
* should still report the same GUID.
|
||||||
|
*
|
||||||
|
* GUIDs are as precise as possible but are not guaranteed to
|
||||||
|
* distinguish physically distinct but equivalent devices. For
|
||||||
|
* example, two game controllers from the same vendor with the same
|
||||||
|
* product ID and revision may have the same GUID.
|
||||||
|
*
|
||||||
|
* GUIDs may be platform-dependent (i.e., the same device may report
|
||||||
|
* different GUIDs on different operating systems).
|
||||||
|
*/
|
||||||
|
typedef struct {
|
||||||
|
Uint8 data[16];
|
||||||
|
} SDL_GUID;
|
||||||
|
|
||||||
|
/* Function prototypes */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get an ASCII string representation for a given ::SDL_GUID.
|
||||||
|
*
|
||||||
|
* You should supply at least 33 bytes for pszGUID.
|
||||||
|
*
|
||||||
|
* \param guid the ::SDL_GUID you wish to convert to string
|
||||||
|
* \param pszGUID buffer in which to write the ASCII string
|
||||||
|
* \param cbGUID the size of pszGUID
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GUIDFromString
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_GUIDToString(SDL_GUID guid, char *pszGUID, int cbGUID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert a GUID string into a ::SDL_GUID structure.
|
||||||
|
*
|
||||||
|
* Performs no error checking. If this function is given a string containing
|
||||||
|
* an invalid GUID, the function will silently succeed, but the GUID generated
|
||||||
|
* will not be useful.
|
||||||
|
*
|
||||||
|
* \param pchGUID string containing an ASCII representation of a GUID
|
||||||
|
* \returns a ::SDL_GUID structure.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GUIDToString
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_GUID SDLCALL SDL_GUIDFromString(const char *pchGUID);
|
||||||
|
|
||||||
|
/* Ends C function definitions when using C++ */
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
#include "close_code.h"
|
||||||
|
|
||||||
|
#endif /* SDL_guid_h_ */
|
||||||
|
|
||||||
|
/* vi: set ts=4 sw=4 expandtab: */
|
|
@ -278,10 +278,7 @@ extern "C" {
|
||||||
* If this hint isn't specified to a valid setting, or libsamplerate isn't
|
* If this hint isn't specified to a valid setting, or libsamplerate isn't
|
||||||
* available, SDL will use the default, internal resampling algorithm.
|
* available, SDL will use the default, internal resampling algorithm.
|
||||||
*
|
*
|
||||||
* Note that this is currently only applicable to resampling audio that is
|
* As of SDL 2.26, SDL_ConvertAudio() respects this hint when libsamplerate is available.
|
||||||
* being written to a device for playback or audio being read from a device
|
|
||||||
* for capture. SDL_AudioCVT always uses the default resampler (although this
|
|
||||||
* might change for SDL 2.1).
|
|
||||||
*
|
*
|
||||||
* This hint is currently only checked at audio subsystem initialization.
|
* This hint is currently only checked at audio subsystem initialization.
|
||||||
*
|
*
|
||||||
|
@ -392,13 +389,14 @@ extern "C" {
|
||||||
#define SDL_HINT_ENABLE_STEAM_CONTROLLERS "SDL_ENABLE_STEAM_CONTROLLERS"
|
#define SDL_HINT_ENABLE_STEAM_CONTROLLERS "SDL_ENABLE_STEAM_CONTROLLERS"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether SDL logs all events pushed onto its internal queue.
|
* \brief A variable controlling verbosity of the logging of SDL events pushed onto the internal queue.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values, from least to most verbose:
|
||||||
*
|
*
|
||||||
* "0" - Don't log any events (default)
|
* "0" - Don't log any events (default)
|
||||||
* "1" - Log all events except mouse and finger motion, which are pretty spammy.
|
* "1" - Log most events (other than the really spammy ones).
|
||||||
* "2" - Log all events.
|
* "2" - Include mouse and finger motion events.
|
||||||
|
* "3" - Include SDL_SysWMEvent events.
|
||||||
*
|
*
|
||||||
* This is generally meant to be used to debug SDL itself, but can be useful
|
* This is generally meant to be used to debug SDL itself, but can be useful
|
||||||
* for application developers that need better visibility into what is going
|
* for application developers that need better visibility into what is going
|
||||||
|
@ -541,6 +539,14 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
|
#define SDL_HINT_GRAB_KEYBOARD "SDL_GRAB_KEYBOARD"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable containing a list of devices to ignore in SDL_hid_enumerate()
|
||||||
|
*
|
||||||
|
* For example, to ignore the Shanwan DS3 controller and any Valve controller, you might
|
||||||
|
* have the string "0x2563/0x0523,0x28de/0x0000"
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_HIDAPI_IGNORE_DEVICES "SDL_HIDAPI_IGNORE_DEVICES"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the idle timer is disabled on iOS.
|
* \brief A variable controlling whether the idle timer is disabled on iOS.
|
||||||
*
|
*
|
||||||
|
@ -651,18 +657,38 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE "SDL_JOYSTICK_GAMECUBE_RUMBLE_BRAKE"
|
#define SDL_HINT_JOYSTICK_GAMECUBE_RUMBLE_BRAKE "SDL_JOYSTICK_GAMECUBE_RUMBLE_BRAKE"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether Switch Joy-Cons should be treated the same as Switch Pro Controllers when using the HIDAPI driver.
|
* \brief A variable controlling whether the HIDAPI driver for Nintendo Switch Joy-Cons should be used.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
* "0" - basic Joy-Con support with no analog input (the default)
|
* "0" - HIDAPI driver is not used
|
||||||
* "1" - Joy-Cons treated as half full Pro Controllers with analog inputs and sensors
|
* "1" - HIDAPI driver is used
|
||||||
*
|
*
|
||||||
* This does not combine Joy-Cons into a single controller. That's up to the user.
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS "SDL_JOYSTICK_HIDAPI_JOY_CONS"
|
#define SDL_HINT_JOYSTICK_HIDAPI_JOY_CONS "SDL_JOYSTICK_HIDAPI_JOY_CONS"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* \brief A variable controlling whether Nintendo Switch Joy-Con controllers will be combined into a single Pro-like controller when using the HIDAPI driver
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Left and right Joy-Con controllers will not be combined and each will be a mini-gamepad
|
||||||
|
* "1" - Left and right Joy-Con controllers will be combined into a single controller (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_COMBINE_JOY_CONS "SDL_JOYSTICK_HIDAPI_COMBINE_JOY_CONS"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether Nintendo Switch Joy-Con controllers will be in vertical mode when using the HIDAPI driver
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Left and right Joy-Con controllers will not be in vertical mode (the default)
|
||||||
|
* "1" - Left and right Joy-Con controllers will be in vertical mode
|
||||||
|
*
|
||||||
|
* This hint must be set before calling SDL_Init(SDL_INIT_GAMECONTROLLER)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS "SDL_JOYSTICK_HIDAPI_VERTICAL_JOY_CONS"
|
||||||
|
|
||||||
|
/**
|
||||||
* \brief A variable controlling whether the HIDAPI driver for Amazon Luna controllers connected via Bluetooth should be used.
|
* \brief A variable controlling whether the HIDAPI driver for Amazon Luna controllers connected via Bluetooth should be used.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -673,6 +699,42 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_LUNA "SDL_JOYSTICK_HIDAPI_LUNA"
|
#define SDL_HINT_JOYSTICK_HIDAPI_LUNA "SDL_JOYSTICK_HIDAPI_LUNA"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for Nintendo Online classic controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_NINTENDO_CLASSIC "SDL_JOYSTICK_HIDAPI_NINTENDO_CLASSIC"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for NVIDIA SHIELD controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_SHIELD "SDL_JOYSTICK_HIDAPI_SHIELD"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for PS3 controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI on macOS, and "0" on other platforms.
|
||||||
|
*
|
||||||
|
* It is not possible to use this driver on Windows, due to limitations in the default drivers
|
||||||
|
* installed. See https://github.com/ViGEm/DsHidMini for an alternative driver on Windows.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_PS3 "SDL_JOYSTICK_HIDAPI_PS3"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the HIDAPI driver for PS4 controllers should be used.
|
* \brief A variable controlling whether the HIDAPI driver for PS4 controllers should be used.
|
||||||
*
|
*
|
||||||
|
@ -755,7 +817,7 @@ extern "C" {
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_STADIA "SDL_JOYSTICK_HIDAPI_STADIA"
|
#define SDL_HINT_JOYSTICK_HIDAPI_STADIA "SDL_JOYSTICK_HIDAPI_STADIA"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the HIDAPI driver for Steam Controllers should be used.
|
* \brief A variable controlling whether the HIDAPI driver for Bluetooth Steam Controllers should be used.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
* "0" - HIDAPI driver is not used
|
* "0" - HIDAPI driver is not used
|
||||||
|
@ -778,16 +840,56 @@ extern "C" {
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH "SDL_JOYSTICK_HIDAPI_SWITCH"
|
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH "SDL_JOYSTICK_HIDAPI_SWITCH"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the Home button LED should be turned on when a Nintendo Switch controller is opened
|
* \brief A variable controlling whether the Home button LED should be turned on when a Nintendo Switch Pro controller is opened
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
* "0" - home button LED is turned off
|
* "0" - home button LED is turned off
|
||||||
* "1" - home button LED is turned on
|
* "1" - home button LED is turned on
|
||||||
*
|
*
|
||||||
* By default the Home button LED state is not changed.
|
* By default the Home button LED state is not changed. This hint can also be set to a floating point value between 0.0 and 1.0 which controls the brightness of the Home button LED.
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED "SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED"
|
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_HOME_LED "SDL_JOYSTICK_HIDAPI_SWITCH_HOME_LED"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the Home button LED should be turned on when a Nintendo Switch Joy-Con controller is opened
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - home button LED is turned off
|
||||||
|
* "1" - home button LED is turned on
|
||||||
|
*
|
||||||
|
* By default the Home button LED state is not changed. This hint can also be set to a floating point value between 0.0 and 1.0 which controls the brightness of the Home button LED.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_JOYCON_HOME_LED "SDL_JOYSTICK_HIDAPI_JOYCON_HOME_LED"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the player LEDs should be lit to indicate which player is associated with a Nintendo Switch controller.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - player LEDs are not enabled
|
||||||
|
* "1" - player LEDs are enabled (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED "SDL_JOYSTICK_HIDAPI_SWITCH_PLAYER_LED"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for Nintendo Wii and Wii U controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* This driver doesn't work with the dolphinbar, so the default is SDL_FALSE for now.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_WII "SDL_JOYSTICK_HIDAPI_WII"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the player LEDs should be lit to indicate which player is associated with a Wii controller.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - player LEDs are not enabled
|
||||||
|
* "1" - player LEDs are enabled (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_WII_PLAYER_LED "SDL_JOYSTICK_HIDAPI_WII_PLAYER_LED"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the HIDAPI driver for XBox controllers should be used.
|
* \brief A variable controlling whether the HIDAPI driver for XBox controllers should be used.
|
||||||
*
|
*
|
||||||
|
@ -799,7 +901,60 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX "SDL_JOYSTICK_HIDAPI_XBOX"
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX "SDL_JOYSTICK_HIDAPI_XBOX"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for XBox 360 controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI_XBOX
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360 "SDL_JOYSTICK_HIDAPI_XBOX_360"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the player LEDs should be lit to indicate which player is associated with an Xbox 360 controller.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - player LEDs are not enabled
|
||||||
|
* "1" - player LEDs are enabled (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED "SDL_JOYSTICK_HIDAPI_XBOX_360_PLAYER_LED"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for XBox 360 wireless controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI_XBOX_360
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_360_WIRELESS "SDL_JOYSTICK_HIDAPI_XBOX_360_WIRELESS"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the HIDAPI driver for XBox One controllers should be used.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - HIDAPI driver is not used
|
||||||
|
* "1" - HIDAPI driver is used
|
||||||
|
*
|
||||||
|
* The default is the value of SDL_HINT_JOYSTICK_HIDAPI_XBOX
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE "SDL_JOYSTICK_HIDAPI_XBOX_ONE"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the Home button LED should be turned on when an Xbox One controller is opened
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - home button LED is turned off
|
||||||
|
* "1" - home button LED is turned on
|
||||||
|
*
|
||||||
|
* By default the Home button LED state is not changed. This hint can also be set to a floating point value between 0.0 and 1.0 which controls the brightness of the Home button LED. The default brightness is 0.4.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED "SDL_JOYSTICK_HIDAPI_XBOX_ONE_HOME_LED"
|
||||||
|
|
||||||
|
/**
|
||||||
* \brief A variable controlling whether the RAWINPUT joystick drivers should be used for better handling XInput-capable devices.
|
* \brief A variable controlling whether the RAWINPUT joystick drivers should be used for better handling XInput-capable devices.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -808,7 +963,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_RAWINPUT "SDL_JOYSTICK_RAWINPUT"
|
#define SDL_HINT_JOYSTICK_RAWINPUT "SDL_JOYSTICK_RAWINPUT"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the RAWINPUT driver should pull correlated data from XInput.
|
* \brief A variable controlling whether the RAWINPUT driver should pull correlated data from XInput.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -821,7 +976,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"
|
#define SDL_HINT_JOYSTICK_RAWINPUT_CORRELATE_XINPUT "SDL_JOYSTICK_RAWINPUT_CORRELATE_XINPUT"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the ROG Chakram mice should show up as joysticks
|
* \brief A variable controlling whether the ROG Chakram mice should show up as joysticks
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -830,7 +985,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_ROG_CHAKRAM "SDL_JOYSTICK_ROG_CHAKRAM"
|
#define SDL_HINT_JOYSTICK_ROG_CHAKRAM "SDL_JOYSTICK_ROG_CHAKRAM"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether a separate thread should be used
|
* \brief A variable controlling whether a separate thread should be used
|
||||||
* for handling joystick detection and raw input messages on Windows
|
* for handling joystick detection and raw input messages on Windows
|
||||||
*
|
*
|
||||||
|
@ -864,14 +1019,32 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER "SDL_KMSDRM_REQUIRE_DRM_MASTER"
|
#define SDL_HINT_KMSDRM_REQUIRE_DRM_MASTER "SDL_KMSDRM_REQUIRE_DRM_MASTER"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A comma separated list of devices to open as joysticks
|
* \brief A comma separated list of devices to open as joysticks
|
||||||
*
|
*
|
||||||
* This variable is currently only used by the Linux joystick driver.
|
* This variable is currently only used by the Linux joystick driver.
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_JOYSTICK_DEVICE "SDL_JOYSTICK_DEVICE"
|
#define SDL_HINT_JOYSTICK_DEVICE "SDL_JOYSTICK_DEVICE"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* \brief A variable controlling whether joysticks on Linux will always treat 'hat' axis inputs (ABS_HAT0X - ABS_HAT3Y) as 8-way digital hats without checking whether they may be analog.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Only map hat axis inputs to digital hat outputs if the input axes appear to actually be digital (the default)
|
||||||
|
* "1" - Always handle the input axes numbered ABS_HAT0X to ABS_HAT3Y as digital hats
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_LINUX_DIGITAL_HATS "SDL_LINUX_DIGITAL_HATS"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether digital hats on Linux will apply deadzones to their underlying input axes or use unfiltered values.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Return digital hat values based on unfiltered input axis values
|
||||||
|
* "1" - Return digital hat values with deadzones on the input axes taken into account (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_LINUX_HAT_DEADZONES "SDL_LINUX_HAT_DEADZONES"
|
||||||
|
|
||||||
|
/**
|
||||||
* \brief A variable controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux
|
* \brief A variable controlling whether to use the classic /dev/input/js* joystick interface or the newer /dev/input/event* joystick interface on Linux
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -882,7 +1055,7 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_LINUX_JOYSTICK_CLASSIC "SDL_LINUX_JOYSTICK_CLASSIC"
|
#define SDL_HINT_LINUX_JOYSTICK_CLASSIC "SDL_LINUX_JOYSTICK_CLASSIC"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether joysticks on Linux adhere to their HID-defined deadzones or return unfiltered values.
|
* \brief A variable controlling whether joysticks on Linux adhere to their HID-defined deadzones or return unfiltered values.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* This variable can be set to the following values:
|
||||||
|
@ -907,6 +1080,24 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"
|
#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Dispatching OpenGL context updates will block the dispatching thread until the main thread finishes processing (default).
|
||||||
|
* "1" - Dispatching OpenGL context updates will allow the dispatching thread to continue execution.
|
||||||
|
*
|
||||||
|
* Generally you want the default, but if you have OpenGL code in a background thread on a Mac, and the main thread
|
||||||
|
* hangs because it's waiting for that background thread, but that background thread is also hanging because it's
|
||||||
|
* waiting for the main thread to do an update, this might fix your issue.
|
||||||
|
*
|
||||||
|
* This hint only applies to macOS.
|
||||||
|
*
|
||||||
|
* This hint is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_MAC_OPENGL_ASYNC_DISPATCH "SDL_MAC_OPENGL_ASYNC_DISPATCH"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable setting the double click radius, in pixels.
|
* \brief A variable setting the double click radius, in pixels.
|
||||||
*/
|
*/
|
||||||
|
@ -976,6 +1167,28 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
|
#define SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE "SDL_MOUSE_RELATIVE_SPEED_SCALE"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether the system mouse acceleration curve is used for relative mouse motion.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Relative mouse motion will be unscaled (the default)
|
||||||
|
* "1" - Relative mouse motion will be scaled using the system mouse acceleration curve.
|
||||||
|
*
|
||||||
|
* If SDL_HINT_MOUSE_RELATIVE_SPEED_SCALE is set, that will override the system speed scale.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_MOUSE_RELATIVE_SYSTEM_SCALE "SDL_MOUSE_RELATIVE_SYSTEM_SCALE"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether a motion event should be generated for mouse warping in relative mode.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Warping the mouse will not generate a motion event in relative mode
|
||||||
|
* "1" - Warping the mouse will generate a motion event in relative mode
|
||||||
|
*
|
||||||
|
* By default warping the mouse will not generate motion events in relative mode. This avoids the application having to filter out large relative motion due to warping.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_MOUSE_RELATIVE_WARP_MOTION "SDL_MOUSE_RELATIVE_WARP_MOTION"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether mouse events should generate synthetic touch events
|
* \brief A variable controlling whether mouse events should generate synthetic touch events
|
||||||
*
|
*
|
||||||
|
@ -1063,7 +1276,7 @@ extern "C" {
|
||||||
* When polling for events, SDL_PumpEvents is used to gather new events from devices.
|
* When polling for events, SDL_PumpEvents is used to gather new events from devices.
|
||||||
* If a device keeps producing new events between calls to SDL_PumpEvents, a poll loop will
|
* If a device keeps producing new events between calls to SDL_PumpEvents, a poll loop will
|
||||||
* become stuck until the new events stop.
|
* become stuck until the new events stop.
|
||||||
* This is most noticable when moving a high frequency mouse.
|
* This is most noticeable when moving a high frequency mouse.
|
||||||
*
|
*
|
||||||
* By default, poll sentinels are enabled.
|
* By default, poll sentinels are enabled.
|
||||||
*/
|
*/
|
||||||
|
@ -1181,6 +1394,8 @@ extern "C" {
|
||||||
*
|
*
|
||||||
* This variable is case insensitive and can be set to the following values:
|
* This variable is case insensitive and can be set to the following values:
|
||||||
* "direct3d"
|
* "direct3d"
|
||||||
|
* "direct3d11"
|
||||||
|
* "direct3d12"
|
||||||
* "opengl"
|
* "opengl"
|
||||||
* "opengles2"
|
* "opengles2"
|
||||||
* "opengles"
|
* "opengles"
|
||||||
|
@ -1237,7 +1452,18 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"
|
#define SDL_HINT_RENDER_VSYNC "SDL_RENDER_VSYNC"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* \brief A variable controlling if VSYNC is automatically disable if doesn't reach the enough FPS
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - It will be using VSYNC as defined in the main flag. Default
|
||||||
|
* "1" - If VSYNC was previously enabled, then it will disable VSYNC if doesn't reach enough speed
|
||||||
|
*
|
||||||
|
* By default SDL does not enable the automatic VSYNC
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_PS2_DYNAMIC_VSYNC "SDL_PS2_DYNAMIC_VSYNC"
|
||||||
|
|
||||||
|
/**
|
||||||
* \brief A variable to control whether the return key on the soft keyboard
|
* \brief A variable to control whether the return key on the soft keyboard
|
||||||
* should hide the soft keyboard on Android and iOS.
|
* should hide the soft keyboard on Android and iOS.
|
||||||
*
|
*
|
||||||
|
@ -1450,9 +1676,7 @@ extern "C" {
|
||||||
* SDL_WINDOW_RESIZABLE windows will offer the "fullscreen"
|
* SDL_WINDOW_RESIZABLE windows will offer the "fullscreen"
|
||||||
* button on their titlebars).
|
* button on their titlebars).
|
||||||
*
|
*
|
||||||
* The default value is "1". Spaces are disabled regardless of this hint if
|
* The default value is "1". This hint must be set before any windows are created.
|
||||||
* the OS isn't at least Mac OS X Lion (10.7). This hint must be set before
|
|
||||||
* any windows are created.
|
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES "SDL_VIDEO_MAC_FULLSCREEN_SPACES"
|
#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES "SDL_VIDEO_MAC_FULLSCREEN_SPACES"
|
||||||
|
|
||||||
|
@ -1489,6 +1713,38 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR "SDL_VIDEO_WAYLAND_PREFER_LIBDECOR"
|
#define SDL_HINT_VIDEO_WAYLAND_PREFER_LIBDECOR "SDL_VIDEO_WAYLAND_PREFER_LIBDECOR"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable controlling whether video mode emulation is enabled under Wayland.
|
||||||
|
*
|
||||||
|
* When this hint is set, a standard set of emulated CVT video modes will be exposed for use by the application.
|
||||||
|
* If it is disabled, the only modes exposed will be the logical desktop size and, in the case of a scaled
|
||||||
|
* desktop, the native display resolution.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - Video mode emulation is disabled.
|
||||||
|
* "1" - Video mode emulation is enabled.
|
||||||
|
*
|
||||||
|
* By default video mode emulation is enabled.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_VIDEO_WAYLAND_MODE_EMULATION "SDL_VIDEO_WAYLAND_MODE_EMULATION"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Enable or disable mouse pointer warp emulation, needed by some older games.
|
||||||
|
*
|
||||||
|
* When this hint is set, any SDL will emulate mouse warps using relative mouse mode.
|
||||||
|
* This is required for some older games (such as Source engine games), which warp the
|
||||||
|
* mouse to the centre of the screen rather than using relative mouse motion. Note that
|
||||||
|
* relative mouse mode may have different mouse acceleration behaviour than pointer warps.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - All mouse warps fail, as mouse warping is not available under wayland.
|
||||||
|
* "1" - Some mouse warps will be emulated by forcing relative mouse mode.
|
||||||
|
*
|
||||||
|
* If not set, this is automatically enabled unless an application uses relative mouse
|
||||||
|
* mode directly.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_VIDEO_WAYLAND_EMULATE_MOUSE_WARP "SDL_VIDEO_WAYLAND_EMULATE_MOUSE_WARP"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable that is the address of another SDL_Window* (as a hex string formatted with "%p").
|
* \brief A variable that is the address of another SDL_Window* (as a hex string formatted with "%p").
|
||||||
*
|
*
|
||||||
|
@ -1590,13 +1846,11 @@ extern "C" {
|
||||||
#define SDL_HINT_VIDEO_X11_WINDOW_VISUALID "SDL_VIDEO_X11_WINDOW_VISUALID"
|
#define SDL_HINT_VIDEO_X11_WINDOW_VISUALID "SDL_VIDEO_X11_WINDOW_VISUALID"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the X11 Xinerama extension should be used.
|
* \brief A no-longer-used variable controlling whether the X11 Xinerama extension should be used.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* Before SDL 2.0.24, this would let apps and users disable Xinerama support on X11.
|
||||||
* "0" - Disable Xinerama
|
* Now SDL never uses Xinerama, and does not check for this hint at all.
|
||||||
* "1" - Enable Xinerama
|
* The preprocessor define is left here for source compatibility.
|
||||||
*
|
|
||||||
* By default SDL will use Xinerama if it is available.
|
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_VIDEO_X11_XINERAMA "SDL_VIDEO_X11_XINERAMA"
|
#define SDL_HINT_VIDEO_X11_XINERAMA "SDL_VIDEO_X11_XINERAMA"
|
||||||
|
|
||||||
|
@ -1607,18 +1861,16 @@ extern "C" {
|
||||||
* "0" - Disable XRandR
|
* "0" - Disable XRandR
|
||||||
* "1" - Enable XRandR
|
* "1" - Enable XRandR
|
||||||
*
|
*
|
||||||
* By default SDL will not use XRandR because of window manager issues.
|
* By default SDL will use XRandR.
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_VIDEO_X11_XRANDR "SDL_VIDEO_X11_XRANDR"
|
#define SDL_HINT_VIDEO_X11_XRANDR "SDL_VIDEO_X11_XRANDR"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the X11 VidMode extension should be used.
|
* \brief A no-longer-used variable controlling whether the X11 VidMode extension should be used.
|
||||||
*
|
*
|
||||||
* This variable can be set to the following values:
|
* Before SDL 2.0.24, this would let apps and users disable XVidMode support on X11.
|
||||||
* "0" - Disable XVidMode
|
* Now SDL never uses XVidMode, and does not check for this hint at all.
|
||||||
* "1" - Enable XVidMode
|
* The preprocessor define is left here for source compatibility.
|
||||||
*
|
|
||||||
* By default SDL will use XVidMode if it is available.
|
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_VIDEO_X11_XVIDMODE "SDL_VIDEO_X11_XVIDMODE"
|
#define SDL_HINT_VIDEO_X11_XVIDMODE "SDL_VIDEO_X11_XVIDMODE"
|
||||||
|
|
||||||
|
@ -1778,6 +2030,57 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_WINDOWS_USE_D3D9EX "SDL_WINDOWS_USE_D3D9EX"
|
#define SDL_HINT_WINDOWS_USE_D3D9EX "SDL_WINDOWS_USE_D3D9EX"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Controls whether SDL will declare the process to be DPI aware.
|
||||||
|
*
|
||||||
|
* This hint must be set before initializing the video subsystem.
|
||||||
|
*
|
||||||
|
* The main purpose of declaring DPI awareness is to disable OS bitmap scaling of SDL windows on monitors with
|
||||||
|
* a DPI scale factor.
|
||||||
|
*
|
||||||
|
* This hint is equivalent to requesting DPI awareness via external means (e.g. calling SetProcessDpiAwarenessContext)
|
||||||
|
* and does not cause SDL to use a virtualized coordinate system, so it will generally give you 1 SDL coordinate = 1 pixel
|
||||||
|
* even on high-DPI displays.
|
||||||
|
*
|
||||||
|
* For more information, see:
|
||||||
|
* https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "" - Do not change the DPI awareness (default).
|
||||||
|
* "unaware" - Declare the process as DPI unaware. (Windows 8.1 and later).
|
||||||
|
* "system" - Request system DPI awareness. (Vista and later).
|
||||||
|
* "permonitor" - Request per-monitor DPI awareness. (Windows 8.1 and later).
|
||||||
|
* "permonitorv2" - Request per-monitor V2 DPI awareness. (Windows 10, version 1607 and later).
|
||||||
|
* The most visible difference from "permonitor" is that window title bar will be scaled
|
||||||
|
* to the visually correct size when dragging between monitors with different scale factors.
|
||||||
|
* This is the preferred DPI awareness level.
|
||||||
|
*
|
||||||
|
* If the requested DPI awareness is not available on the currently running OS, SDL will try to request the best
|
||||||
|
* available match.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_WINDOWS_DPI_AWARENESS "SDL_WINDOWS_DPI_AWARENESS"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Uses DPI-scaled points as the SDL coordinate system on Windows.
|
||||||
|
*
|
||||||
|
* This changes the SDL coordinate system units to be DPI-scaled points, rather than pixels everywhere.
|
||||||
|
* This means windows will be appropriately sized, even when created on high-DPI displays with scaling.
|
||||||
|
*
|
||||||
|
* e.g. requesting a 640x480 window from SDL, on a display with 125% scaling in Windows display settings,
|
||||||
|
* will create a window with an 800x600 client area (in pixels).
|
||||||
|
*
|
||||||
|
* Setting this to "1" implicitly requests process DPI awareness (setting SDL_WINDOWS_DPI_AWARENESS is unnecessary),
|
||||||
|
* and forces SDL_WINDOW_ALLOW_HIGHDPI on all windows.
|
||||||
|
*
|
||||||
|
* This variable can be set to the following values:
|
||||||
|
* "0" - SDL coordinates equal Windows coordinates. No automatic window resizing when dragging
|
||||||
|
* between monitors with different scale factors (unless this is performed by
|
||||||
|
* Windows itself, which is the case when the process is DPI unaware).
|
||||||
|
* "1" - SDL coordinates are in DPI-scaled points. Automatically resize windows as needed on
|
||||||
|
* displays with non-100% scale factors.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_WINDOWS_DPI_SCALING "SDL_WINDOWS_DPI_SCALING"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable controlling whether the window frame and title bar are interactive when the cursor is hidden
|
* \brief A variable controlling whether the window frame and title bar are interactive when the cursor is hidden
|
||||||
*
|
*
|
||||||
|
@ -1920,6 +2223,15 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
|
#define SDL_HINT_XINPUT_ENABLED "SDL_XINPUT_ENABLED"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable that lets you disable the detection and use of DirectInput gamepad devices
|
||||||
|
*
|
||||||
|
* The variable can be set to the following values:
|
||||||
|
* "0" - Disable DirectInput detection (only uses XInput)
|
||||||
|
* "1" - Enable DirectInput detection (the default)
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_DIRECTINPUT_ENABLED "SDL_DIRECTINPUT_ENABLED"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief A variable that causes SDL to use the old axis and button mapping for XInput devices.
|
* \brief A variable that causes SDL to use the old axis and button mapping for XInput devices.
|
||||||
*
|
*
|
||||||
|
@ -2039,6 +2351,42 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define SDL_HINT_AUDIODRIVER "SDL_AUDIODRIVER"
|
#define SDL_HINT_AUDIODRIVER "SDL_AUDIODRIVER"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable that decides what KMSDRM device to use.
|
||||||
|
*
|
||||||
|
* Internally, SDL might open something like "/dev/dri/cardNN" to
|
||||||
|
* access KMSDRM functionality, where "NN" is a device index number.
|
||||||
|
*
|
||||||
|
* SDL makes a guess at the best index to use (usually zero), but the
|
||||||
|
* app or user can set this hint to a number between 0 and 99 to
|
||||||
|
* force selection.
|
||||||
|
*
|
||||||
|
* This hint is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_KMSDRM_DEVICE_INDEX "SDL_KMSDRM_DEVICE_INDEX"
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief A variable that treats trackpads as touch devices.
|
||||||
|
*
|
||||||
|
* On macOS (and possibly other platforms in the future), SDL will report
|
||||||
|
* touches on a trackpad as mouse input, which is generally what users
|
||||||
|
* expect from this device; however, these are often actually full
|
||||||
|
* multitouch-capable touch devices, so it might be preferable to some apps
|
||||||
|
* to treat them as such.
|
||||||
|
*
|
||||||
|
* Setting this hint to true will make the trackpad input report as a
|
||||||
|
* multitouch device instead of a mouse. The default is false.
|
||||||
|
*
|
||||||
|
* Note that most platforms don't support this hint. As of 2.24.0, it
|
||||||
|
* only supports MacBooks' trackpads on macOS. Others may follow later.
|
||||||
|
*
|
||||||
|
* This hint is checked during SDL_Init and can not be changed after.
|
||||||
|
*
|
||||||
|
* This hint is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
#define SDL_HINT_TRACKPAD_IS_TOUCH_ONLY "SDL_TRACKPAD_IS_TOUCH_ONLY"
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief An enumeration of hint priorities
|
* \brief An enumeration of hint priorities
|
||||||
|
@ -2091,6 +2439,38 @@ extern DECLSPEC SDL_bool SDLCALL SDL_SetHintWithPriority(const char *name,
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name,
|
extern DECLSPEC SDL_bool SDLCALL SDL_SetHint(const char *name,
|
||||||
const char *value);
|
const char *value);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset a hint to the default value.
|
||||||
|
*
|
||||||
|
* This will reset a hint to the value of the environment variable, or NULL if
|
||||||
|
* the environment isn't set. Callbacks will be called normally with this
|
||||||
|
* change.
|
||||||
|
*
|
||||||
|
* \param name the hint to set
|
||||||
|
* \returns SDL_TRUE if the hint was set, SDL_FALSE otherwise.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetHint
|
||||||
|
* \sa SDL_SetHint
|
||||||
|
*/
|
||||||
|
extern DECLSPEC SDL_bool SDLCALL SDL_ResetHint(const char *name);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reset all hints to the default values.
|
||||||
|
*
|
||||||
|
* This will reset all hints to the value of the associated environment
|
||||||
|
* variable, or NULL if the environment isn't set. Callbacks will be called
|
||||||
|
* normally with this change.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetHint
|
||||||
|
* \sa SDL_SetHint
|
||||||
|
* \sa SDL_ResetHint
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_ResetHints(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the value of a hint.
|
* Get the value of a hint.
|
||||||
*
|
*
|
||||||
|
@ -2164,9 +2544,16 @@ extern DECLSPEC void SDLCALL SDL_DelHintCallback(const char *name,
|
||||||
/**
|
/**
|
||||||
* Clear all hints.
|
* Clear all hints.
|
||||||
*
|
*
|
||||||
* This function is automatically called during SDL_Quit().
|
* This function is automatically called during SDL_Quit(), and deletes all
|
||||||
|
* callbacks without calling them and frees all memory associated with hints.
|
||||||
|
* If you're calling this from application code you probably want to call
|
||||||
|
* SDL_ResetHints() instead.
|
||||||
|
*
|
||||||
|
* This function will be removed from the API the next time we rev the ABI.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_ResetHints
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_ClearHints(void);
|
extern DECLSPEC void SDLCALL SDL_ClearHints(void);
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
|
|
||||||
#include "SDL_stdinc.h"
|
#include "SDL_stdinc.h"
|
||||||
#include "SDL_error.h"
|
#include "SDL_error.h"
|
||||||
|
#include "SDL_guid.h"
|
||||||
|
|
||||||
#include "begin_code.h"
|
#include "begin_code.h"
|
||||||
/* Set up for C function definitions, even when using C++ */
|
/* Set up for C function definitions, even when using C++ */
|
||||||
|
@ -69,9 +70,7 @@ struct _SDL_Joystick;
|
||||||
typedef struct _SDL_Joystick SDL_Joystick;
|
typedef struct _SDL_Joystick SDL_Joystick;
|
||||||
|
|
||||||
/* A structure that encodes the stable unique id for a joystick device */
|
/* A structure that encodes the stable unique id for a joystick device */
|
||||||
typedef struct {
|
typedef SDL_GUID SDL_JoystickGUID;
|
||||||
Uint8 data[16];
|
|
||||||
} SDL_JoystickGUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is a unique ID for a joystick for the time it is connected to the system,
|
* This is a unique ID for a joystick for the time it is connected to the system,
|
||||||
|
@ -125,6 +124,11 @@ typedef enum
|
||||||
* the API functions that take a joystick index will be valid, and joystick
|
* the API functions that take a joystick index will be valid, and joystick
|
||||||
* and game controller events will not be delivered.
|
* and game controller events will not be delivered.
|
||||||
*
|
*
|
||||||
|
* As of SDL 2.26.0, you can take the joystick lock around reinitializing the
|
||||||
|
* joystick subsystem, to prevent other threads from seeing joysticks in an
|
||||||
|
* uninitialized state. However, all open joysticks will be closed and SDL
|
||||||
|
* functions called with them will fail.
|
||||||
|
*
|
||||||
* \since This function is available since SDL 2.0.7.
|
* \since This function is available since SDL 2.0.7.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_LockJoysticks(void);
|
extern DECLSPEC void SDLCALL SDL_LockJoysticks(void);
|
||||||
|
@ -153,6 +157,7 @@ extern DECLSPEC void SDLCALL SDL_UnlockJoysticks(void);
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_JoystickName
|
* \sa SDL_JoystickName
|
||||||
|
* \sa SDL_JoystickPath
|
||||||
* \sa SDL_JoystickOpen
|
* \sa SDL_JoystickOpen
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
|
extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
|
||||||
|
@ -174,6 +179,23 @@ extern DECLSPEC int SDLCALL SDL_NumJoysticks(void);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
|
extern DECLSPEC const char *SDLCALL SDL_JoystickNameForIndex(int device_index);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implementation dependent path of a joystick.
|
||||||
|
*
|
||||||
|
* This can be called before any joysticks are opened.
|
||||||
|
*
|
||||||
|
* \param device_index the index of the joystick to query (the N'th joystick
|
||||||
|
* on the system)
|
||||||
|
* \returns the path of the selected joystick. If no path can be found, this
|
||||||
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_JoystickPath
|
||||||
|
* \sa SDL_JoystickOpen
|
||||||
|
*/
|
||||||
|
extern DECLSPEC const char *SDLCALL SDL_JoystickPathForIndex(int device_index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the player index of a joystick, or -1 if it's not available This can be
|
* Get the player index of a joystick, or -1 if it's not available This can be
|
||||||
* called before any joysticks are opened.
|
* called before any joysticks are opened.
|
||||||
|
@ -330,6 +352,54 @@ extern DECLSPEC int SDLCALL SDL_JoystickAttachVirtual(SDL_JoystickType type,
|
||||||
int nbuttons,
|
int nbuttons,
|
||||||
int nhats);
|
int nhats);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The structure that defines an extended virtual joystick description
|
||||||
|
*
|
||||||
|
* The caller must zero the structure and then initialize the version with `SDL_VIRTUAL_JOYSTICK_DESC_VERSION` before passing it to SDL_JoystickAttachVirtualEx()
|
||||||
|
* All other elements of this structure are optional and can be left 0.
|
||||||
|
*
|
||||||
|
* \sa SDL_JoystickAttachVirtualEx
|
||||||
|
*/
|
||||||
|
typedef struct SDL_VirtualJoystickDesc
|
||||||
|
{
|
||||||
|
Uint16 version; /**< `SDL_VIRTUAL_JOYSTICK_DESC_VERSION` */
|
||||||
|
Uint16 type; /**< `SDL_JoystickType` */
|
||||||
|
Uint16 naxes; /**< the number of axes on this joystick */
|
||||||
|
Uint16 nbuttons; /**< the number of buttons on this joystick */
|
||||||
|
Uint16 nhats; /**< the number of hats on this joystick */
|
||||||
|
Uint16 vendor_id; /**< the USB vendor ID of this joystick */
|
||||||
|
Uint16 product_id; /**< the USB product ID of this joystick */
|
||||||
|
Uint16 padding; /**< unused */
|
||||||
|
Uint32 button_mask; /**< A mask of which buttons are valid for this controller
|
||||||
|
e.g. (1 << SDL_CONTROLLER_BUTTON_A) */
|
||||||
|
Uint32 axis_mask; /**< A mask of which axes are valid for this controller
|
||||||
|
e.g. (1 << SDL_CONTROLLER_AXIS_LEFTX) */
|
||||||
|
const char *name; /**< the name of the joystick */
|
||||||
|
|
||||||
|
void *userdata; /**< User data pointer passed to callbacks */
|
||||||
|
void (SDLCALL *Update)(void *userdata); /**< Called when the joystick state should be updated */
|
||||||
|
void (SDLCALL *SetPlayerIndex)(void *userdata, int player_index); /**< Called when the player index is set */
|
||||||
|
int (SDLCALL *Rumble)(void *userdata, Uint16 low_frequency_rumble, Uint16 high_frequency_rumble); /**< Implements SDL_JoystickRumble() */
|
||||||
|
int (SDLCALL *RumbleTriggers)(void *userdata, Uint16 left_rumble, Uint16 right_rumble); /**< Implements SDL_JoystickRumbleTriggers() */
|
||||||
|
int (SDLCALL *SetLED)(void *userdata, Uint8 red, Uint8 green, Uint8 blue); /**< Implements SDL_JoystickSetLED() */
|
||||||
|
int (SDLCALL *SendEffect)(void *userdata, const void *data, int size); /**< Implements SDL_JoystickSendEffect() */
|
||||||
|
|
||||||
|
} SDL_VirtualJoystickDesc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief The current version of the SDL_VirtualJoystickDesc structure
|
||||||
|
*/
|
||||||
|
#define SDL_VIRTUAL_JOYSTICK_DESC_VERSION 1
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Attach a new virtual joystick with extended properties.
|
||||||
|
*
|
||||||
|
* \returns the joystick's device index, or -1 if an error occurred.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_JoystickAttachVirtualEx(const SDL_VirtualJoystickDesc *desc);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detach a virtual joystick.
|
* Detach a virtual joystick.
|
||||||
*
|
*
|
||||||
|
@ -360,6 +430,10 @@ extern DECLSPEC SDL_bool SDLCALL SDL_JoystickIsVirtual(int device_index);
|
||||||
* the following: SDL_PollEvent, SDL_PumpEvents, SDL_WaitEventTimeout,
|
* the following: SDL_PollEvent, SDL_PumpEvents, SDL_WaitEventTimeout,
|
||||||
* SDL_WaitEvent.
|
* SDL_WaitEvent.
|
||||||
*
|
*
|
||||||
|
* Note that when sending trigger axes, you should scale the value to the full
|
||||||
|
* range of Sint16. For example, a trigger at rest would have the value of
|
||||||
|
* `SDL_JOYSTICK_AXIS_MIN`.
|
||||||
|
*
|
||||||
* \param joystick the virtual joystick on which to set state.
|
* \param joystick the virtual joystick on which to set state.
|
||||||
* \param axis the specific axis on the virtual joystick to set.
|
* \param axis the specific axis on the virtual joystick to set.
|
||||||
* \param value the new value for the specified axis.
|
* \param value the new value for the specified axis.
|
||||||
|
@ -419,6 +493,19 @@ extern DECLSPEC int SDLCALL SDL_JoystickSetVirtualHat(SDL_Joystick *joystick, in
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick *joystick);
|
extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick *joystick);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the implementation dependent path of a joystick.
|
||||||
|
*
|
||||||
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
||||||
|
* \returns the path of the selected joystick. If no path can be found, this
|
||||||
|
* function returns NULL; call SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_JoystickPathForIndex
|
||||||
|
*/
|
||||||
|
extern DECLSPEC const char *SDLCALL SDL_JoystickPath(SDL_Joystick *joystick);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the player index of an opened joystick.
|
* Get the player index of an opened joystick.
|
||||||
*
|
*
|
||||||
|
@ -436,7 +523,8 @@ extern DECLSPEC int SDLCALL SDL_JoystickGetPlayerIndex(SDL_Joystick *joystick);
|
||||||
* Set the player index of an opened joystick.
|
* Set the player index of an opened joystick.
|
||||||
*
|
*
|
||||||
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
||||||
* \param player_index the player index to set.
|
* \param player_index Player index to assign to this joystick, or -1 to clear
|
||||||
|
* the player index and turn off player LEDs.
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.12.
|
* \since This function is available since SDL 2.0.12.
|
||||||
*/
|
*/
|
||||||
|
@ -495,6 +583,19 @@ extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProduct(SDL_Joystick *joystick);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick *joystick);
|
extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetProductVersion(SDL_Joystick *joystick);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the firmware version of an opened joystick, if available.
|
||||||
|
*
|
||||||
|
* If the firmware version isn't available this function returns 0.
|
||||||
|
*
|
||||||
|
* \param joystick the SDL_Joystick obtained from SDL_JoystickOpen()
|
||||||
|
* \returns the firmware version of the selected joystick, or 0 if
|
||||||
|
* unavailable.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC Uint16 SDLCALL SDL_JoystickGetFirmwareVersion(SDL_Joystick *joystick);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the serial number of an opened joystick, if available.
|
* Get the serial number of an opened joystick, if available.
|
||||||
*
|
*
|
||||||
|
@ -551,6 +652,25 @@ extern DECLSPEC void SDLCALL SDL_JoystickGetGUIDString(SDL_JoystickGUID guid, ch
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const char *pchGUID);
|
extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUIDFromString(const char *pchGUID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the device information encoded in a SDL_JoystickGUID structure
|
||||||
|
*
|
||||||
|
* \param guid the SDL_JoystickGUID you wish to get info about
|
||||||
|
* \param vendor A pointer filled in with the device VID, or 0 if not
|
||||||
|
* available
|
||||||
|
* \param product A pointer filled in with the device PID, or 0 if not
|
||||||
|
* available
|
||||||
|
* \param version A pointer filled in with the device version, or 0 if not
|
||||||
|
* available
|
||||||
|
* \param crc16 A pointer filled in with a CRC used to distinguish different
|
||||||
|
* products with the same VID/PID, or 0 if not available
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_JoystickGetDeviceGUID
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_GetJoystickGUIDInfo(SDL_JoystickGUID guid, Uint16 *vendor, Uint16 *product, Uint16 *version, Uint16 *crc16);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the status of a specified joystick.
|
* Get the status of a specified joystick.
|
||||||
*
|
*
|
||||||
|
|
|
@ -90,9 +90,21 @@ extern DECLSPEC SDL_Window * SDLCALL SDL_GetKeyboardFocus(void);
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_PumpEvents
|
* \sa SDL_PumpEvents
|
||||||
|
* \sa SDL_ResetKeyboard
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
|
extern DECLSPEC const Uint8 *SDLCALL SDL_GetKeyboardState(int *numkeys);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the state of the keyboard
|
||||||
|
*
|
||||||
|
* This function will generate key up events for all pressed keys.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetKeyboardState
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_ResetKeyboard(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current key modifier state for the keyboard.
|
* Get the current key modifier state for the keyboard.
|
||||||
*
|
*
|
||||||
|
@ -288,7 +300,11 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
||||||
/**
|
/**
|
||||||
* Set the rectangle used to type Unicode text inputs.
|
* Set the rectangle used to type Unicode text inputs.
|
||||||
*
|
*
|
||||||
* Note: If you want use system native IME window, try to set hint
|
* To start text input in a given location, this function is intended to be
|
||||||
|
* called before SDL_StartTextInput, although some platforms support moving
|
||||||
|
* the rectangle even while text input (and a composition) is active.
|
||||||
|
*
|
||||||
|
* Note: If you want to use the system native IME window, try setting hint
|
||||||
* **SDL_HINT_IME_SHOW_UI** to **1**, otherwise this function won't give you
|
* **SDL_HINT_IME_SHOW_UI** to **1**, otherwise this function won't give you
|
||||||
* any feedback.
|
* any feedback.
|
||||||
*
|
*
|
||||||
|
@ -299,7 +315,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_IsTextInputShown(void);
|
||||||
*
|
*
|
||||||
* \sa SDL_StartTextInput
|
* \sa SDL_StartTextInput
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_SetTextInputRect(SDL_Rect *rect);
|
extern DECLSPEC void SDLCALL SDL_SetTextInputRect(const SDL_Rect *rect);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check whether the platform has screen keyboard support.
|
* Check whether the platform has screen keyboard support.
|
||||||
|
|
|
@ -318,7 +318,12 @@ typedef enum
|
||||||
SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
|
SDLK_APP2 = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_APP2),
|
||||||
|
|
||||||
SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
|
SDLK_AUDIOREWIND = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOREWIND),
|
||||||
SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD)
|
SDLK_AUDIOFASTFORWARD = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_AUDIOFASTFORWARD),
|
||||||
|
|
||||||
|
SDLK_SOFTLEFT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTLEFT),
|
||||||
|
SDLK_SOFTRIGHT = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_SOFTRIGHT),
|
||||||
|
SDLK_CALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_CALL),
|
||||||
|
SDLK_ENDCALL = SDL_SCANCODE_TO_KEYCODE(SDL_SCANCODE_ENDCALL)
|
||||||
} SDL_KeyCode;
|
} SDL_KeyCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -47,9 +47,9 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief The maximum size of a log message
|
* \brief The maximum size of a log message prior to SDL 2.0.24
|
||||||
*
|
*
|
||||||
* Messages longer than the maximum size will be truncated
|
* As of 2.0.24 there is no limit to the length of SDL log messages.
|
||||||
*/
|
*/
|
||||||
#define SDL_MAX_LOG_MESSAGE 4096
|
#define SDL_MAX_LOG_MESSAGE 4096
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,15 @@
|
||||||
*/
|
*/
|
||||||
#define SDL_MAIN_NEEDED
|
#define SDL_MAIN_NEEDED
|
||||||
|
|
||||||
|
#elif defined(__GDK__)
|
||||||
|
/* On GDK, SDL provides a main function that initializes the game runtime.
|
||||||
|
|
||||||
|
Please note that #include'ing SDL_main.h is not enough to get a main()
|
||||||
|
function working. You must either link against SDL2main or, if not possible,
|
||||||
|
call the SDL_GDKRunApp function from your entry point.
|
||||||
|
*/
|
||||||
|
#define SDL_MAIN_NEEDED
|
||||||
|
|
||||||
#elif defined(__IPHONEOS__)
|
#elif defined(__IPHONEOS__)
|
||||||
/* On iOS SDL provides a main function that creates an application delegate
|
/* On iOS SDL provides a main function that creates an application delegate
|
||||||
and starts the iOS application run loop.
|
and starts the iOS application run loop.
|
||||||
|
@ -92,6 +101,22 @@
|
||||||
*/
|
*/
|
||||||
#define SDL_MAIN_AVAILABLE
|
#define SDL_MAIN_AVAILABLE
|
||||||
|
|
||||||
|
#elif defined(__PS2__)
|
||||||
|
#define SDL_MAIN_AVAILABLE
|
||||||
|
|
||||||
|
#define SDL_PS2_SKIP_IOP_RESET() \
|
||||||
|
void reset_IOP(); \
|
||||||
|
void reset_IOP() {}
|
||||||
|
|
||||||
|
#elif defined(__3DS__)
|
||||||
|
/*
|
||||||
|
On N3DS, SDL provides a main function that sets up the screens
|
||||||
|
and storage.
|
||||||
|
|
||||||
|
If you provide this yourself, you may define SDL_MAIN_HANDLED
|
||||||
|
*/
|
||||||
|
#define SDL_MAIN_AVAILABLE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* SDL_MAIN_HANDLED */
|
#endif /* SDL_MAIN_HANDLED */
|
||||||
|
|
||||||
|
@ -145,7 +170,7 @@ extern SDLMAIN_DECLSPEC int SDL_main(int argc, char *argv[]);
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
|
extern DECLSPEC void SDLCALL SDL_SetMainReady(void);
|
||||||
|
|
||||||
#ifdef __WIN32__
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a win32 window class for SDL's use.
|
* Register a win32 window class for SDL's use.
|
||||||
|
@ -189,7 +214,7 @@ extern DECLSPEC int SDLCALL SDL_RegisterApp(const char *name, Uint32 style, void
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
|
extern DECLSPEC void SDLCALL SDL_UnregisterApp(void);
|
||||||
|
|
||||||
#endif /* __WIN32__ */
|
#endif /* defined(__WIN32__) || defined(__GDK__) */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WINRT__
|
#ifdef __WINRT__
|
||||||
|
@ -224,6 +249,21 @@ extern DECLSPEC int SDLCALL SDL_UIKitRunApp(int argc, char *argv[], SDL_main_fun
|
||||||
|
|
||||||
#endif /* __IPHONEOS__ */
|
#endif /* __IPHONEOS__ */
|
||||||
|
|
||||||
|
#ifdef __GDK__
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize and launch an SDL GDK application.
|
||||||
|
*
|
||||||
|
* \param mainFunction the SDL app's C-style main(), an SDL_main_func
|
||||||
|
* \param reserved reserved for future use; should be NULL
|
||||||
|
* \returns 0 on success or -1 on failure; call SDL_GetError() to retrieve
|
||||||
|
* more information on the failure.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GDKRunApp(SDL_main_func mainFunction, void *reserved);
|
||||||
|
|
||||||
|
#endif /* __GDK__ */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,7 +82,7 @@ extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view);
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.14.
|
* \since This function is available since SDL 2.0.14.
|
||||||
*
|
*
|
||||||
* \sa SDL_MetalCreateView
|
* \sa SDL_Metal_CreateView
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void *SDLCALL SDL_Metal_GetLayer(SDL_MetalView view);
|
extern DECLSPEC void *SDLCALL SDL_Metal_GetLayer(SDL_MetalView view);
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,9 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetRelativeMouseState(int *x, int *y);
|
||||||
/**
|
/**
|
||||||
* Move the mouse cursor to the given position within the window.
|
* Move the mouse cursor to the given position within the window.
|
||||||
*
|
*
|
||||||
* This function generates a mouse motion event.
|
* This function generates a mouse motion event if relative mode is not
|
||||||
|
* enabled. If relative mode is enabled, you can force mouse events for the
|
||||||
|
* warp by setting the SDL_HINT_MOUSE_RELATIVE_WARP_MOTION hint.
|
||||||
*
|
*
|
||||||
* Note that this function will appear to succeed, but not actually move the
|
* Note that this function will appear to succeed, but not actually move the
|
||||||
* mouse when used over Microsoft Remote Desktop.
|
* mouse when used over Microsoft Remote Desktop.
|
||||||
|
@ -245,6 +247,15 @@ extern DECLSPEC int SDLCALL SDL_SetRelativeMouseMode(SDL_bool enabled);
|
||||||
* While capturing is enabled, the current window will have the
|
* While capturing is enabled, the current window will have the
|
||||||
* `SDL_WINDOW_MOUSE_CAPTURE` flag set.
|
* `SDL_WINDOW_MOUSE_CAPTURE` flag set.
|
||||||
*
|
*
|
||||||
|
* Please note that as of SDL 2.0.22, SDL will attempt to "auto capture" the
|
||||||
|
* mouse while the user is pressing a button; this is to try and make mouse
|
||||||
|
* behavior more consistent between platforms, and deal with the common case
|
||||||
|
* of a user dragging the mouse outside of the window. This means that if you
|
||||||
|
* are calling SDL_CaptureMouse() only to deal with this situation, you no
|
||||||
|
* longer have to (although it is safe to do so). If this causes problems for
|
||||||
|
* your app, you can disable auto capture by setting the
|
||||||
|
* `SDL_HINT_MOUSE_AUTO_CAPTURE` hint to zero.
|
||||||
|
*
|
||||||
* \param enabled SDL_TRUE to enable capturing, SDL_FALSE to disable.
|
* \param enabled SDL_TRUE to enable capturing, SDL_FALSE to disable.
|
||||||
* \returns 0 on success or -1 if not supported; call SDL_GetError() for more
|
* \returns 0 on success or -1 if not supported; call SDL_GetError() for more
|
||||||
* information.
|
* information.
|
||||||
|
|
|
@ -2107,57 +2107,6 @@ typedef void (APIENTRYP PFNGLMULTITEXCOORD4SVARBPROC) (GLenum target, const GLsh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* ???. GL_MESA_packed_depth_stencil
|
|
||||||
* XXX obsolete
|
|
||||||
*/
|
|
||||||
#ifndef GL_MESA_packed_depth_stencil
|
|
||||||
#define GL_MESA_packed_depth_stencil 1
|
|
||||||
|
|
||||||
#define GL_DEPTH_STENCIL_MESA 0x8750
|
|
||||||
#define GL_UNSIGNED_INT_24_8_MESA 0x8751
|
|
||||||
#define GL_UNSIGNED_INT_8_24_REV_MESA 0x8752
|
|
||||||
#define GL_UNSIGNED_SHORT_15_1_MESA 0x8753
|
|
||||||
#define GL_UNSIGNED_SHORT_1_15_REV_MESA 0x8754
|
|
||||||
|
|
||||||
#endif /* GL_MESA_packed_depth_stencil */
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef GL_ATI_blend_equation_separate
|
|
||||||
#define GL_ATI_blend_equation_separate 1
|
|
||||||
|
|
||||||
#define GL_ALPHA_BLEND_EQUATION_ATI 0x883D
|
|
||||||
|
|
||||||
GLAPI void GLAPIENTRY glBlendEquationSeparateATI( GLenum modeRGB, GLenum modeA );
|
|
||||||
typedef void (APIENTRYP PFNGLBLENDEQUATIONSEPARATEATIPROC) (GLenum modeRGB, GLenum modeA);
|
|
||||||
|
|
||||||
#endif /* GL_ATI_blend_equation_separate */
|
|
||||||
|
|
||||||
|
|
||||||
/* GL_OES_EGL_image */
|
|
||||||
#ifndef GL_OES_EGL_image
|
|
||||||
typedef void* GLeglImageOES;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef GL_OES_EGL_image
|
|
||||||
#define GL_OES_EGL_image 1
|
|
||||||
#ifdef GL_GLEXT_PROTOTYPES
|
|
||||||
GLAPI void APIENTRY glEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image);
|
|
||||||
GLAPI void APIENTRY glEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image);
|
|
||||||
#endif
|
|
||||||
typedef void (APIENTRYP PFNGLEGLIMAGETARGETTEXTURE2DOESPROC) (GLenum target, GLeglImageOES image);
|
|
||||||
typedef void (APIENTRYP PFNGLEGLIMAGETARGETRENDERBUFFERSTORAGEOESPROC) (GLenum target, GLeglImageOES image);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
** NOTE!!!!! If you add new functions to this file, or update
|
|
||||||
** glext.h be sure to regenerate the gl_mangle.h file. See comments
|
|
||||||
** in that file for details.
|
|
||||||
**/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* Begin system-specific stuff
|
* Begin system-specific stuff
|
||||||
*/
|
*/
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,56 +1,70 @@
|
||||||
#ifndef __gl2_h_
|
#ifndef __gles2_gl2_h_
|
||||||
#define __gl2_h_
|
#define __gles2_gl2_h_ 1
|
||||||
|
|
||||||
/* $Revision: 20555 $ on $Date:: 2013-02-12 14:32:47 -0800 #$ */
|
|
||||||
|
|
||||||
/*#include <GLES2/gl2platform.h>*/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This document is licensed under the SGI Free Software B License Version
|
** Copyright 2013-2020 The Khronos Group Inc.
|
||||||
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
|
** SPDX-License-Identifier: MIT
|
||||||
|
**
|
||||||
|
** This header is generated from the Khronos OpenGL / OpenGL ES XML
|
||||||
|
** API Registry. The current version of the Registry, generator scripts
|
||||||
|
** used to make the header, and the header can be found at
|
||||||
|
** https://github.com/KhronosGroup/OpenGL-Registry
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*#include <GLES2/gl2platform.h>*/
|
||||||
|
|
||||||
|
#ifndef GL_APIENTRYP
|
||||||
|
#define GL_APIENTRYP GL_APIENTRY*
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef GL_GLES_PROTOTYPES
|
||||||
|
#define GL_GLES_PROTOTYPES 1
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Generated on date 20220530 */
|
||||||
|
|
||||||
|
/* Generated C header for:
|
||||||
|
* API: gles2
|
||||||
|
* Profile: common
|
||||||
|
* Versions considered: 2\.[0-9]
|
||||||
|
* Versions emitted: .*
|
||||||
|
* Default extensions included: None
|
||||||
|
* Additional extensions included: _nomatch_^
|
||||||
|
* Extensions removed: _nomatch_^
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------
|
#ifndef GL_ES_VERSION_2_0
|
||||||
* Data type definitions
|
#define GL_ES_VERSION_2_0 1
|
||||||
*-----------------------------------------------------------------------*/
|
/*#include <KHR/khrplatform.h>*/
|
||||||
|
typedef khronos_int8_t GLbyte;
|
||||||
typedef void GLvoid;
|
typedef khronos_float_t GLclampf;
|
||||||
typedef char GLchar;
|
typedef khronos_int32_t GLfixed;
|
||||||
typedef unsigned int GLenum;
|
typedef khronos_int16_t GLshort;
|
||||||
typedef unsigned char GLboolean;
|
typedef khronos_uint16_t GLushort;
|
||||||
typedef unsigned int GLbitfield;
|
typedef void GLvoid;
|
||||||
typedef khronos_int8_t GLbyte;
|
typedef struct __GLsync *GLsync;
|
||||||
typedef short GLshort;
|
typedef khronos_int64_t GLint64;
|
||||||
typedef int GLint;
|
typedef khronos_uint64_t GLuint64;
|
||||||
typedef int GLsizei;
|
typedef unsigned int GLenum;
|
||||||
typedef khronos_uint8_t GLubyte;
|
typedef unsigned int GLuint;
|
||||||
typedef unsigned short GLushort;
|
typedef char GLchar;
|
||||||
typedef unsigned int GLuint;
|
typedef khronos_float_t GLfloat;
|
||||||
typedef khronos_float_t GLfloat;
|
typedef khronos_ssize_t GLsizeiptr;
|
||||||
typedef khronos_float_t GLclampf;
|
|
||||||
typedef khronos_int32_t GLfixed;
|
|
||||||
|
|
||||||
/* GL types for handling large vertex buffer objects */
|
|
||||||
typedef khronos_intptr_t GLintptr;
|
typedef khronos_intptr_t GLintptr;
|
||||||
typedef khronos_ssize_t GLsizeiptr;
|
typedef unsigned int GLbitfield;
|
||||||
|
typedef int GLint;
|
||||||
/* OpenGL ES core versions */
|
typedef unsigned char GLboolean;
|
||||||
#define GL_ES_VERSION_2_0 1
|
typedef int GLsizei;
|
||||||
|
typedef khronos_uint8_t GLubyte;
|
||||||
/* ClearBufferMask */
|
|
||||||
#define GL_DEPTH_BUFFER_BIT 0x00000100
|
#define GL_DEPTH_BUFFER_BIT 0x00000100
|
||||||
#define GL_STENCIL_BUFFER_BIT 0x00000400
|
#define GL_STENCIL_BUFFER_BIT 0x00000400
|
||||||
#define GL_COLOR_BUFFER_BIT 0x00004000
|
#define GL_COLOR_BUFFER_BIT 0x00004000
|
||||||
|
|
||||||
/* Boolean */
|
|
||||||
#define GL_FALSE 0
|
#define GL_FALSE 0
|
||||||
#define GL_TRUE 1
|
#define GL_TRUE 1
|
||||||
|
|
||||||
/* BeginMode */
|
|
||||||
#define GL_POINTS 0x0000
|
#define GL_POINTS 0x0000
|
||||||
#define GL_LINES 0x0001
|
#define GL_LINES 0x0001
|
||||||
#define GL_LINE_LOOP 0x0002
|
#define GL_LINE_LOOP 0x0002
|
||||||
|
@ -58,18 +72,6 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_TRIANGLES 0x0004
|
#define GL_TRIANGLES 0x0004
|
||||||
#define GL_TRIANGLE_STRIP 0x0005
|
#define GL_TRIANGLE_STRIP 0x0005
|
||||||
#define GL_TRIANGLE_FAN 0x0006
|
#define GL_TRIANGLE_FAN 0x0006
|
||||||
|
|
||||||
/* AlphaFunction (not supported in ES20) */
|
|
||||||
/* GL_NEVER */
|
|
||||||
/* GL_LESS */
|
|
||||||
/* GL_EQUAL */
|
|
||||||
/* GL_LEQUAL */
|
|
||||||
/* GL_GREATER */
|
|
||||||
/* GL_NOTEQUAL */
|
|
||||||
/* GL_GEQUAL */
|
|
||||||
/* GL_ALWAYS */
|
|
||||||
|
|
||||||
/* BlendingFactorDest */
|
|
||||||
#define GL_ZERO 0
|
#define GL_ZERO 0
|
||||||
#define GL_ONE 1
|
#define GL_ONE 1
|
||||||
#define GL_SRC_COLOR 0x0300
|
#define GL_SRC_COLOR 0x0300
|
||||||
|
@ -78,29 +80,15 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_ONE_MINUS_SRC_ALPHA 0x0303
|
#define GL_ONE_MINUS_SRC_ALPHA 0x0303
|
||||||
#define GL_DST_ALPHA 0x0304
|
#define GL_DST_ALPHA 0x0304
|
||||||
#define GL_ONE_MINUS_DST_ALPHA 0x0305
|
#define GL_ONE_MINUS_DST_ALPHA 0x0305
|
||||||
|
|
||||||
/* BlendingFactorSrc */
|
|
||||||
/* GL_ZERO */
|
|
||||||
/* GL_ONE */
|
|
||||||
#define GL_DST_COLOR 0x0306
|
#define GL_DST_COLOR 0x0306
|
||||||
#define GL_ONE_MINUS_DST_COLOR 0x0307
|
#define GL_ONE_MINUS_DST_COLOR 0x0307
|
||||||
#define GL_SRC_ALPHA_SATURATE 0x0308
|
#define GL_SRC_ALPHA_SATURATE 0x0308
|
||||||
/* GL_SRC_ALPHA */
|
|
||||||
/* GL_ONE_MINUS_SRC_ALPHA */
|
|
||||||
/* GL_DST_ALPHA */
|
|
||||||
/* GL_ONE_MINUS_DST_ALPHA */
|
|
||||||
|
|
||||||
/* BlendEquationSeparate */
|
|
||||||
#define GL_FUNC_ADD 0x8006
|
#define GL_FUNC_ADD 0x8006
|
||||||
#define GL_BLEND_EQUATION 0x8009
|
#define GL_BLEND_EQUATION 0x8009
|
||||||
#define GL_BLEND_EQUATION_RGB 0x8009 /* same as BLEND_EQUATION */
|
#define GL_BLEND_EQUATION_RGB 0x8009
|
||||||
#define GL_BLEND_EQUATION_ALPHA 0x883D
|
#define GL_BLEND_EQUATION_ALPHA 0x883D
|
||||||
|
|
||||||
/* BlendSubtract */
|
|
||||||
#define GL_FUNC_SUBTRACT 0x800A
|
#define GL_FUNC_SUBTRACT 0x800A
|
||||||
#define GL_FUNC_REVERSE_SUBTRACT 0x800B
|
#define GL_FUNC_REVERSE_SUBTRACT 0x800B
|
||||||
|
|
||||||
/* Separate Blend Functions */
|
|
||||||
#define GL_BLEND_DST_RGB 0x80C8
|
#define GL_BLEND_DST_RGB 0x80C8
|
||||||
#define GL_BLEND_SRC_RGB 0x80C9
|
#define GL_BLEND_SRC_RGB 0x80C9
|
||||||
#define GL_BLEND_DST_ALPHA 0x80CA
|
#define GL_BLEND_DST_ALPHA 0x80CA
|
||||||
|
@ -110,38 +98,19 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_CONSTANT_ALPHA 0x8003
|
#define GL_CONSTANT_ALPHA 0x8003
|
||||||
#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
|
#define GL_ONE_MINUS_CONSTANT_ALPHA 0x8004
|
||||||
#define GL_BLEND_COLOR 0x8005
|
#define GL_BLEND_COLOR 0x8005
|
||||||
|
|
||||||
/* Buffer Objects */
|
|
||||||
#define GL_ARRAY_BUFFER 0x8892
|
#define GL_ARRAY_BUFFER 0x8892
|
||||||
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
|
#define GL_ELEMENT_ARRAY_BUFFER 0x8893
|
||||||
#define GL_ARRAY_BUFFER_BINDING 0x8894
|
#define GL_ARRAY_BUFFER_BINDING 0x8894
|
||||||
#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
|
#define GL_ELEMENT_ARRAY_BUFFER_BINDING 0x8895
|
||||||
|
|
||||||
#define GL_STREAM_DRAW 0x88E0
|
#define GL_STREAM_DRAW 0x88E0
|
||||||
#define GL_STATIC_DRAW 0x88E4
|
#define GL_STATIC_DRAW 0x88E4
|
||||||
#define GL_DYNAMIC_DRAW 0x88E8
|
#define GL_DYNAMIC_DRAW 0x88E8
|
||||||
|
|
||||||
#define GL_BUFFER_SIZE 0x8764
|
#define GL_BUFFER_SIZE 0x8764
|
||||||
#define GL_BUFFER_USAGE 0x8765
|
#define GL_BUFFER_USAGE 0x8765
|
||||||
|
|
||||||
#define GL_CURRENT_VERTEX_ATTRIB 0x8626
|
#define GL_CURRENT_VERTEX_ATTRIB 0x8626
|
||||||
|
|
||||||
/* CullFaceMode */
|
|
||||||
#define GL_FRONT 0x0404
|
#define GL_FRONT 0x0404
|
||||||
#define GL_BACK 0x0405
|
#define GL_BACK 0x0405
|
||||||
#define GL_FRONT_AND_BACK 0x0408
|
#define GL_FRONT_AND_BACK 0x0408
|
||||||
|
|
||||||
/* DepthFunction */
|
|
||||||
/* GL_NEVER */
|
|
||||||
/* GL_LESS */
|
|
||||||
/* GL_EQUAL */
|
|
||||||
/* GL_LEQUAL */
|
|
||||||
/* GL_GREATER */
|
|
||||||
/* GL_NOTEQUAL */
|
|
||||||
/* GL_GEQUAL */
|
|
||||||
/* GL_ALWAYS */
|
|
||||||
|
|
||||||
/* EnableCap */
|
|
||||||
#define GL_TEXTURE_2D 0x0DE1
|
#define GL_TEXTURE_2D 0x0DE1
|
||||||
#define GL_CULL_FACE 0x0B44
|
#define GL_CULL_FACE 0x0B44
|
||||||
#define GL_BLEND 0x0BE2
|
#define GL_BLEND 0x0BE2
|
||||||
|
@ -152,19 +121,13 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_POLYGON_OFFSET_FILL 0x8037
|
#define GL_POLYGON_OFFSET_FILL 0x8037
|
||||||
#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
|
#define GL_SAMPLE_ALPHA_TO_COVERAGE 0x809E
|
||||||
#define GL_SAMPLE_COVERAGE 0x80A0
|
#define GL_SAMPLE_COVERAGE 0x80A0
|
||||||
|
|
||||||
/* ErrorCode */
|
|
||||||
#define GL_NO_ERROR 0
|
#define GL_NO_ERROR 0
|
||||||
#define GL_INVALID_ENUM 0x0500
|
#define GL_INVALID_ENUM 0x0500
|
||||||
#define GL_INVALID_VALUE 0x0501
|
#define GL_INVALID_VALUE 0x0501
|
||||||
#define GL_INVALID_OPERATION 0x0502
|
#define GL_INVALID_OPERATION 0x0502
|
||||||
#define GL_OUT_OF_MEMORY 0x0505
|
#define GL_OUT_OF_MEMORY 0x0505
|
||||||
|
|
||||||
/* FrontFaceDirection */
|
|
||||||
#define GL_CW 0x0900
|
#define GL_CW 0x0900
|
||||||
#define GL_CCW 0x0901
|
#define GL_CCW 0x0901
|
||||||
|
|
||||||
/* GetPName */
|
|
||||||
#define GL_LINE_WIDTH 0x0B21
|
#define GL_LINE_WIDTH 0x0B21
|
||||||
#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
|
#define GL_ALIASED_POINT_SIZE_RANGE 0x846D
|
||||||
#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
|
#define GL_ALIASED_LINE_WIDTH_RANGE 0x846E
|
||||||
|
@ -191,7 +154,6 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
|
#define GL_STENCIL_BACK_WRITEMASK 0x8CA5
|
||||||
#define GL_VIEWPORT 0x0BA2
|
#define GL_VIEWPORT 0x0BA2
|
||||||
#define GL_SCISSOR_BOX 0x0C10
|
#define GL_SCISSOR_BOX 0x0C10
|
||||||
/* GL_SCISSOR_TEST */
|
|
||||||
#define GL_COLOR_CLEAR_VALUE 0x0C22
|
#define GL_COLOR_CLEAR_VALUE 0x0C22
|
||||||
#define GL_COLOR_WRITEMASK 0x0C23
|
#define GL_COLOR_WRITEMASK 0x0C23
|
||||||
#define GL_UNPACK_ALIGNMENT 0x0CF5
|
#define GL_UNPACK_ALIGNMENT 0x0CF5
|
||||||
|
@ -206,32 +168,18 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_DEPTH_BITS 0x0D56
|
#define GL_DEPTH_BITS 0x0D56
|
||||||
#define GL_STENCIL_BITS 0x0D57
|
#define GL_STENCIL_BITS 0x0D57
|
||||||
#define GL_POLYGON_OFFSET_UNITS 0x2A00
|
#define GL_POLYGON_OFFSET_UNITS 0x2A00
|
||||||
/* GL_POLYGON_OFFSET_FILL */
|
|
||||||
#define GL_POLYGON_OFFSET_FACTOR 0x8038
|
#define GL_POLYGON_OFFSET_FACTOR 0x8038
|
||||||
#define GL_TEXTURE_BINDING_2D 0x8069
|
#define GL_TEXTURE_BINDING_2D 0x8069
|
||||||
#define GL_SAMPLE_BUFFERS 0x80A8
|
#define GL_SAMPLE_BUFFERS 0x80A8
|
||||||
#define GL_SAMPLES 0x80A9
|
#define GL_SAMPLES 0x80A9
|
||||||
#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
|
#define GL_SAMPLE_COVERAGE_VALUE 0x80AA
|
||||||
#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
|
#define GL_SAMPLE_COVERAGE_INVERT 0x80AB
|
||||||
|
|
||||||
/* GetTextureParameter */
|
|
||||||
/* GL_TEXTURE_MAG_FILTER */
|
|
||||||
/* GL_TEXTURE_MIN_FILTER */
|
|
||||||
/* GL_TEXTURE_WRAP_S */
|
|
||||||
/* GL_TEXTURE_WRAP_T */
|
|
||||||
|
|
||||||
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
|
#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
|
||||||
#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
|
#define GL_COMPRESSED_TEXTURE_FORMATS 0x86A3
|
||||||
|
|
||||||
/* HintMode */
|
|
||||||
#define GL_DONT_CARE 0x1100
|
#define GL_DONT_CARE 0x1100
|
||||||
#define GL_FASTEST 0x1101
|
#define GL_FASTEST 0x1101
|
||||||
#define GL_NICEST 0x1102
|
#define GL_NICEST 0x1102
|
||||||
|
#define GL_GENERATE_MIPMAP_HINT 0x8192
|
||||||
/* HintTarget */
|
|
||||||
#define GL_GENERATE_MIPMAP_HINT 0x8192
|
|
||||||
|
|
||||||
/* DataType */
|
|
||||||
#define GL_BYTE 0x1400
|
#define GL_BYTE 0x1400
|
||||||
#define GL_UNSIGNED_BYTE 0x1401
|
#define GL_UNSIGNED_BYTE 0x1401
|
||||||
#define GL_SHORT 0x1402
|
#define GL_SHORT 0x1402
|
||||||
|
@ -240,44 +188,35 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_UNSIGNED_INT 0x1405
|
#define GL_UNSIGNED_INT 0x1405
|
||||||
#define GL_FLOAT 0x1406
|
#define GL_FLOAT 0x1406
|
||||||
#define GL_FIXED 0x140C
|
#define GL_FIXED 0x140C
|
||||||
|
|
||||||
/* PixelFormat */
|
|
||||||
#define GL_DEPTH_COMPONENT 0x1902
|
#define GL_DEPTH_COMPONENT 0x1902
|
||||||
#define GL_ALPHA 0x1906
|
#define GL_ALPHA 0x1906
|
||||||
#define GL_RGB 0x1907
|
#define GL_RGB 0x1907
|
||||||
#define GL_RGBA 0x1908
|
#define GL_RGBA 0x1908
|
||||||
#define GL_LUMINANCE 0x1909
|
#define GL_LUMINANCE 0x1909
|
||||||
#define GL_LUMINANCE_ALPHA 0x190A
|
#define GL_LUMINANCE_ALPHA 0x190A
|
||||||
|
|
||||||
/* PixelType */
|
|
||||||
/* GL_UNSIGNED_BYTE */
|
|
||||||
#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
|
#define GL_UNSIGNED_SHORT_4_4_4_4 0x8033
|
||||||
#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
|
#define GL_UNSIGNED_SHORT_5_5_5_1 0x8034
|
||||||
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
|
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
|
||||||
|
#define GL_FRAGMENT_SHADER 0x8B30
|
||||||
/* Shaders */
|
#define GL_VERTEX_SHADER 0x8B31
|
||||||
#define GL_FRAGMENT_SHADER 0x8B30
|
#define GL_MAX_VERTEX_ATTRIBS 0x8869
|
||||||
#define GL_VERTEX_SHADER 0x8B31
|
#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
|
||||||
#define GL_MAX_VERTEX_ATTRIBS 0x8869
|
#define GL_MAX_VARYING_VECTORS 0x8DFC
|
||||||
#define GL_MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
|
|
||||||
#define GL_MAX_VARYING_VECTORS 0x8DFC
|
|
||||||
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
|
||||||
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
|
#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
|
||||||
#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
|
#define GL_MAX_TEXTURE_IMAGE_UNITS 0x8872
|
||||||
#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
|
#define GL_MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
|
||||||
#define GL_SHADER_TYPE 0x8B4F
|
#define GL_SHADER_TYPE 0x8B4F
|
||||||
#define GL_DELETE_STATUS 0x8B80
|
#define GL_DELETE_STATUS 0x8B80
|
||||||
#define GL_LINK_STATUS 0x8B82
|
#define GL_LINK_STATUS 0x8B82
|
||||||
#define GL_VALIDATE_STATUS 0x8B83
|
#define GL_VALIDATE_STATUS 0x8B83
|
||||||
#define GL_ATTACHED_SHADERS 0x8B85
|
#define GL_ATTACHED_SHADERS 0x8B85
|
||||||
#define GL_ACTIVE_UNIFORMS 0x8B86
|
#define GL_ACTIVE_UNIFORMS 0x8B86
|
||||||
#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
#define GL_ACTIVE_UNIFORM_MAX_LENGTH 0x8B87
|
||||||
#define GL_ACTIVE_ATTRIBUTES 0x8B89
|
#define GL_ACTIVE_ATTRIBUTES 0x8B89
|
||||||
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
|
#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH 0x8B8A
|
||||||
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
#define GL_SHADING_LANGUAGE_VERSION 0x8B8C
|
||||||
#define GL_CURRENT_PROGRAM 0x8B8D
|
#define GL_CURRENT_PROGRAM 0x8B8D
|
||||||
|
|
||||||
/* StencilFunction */
|
|
||||||
#define GL_NEVER 0x0200
|
#define GL_NEVER 0x0200
|
||||||
#define GL_LESS 0x0201
|
#define GL_LESS 0x0201
|
||||||
#define GL_EQUAL 0x0202
|
#define GL_EQUAL 0x0202
|
||||||
|
@ -286,9 +225,6 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_NOTEQUAL 0x0205
|
#define GL_NOTEQUAL 0x0205
|
||||||
#define GL_GEQUAL 0x0206
|
#define GL_GEQUAL 0x0206
|
||||||
#define GL_ALWAYS 0x0207
|
#define GL_ALWAYS 0x0207
|
||||||
|
|
||||||
/* StencilOp */
|
|
||||||
/* GL_ZERO */
|
|
||||||
#define GL_KEEP 0x1E00
|
#define GL_KEEP 0x1E00
|
||||||
#define GL_REPLACE 0x1E01
|
#define GL_REPLACE 0x1E01
|
||||||
#define GL_INCR 0x1E02
|
#define GL_INCR 0x1E02
|
||||||
|
@ -296,35 +232,21 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_INVERT 0x150A
|
#define GL_INVERT 0x150A
|
||||||
#define GL_INCR_WRAP 0x8507
|
#define GL_INCR_WRAP 0x8507
|
||||||
#define GL_DECR_WRAP 0x8508
|
#define GL_DECR_WRAP 0x8508
|
||||||
|
|
||||||
/* StringName */
|
|
||||||
#define GL_VENDOR 0x1F00
|
#define GL_VENDOR 0x1F00
|
||||||
#define GL_RENDERER 0x1F01
|
#define GL_RENDERER 0x1F01
|
||||||
#define GL_VERSION 0x1F02
|
#define GL_VERSION 0x1F02
|
||||||
#define GL_EXTENSIONS 0x1F03
|
#define GL_EXTENSIONS 0x1F03
|
||||||
|
|
||||||
/* TextureMagFilter */
|
|
||||||
#define GL_NEAREST 0x2600
|
#define GL_NEAREST 0x2600
|
||||||
#define GL_LINEAR 0x2601
|
#define GL_LINEAR 0x2601
|
||||||
|
|
||||||
/* TextureMinFilter */
|
|
||||||
/* GL_NEAREST */
|
|
||||||
/* GL_LINEAR */
|
|
||||||
#define GL_NEAREST_MIPMAP_NEAREST 0x2700
|
#define GL_NEAREST_MIPMAP_NEAREST 0x2700
|
||||||
#define GL_LINEAR_MIPMAP_NEAREST 0x2701
|
#define GL_LINEAR_MIPMAP_NEAREST 0x2701
|
||||||
#define GL_NEAREST_MIPMAP_LINEAR 0x2702
|
#define GL_NEAREST_MIPMAP_LINEAR 0x2702
|
||||||
#define GL_LINEAR_MIPMAP_LINEAR 0x2703
|
#define GL_LINEAR_MIPMAP_LINEAR 0x2703
|
||||||
|
|
||||||
/* TextureParameterName */
|
|
||||||
#define GL_TEXTURE_MAG_FILTER 0x2800
|
#define GL_TEXTURE_MAG_FILTER 0x2800
|
||||||
#define GL_TEXTURE_MIN_FILTER 0x2801
|
#define GL_TEXTURE_MIN_FILTER 0x2801
|
||||||
#define GL_TEXTURE_WRAP_S 0x2802
|
#define GL_TEXTURE_WRAP_S 0x2802
|
||||||
#define GL_TEXTURE_WRAP_T 0x2803
|
#define GL_TEXTURE_WRAP_T 0x2803
|
||||||
|
|
||||||
/* TextureTarget */
|
|
||||||
/* GL_TEXTURE_2D */
|
|
||||||
#define GL_TEXTURE 0x1702
|
#define GL_TEXTURE 0x1702
|
||||||
|
|
||||||
#define GL_TEXTURE_CUBE_MAP 0x8513
|
#define GL_TEXTURE_CUBE_MAP 0x8513
|
||||||
#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
|
#define GL_TEXTURE_BINDING_CUBE_MAP 0x8514
|
||||||
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
|
#define GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x8515
|
||||||
|
@ -334,8 +256,6 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
|
#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x8519
|
||||||
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
|
#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x851A
|
||||||
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
|
#define GL_MAX_CUBE_MAP_TEXTURE_SIZE 0x851C
|
||||||
|
|
||||||
/* TextureUnit */
|
|
||||||
#define GL_TEXTURE0 0x84C0
|
#define GL_TEXTURE0 0x84C0
|
||||||
#define GL_TEXTURE1 0x84C1
|
#define GL_TEXTURE1 0x84C1
|
||||||
#define GL_TEXTURE2 0x84C2
|
#define GL_TEXTURE2 0x84C2
|
||||||
|
@ -369,13 +289,9 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_TEXTURE30 0x84DE
|
#define GL_TEXTURE30 0x84DE
|
||||||
#define GL_TEXTURE31 0x84DF
|
#define GL_TEXTURE31 0x84DF
|
||||||
#define GL_ACTIVE_TEXTURE 0x84E0
|
#define GL_ACTIVE_TEXTURE 0x84E0
|
||||||
|
|
||||||
/* TextureWrapMode */
|
|
||||||
#define GL_REPEAT 0x2901
|
#define GL_REPEAT 0x2901
|
||||||
#define GL_CLAMP_TO_EDGE 0x812F
|
#define GL_CLAMP_TO_EDGE 0x812F
|
||||||
#define GL_MIRRORED_REPEAT 0x8370
|
#define GL_MIRRORED_REPEAT 0x8370
|
||||||
|
|
||||||
/* Uniform Types */
|
|
||||||
#define GL_FLOAT_VEC2 0x8B50
|
#define GL_FLOAT_VEC2 0x8B50
|
||||||
#define GL_FLOAT_VEC3 0x8B51
|
#define GL_FLOAT_VEC3 0x8B51
|
||||||
#define GL_FLOAT_VEC4 0x8B52
|
#define GL_FLOAT_VEC4 0x8B52
|
||||||
|
@ -391,48 +307,34 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_FLOAT_MAT4 0x8B5C
|
#define GL_FLOAT_MAT4 0x8B5C
|
||||||
#define GL_SAMPLER_2D 0x8B5E
|
#define GL_SAMPLER_2D 0x8B5E
|
||||||
#define GL_SAMPLER_CUBE 0x8B60
|
#define GL_SAMPLER_CUBE 0x8B60
|
||||||
|
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
|
||||||
/* Vertex Arrays */
|
#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_ENABLED 0x8622
|
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_SIZE 0x8623
|
#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_STRIDE 0x8624
|
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_TYPE 0x8625
|
#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
|
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_POINTER 0x8645
|
|
||||||
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
|
#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
|
||||||
|
#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
|
||||||
/* Read Format */
|
|
||||||
#define GL_IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
|
|
||||||
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
|
#define GL_IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B
|
||||||
|
|
||||||
/* Shader Source */
|
|
||||||
#define GL_COMPILE_STATUS 0x8B81
|
#define GL_COMPILE_STATUS 0x8B81
|
||||||
#define GL_INFO_LOG_LENGTH 0x8B84
|
#define GL_INFO_LOG_LENGTH 0x8B84
|
||||||
#define GL_SHADER_SOURCE_LENGTH 0x8B88
|
#define GL_SHADER_SOURCE_LENGTH 0x8B88
|
||||||
#define GL_SHADER_COMPILER 0x8DFA
|
#define GL_SHADER_COMPILER 0x8DFA
|
||||||
|
|
||||||
/* Shader Binary */
|
|
||||||
#define GL_SHADER_BINARY_FORMATS 0x8DF8
|
#define GL_SHADER_BINARY_FORMATS 0x8DF8
|
||||||
#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
|
#define GL_NUM_SHADER_BINARY_FORMATS 0x8DF9
|
||||||
|
|
||||||
/* Shader Precision-Specified Types */
|
|
||||||
#define GL_LOW_FLOAT 0x8DF0
|
#define GL_LOW_FLOAT 0x8DF0
|
||||||
#define GL_MEDIUM_FLOAT 0x8DF1
|
#define GL_MEDIUM_FLOAT 0x8DF1
|
||||||
#define GL_HIGH_FLOAT 0x8DF2
|
#define GL_HIGH_FLOAT 0x8DF2
|
||||||
#define GL_LOW_INT 0x8DF3
|
#define GL_LOW_INT 0x8DF3
|
||||||
#define GL_MEDIUM_INT 0x8DF4
|
#define GL_MEDIUM_INT 0x8DF4
|
||||||
#define GL_HIGH_INT 0x8DF5
|
#define GL_HIGH_INT 0x8DF5
|
||||||
|
|
||||||
/* Framebuffer Object. */
|
|
||||||
#define GL_FRAMEBUFFER 0x8D40
|
#define GL_FRAMEBUFFER 0x8D40
|
||||||
#define GL_RENDERBUFFER 0x8D41
|
#define GL_RENDERBUFFER 0x8D41
|
||||||
|
|
||||||
#define GL_RGBA4 0x8056
|
#define GL_RGBA4 0x8056
|
||||||
#define GL_RGB5_A1 0x8057
|
#define GL_RGB5_A1 0x8057
|
||||||
#define GL_RGB565 0x8D62
|
#define GL_RGB565 0x8D62
|
||||||
#define GL_DEPTH_COMPONENT16 0x81A5
|
#define GL_DEPTH_COMPONENT16 0x81A5
|
||||||
#define GL_STENCIL_INDEX8 0x8D48
|
#define GL_STENCIL_INDEX8 0x8D48
|
||||||
|
|
||||||
#define GL_RENDERBUFFER_WIDTH 0x8D42
|
#define GL_RENDERBUFFER_WIDTH 0x8D42
|
||||||
#define GL_RENDERBUFFER_HEIGHT 0x8D43
|
#define GL_RENDERBUFFER_HEIGHT 0x8D43
|
||||||
#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
|
#define GL_RENDERBUFFER_INTERNAL_FORMAT 0x8D44
|
||||||
|
@ -442,180 +344,313 @@ typedef khronos_ssize_t GLsizeiptr;
|
||||||
#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
|
#define GL_RENDERBUFFER_ALPHA_SIZE 0x8D53
|
||||||
#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
|
#define GL_RENDERBUFFER_DEPTH_SIZE 0x8D54
|
||||||
#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
|
#define GL_RENDERBUFFER_STENCIL_SIZE 0x8D55
|
||||||
|
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
|
||||||
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE 0x8CD0
|
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
|
||||||
#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME 0x8CD1
|
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
|
||||||
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL 0x8CD2
|
|
||||||
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
|
#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE 0x8CD3
|
||||||
|
|
||||||
#define GL_COLOR_ATTACHMENT0 0x8CE0
|
#define GL_COLOR_ATTACHMENT0 0x8CE0
|
||||||
#define GL_DEPTH_ATTACHMENT 0x8D00
|
#define GL_DEPTH_ATTACHMENT 0x8D00
|
||||||
#define GL_STENCIL_ATTACHMENT 0x8D20
|
#define GL_STENCIL_ATTACHMENT 0x8D20
|
||||||
|
|
||||||
#define GL_NONE 0
|
#define GL_NONE 0
|
||||||
|
#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
||||||
#define GL_FRAMEBUFFER_COMPLETE 0x8CD5
|
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
||||||
#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT 0x8CD6
|
|
||||||
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT 0x8CD7
|
||||||
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
|
#define GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS 0x8CD9
|
||||||
#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
#define GL_FRAMEBUFFER_UNSUPPORTED 0x8CDD
|
||||||
|
|
||||||
#define GL_FRAMEBUFFER_BINDING 0x8CA6
|
#define GL_FRAMEBUFFER_BINDING 0x8CA6
|
||||||
#define GL_RENDERBUFFER_BINDING 0x8CA7
|
#define GL_RENDERBUFFER_BINDING 0x8CA7
|
||||||
#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
|
#define GL_MAX_RENDERBUFFER_SIZE 0x84E8
|
||||||
|
|
||||||
#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
|
#define GL_INVALID_FRAMEBUFFER_OPERATION 0x0506
|
||||||
|
typedef void (GL_APIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
|
||||||
/*-------------------------------------------------------------------------
|
typedef void (GL_APIENTRYP PFNGLATTACHSHADERPROC) (GLuint program, GLuint shader);
|
||||||
* GL core functions.
|
typedef void (GL_APIENTRYP PFNGLBINDATTRIBLOCATIONPROC) (GLuint program, GLuint index, const GLchar *name);
|
||||||
*-----------------------------------------------------------------------*/
|
typedef void (GL_APIENTRYP PFNGLBINDBUFFERPROC) (GLenum target, GLuint buffer);
|
||||||
|
typedef void (GL_APIENTRYP PFNGLBINDFRAMEBUFFERPROC) (GLenum target, GLuint framebuffer);
|
||||||
GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
|
typedef void (GL_APIENTRYP PFNGLBINDRENDERBUFFERPROC) (GLenum target, GLuint renderbuffer);
|
||||||
GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
|
typedef void (GL_APIENTRYP PFNGLBINDTEXTUREPROC) (GLenum target, GLuint texture);
|
||||||
GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar* name);
|
typedef void (GL_APIENTRYP PFNGLBLENDCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||||
GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
|
typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
|
||||||
GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
|
typedef void (GL_APIENTRYP PFNGLBLENDEQUATIONSEPARATEPROC) (GLenum modeRGB, GLenum modeAlpha);
|
||||||
GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
|
typedef void (GL_APIENTRYP PFNGLBLENDFUNCPROC) (GLenum sfactor, GLenum dfactor);
|
||||||
GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
|
typedef void (GL_APIENTRYP PFNGLBLENDFUNCSEPARATEPROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
||||||
GL_APICALL void GL_APIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
typedef void (GL_APIENTRYP PFNGLBUFFERDATAPROC) (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
|
||||||
GL_APICALL void GL_APIENTRY glBlendEquation ( GLenum mode );
|
typedef void (GL_APIENTRYP PFNGLBUFFERSUBDATAPROC) (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
|
||||||
GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
|
typedef GLenum (GL_APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC) (GLenum target);
|
||||||
GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
|
typedef void (GL_APIENTRYP PFNGLCLEARPROC) (GLbitfield mask);
|
||||||
GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
|
typedef void (GL_APIENTRYP PFNGLCLEARCOLORPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||||
GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
|
typedef void (GL_APIENTRYP PFNGLCLEARDEPTHFPROC) (GLfloat d);
|
||||||
GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
|
typedef void (GL_APIENTRYP PFNGLCLEARSTENCILPROC) (GLint s);
|
||||||
GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
|
typedef void (GL_APIENTRYP PFNGLCOLORMASKPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
||||||
GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
|
typedef void (GL_APIENTRYP PFNGLCOMPILESHADERPROC) (GLuint shader);
|
||||||
GL_APICALL void GL_APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
|
||||||
GL_APICALL void GL_APIENTRY glClearDepthf (GLclampf depth);
|
typedef void (GL_APIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
|
||||||
GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
|
typedef void (GL_APIENTRYP PFNGLCOPYTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
||||||
GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
typedef void (GL_APIENTRYP PFNGLCOPYTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
|
typedef GLuint (GL_APIENTRYP PFNGLCREATEPROGRAMPROC) (void);
|
||||||
GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
|
typedef GLuint (GL_APIENTRYP PFNGLCREATESHADERPROC) (GLenum type);
|
||||||
GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
|
typedef void (GL_APIENTRYP PFNGLCULLFACEPROC) (GLenum mode);
|
||||||
GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
typedef void (GL_APIENTRYP PFNGLDELETEBUFFERSPROC) (GLsizei n, const GLuint *buffers);
|
||||||
GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
typedef void (GL_APIENTRYP PFNGLDELETEFRAMEBUFFERSPROC) (GLsizei n, const GLuint *framebuffers);
|
||||||
GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
|
typedef void (GL_APIENTRYP PFNGLDELETEPROGRAMPROC) (GLuint program);
|
||||||
GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
|
typedef void (GL_APIENTRYP PFNGLDELETERENDERBUFFERSPROC) (GLsizei n, const GLuint *renderbuffers);
|
||||||
GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
|
typedef void (GL_APIENTRYP PFNGLDELETESHADERPROC) (GLuint shader);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint* buffers);
|
typedef void (GL_APIENTRYP PFNGLDELETETEXTURESPROC) (GLsizei n, const GLuint *textures);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint* framebuffers);
|
typedef void (GL_APIENTRYP PFNGLDEPTHFUNCPROC) (GLenum func);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
|
typedef void (GL_APIENTRYP PFNGLDEPTHMASKPROC) (GLboolean flag);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers);
|
typedef void (GL_APIENTRYP PFNGLDEPTHRANGEFPROC) (GLfloat n, GLfloat f);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
|
typedef void (GL_APIENTRYP PFNGLDETACHSHADERPROC) (GLuint program, GLuint shader);
|
||||||
GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint* textures);
|
typedef void (GL_APIENTRYP PFNGLDISABLEPROC) (GLenum cap);
|
||||||
GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
|
typedef void (GL_APIENTRYP PFNGLDISABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||||
GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
|
typedef void (GL_APIENTRYP PFNGLDRAWARRAYSPROC) (GLenum mode, GLint first, GLsizei count);
|
||||||
GL_APICALL void GL_APIENTRY glDepthRangef (GLclampf zNear, GLclampf zFar);
|
typedef void (GL_APIENTRYP PFNGLDRAWELEMENTSPROC) (GLenum mode, GLsizei count, GLenum type, const void *indices);
|
||||||
GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
|
typedef void (GL_APIENTRYP PFNGLENABLEPROC) (GLenum cap);
|
||||||
GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
|
typedef void (GL_APIENTRYP PFNGLENABLEVERTEXATTRIBARRAYPROC) (GLuint index);
|
||||||
GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
|
typedef void (GL_APIENTRYP PFNGLFINISHPROC) (void);
|
||||||
GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
|
typedef void (GL_APIENTRYP PFNGLFLUSHPROC) (void);
|
||||||
GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
|
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERRENDERBUFFERPROC) (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||||
GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
|
typedef void (GL_APIENTRYP PFNGLFRAMEBUFFERTEXTURE2DPROC) (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||||
GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
|
typedef void (GL_APIENTRYP PFNGLFRONTFACEPROC) (GLenum mode);
|
||||||
GL_APICALL void GL_APIENTRY glFinish (void);
|
typedef void (GL_APIENTRYP PFNGLGENBUFFERSPROC) (GLsizei n, GLuint *buffers);
|
||||||
GL_APICALL void GL_APIENTRY glFlush (void);
|
typedef void (GL_APIENTRYP PFNGLGENERATEMIPMAPPROC) (GLenum target);
|
||||||
GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
typedef void (GL_APIENTRYP PFNGLGENFRAMEBUFFERSPROC) (GLsizei n, GLuint *framebuffers);
|
||||||
GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
typedef void (GL_APIENTRYP PFNGLGENRENDERBUFFERSPROC) (GLsizei n, GLuint *renderbuffers);
|
||||||
GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
|
typedef void (GL_APIENTRYP PFNGLGENTEXTURESPROC) (GLsizei n, GLuint *textures);
|
||||||
GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint* buffers);
|
typedef void (GL_APIENTRYP PFNGLGETACTIVEATTRIBPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||||
GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
|
typedef void (GL_APIENTRYP PFNGLGETACTIVEUNIFORMPROC) (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||||
GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint* framebuffers);
|
typedef void (GL_APIENTRYP PFNGLGETATTACHEDSHADERSPROC) (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
|
||||||
GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint* renderbuffers);
|
typedef GLint (GL_APIENTRYP PFNGLGETATTRIBLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||||
GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint* textures);
|
typedef void (GL_APIENTRYP PFNGLGETBOOLEANVPROC) (GLenum pname, GLboolean *data);
|
||||||
GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
|
typedef void (GL_APIENTRYP PFNGLGETBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name);
|
typedef GLenum (GL_APIENTRYP PFNGLGETERRORPROC) (void);
|
||||||
GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders);
|
typedef void (GL_APIENTRYP PFNGLGETFLOATVPROC) (GLenum pname, GLfloat *data);
|
||||||
GL_APICALL GLint GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar* name);
|
typedef void (GL_APIENTRYP PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) (GLenum target, GLenum attachment, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean* params);
|
typedef void (GL_APIENTRYP PFNGLGETINTEGERVPROC) (GLenum pname, GLint *data);
|
||||||
GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETPROGRAMIVPROC) (GLuint program, GLenum pname, GLint *params);
|
||||||
GL_APICALL GLenum GL_APIENTRY glGetError (void);
|
typedef void (GL_APIENTRYP PFNGLGETPROGRAMINFOLOGPROC) (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||||
GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat* params);
|
typedef void (GL_APIENTRYP PFNGLGETRENDERBUFFERPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETSHADERIVPROC) (GLuint shader, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETSHADERINFOLOGPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||||
GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETSHADERPRECISIONFORMATPROC) (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
|
||||||
GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog);
|
typedef void (GL_APIENTRYP PFNGLGETSHADERSOURCEPROC) (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
|
||||||
GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params);
|
typedef const GLubyte *(GL_APIENTRYP PFNGLGETSTRINGPROC) (GLenum name);
|
||||||
GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog);
|
typedef void (GL_APIENTRYP PFNGLGETTEXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision);
|
typedef void (GL_APIENTRYP PFNGLGETUNIFORMFVPROC) (GLuint program, GLint location, GLfloat *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source);
|
typedef void (GL_APIENTRYP PFNGLGETUNIFORMIVPROC) (GLuint program, GLint location, GLint *params);
|
||||||
GL_APICALL const GLubyte* GL_APIENTRY glGetString (GLenum name);
|
typedef GLint (GL_APIENTRYP PFNGLGETUNIFORMLOCATIONPROC) (GLuint program, const GLchar *name);
|
||||||
GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params);
|
typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBFVPROC) (GLuint index, GLenum pname, GLfloat *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBIVPROC) (GLuint index, GLenum pname, GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat* params);
|
typedef void (GL_APIENTRYP PFNGLGETVERTEXATTRIBPOINTERVPROC) (GLuint index, GLenum pname, void **pointer);
|
||||||
GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint* params);
|
typedef void (GL_APIENTRYP PFNGLHINTPROC) (GLenum target, GLenum mode);
|
||||||
GL_APICALL GLint GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar* name);
|
typedef GLboolean (GL_APIENTRYP PFNGLISBUFFERPROC) (GLuint buffer);
|
||||||
GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params);
|
typedef GLboolean (GL_APIENTRYP PFNGLISENABLEDPROC) (GLenum cap);
|
||||||
GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params);
|
typedef GLboolean (GL_APIENTRYP PFNGLISFRAMEBUFFERPROC) (GLuint framebuffer);
|
||||||
GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer);
|
typedef GLboolean (GL_APIENTRYP PFNGLISPROGRAMPROC) (GLuint program);
|
||||||
GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
|
typedef GLboolean (GL_APIENTRYP PFNGLISRENDERBUFFERPROC) (GLuint renderbuffer);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
|
typedef GLboolean (GL_APIENTRYP PFNGLISSHADERPROC) (GLuint shader);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
|
typedef GLboolean (GL_APIENTRYP PFNGLISTEXTUREPROC) (GLuint texture);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
|
typedef void (GL_APIENTRYP PFNGLLINEWIDTHPROC) (GLfloat width);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
|
typedef void (GL_APIENTRYP PFNGLLINKPROGRAMPROC) (GLuint program);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
|
typedef void (GL_APIENTRYP PFNGLPIXELSTOREIPROC) (GLenum pname, GLint param);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
|
typedef void (GL_APIENTRYP PFNGLPOLYGONOFFSETPROC) (GLfloat factor, GLfloat units);
|
||||||
GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
|
typedef void (GL_APIENTRYP PFNGLREADPIXELSPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
|
||||||
GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
|
typedef void (GL_APIENTRYP PFNGLRELEASESHADERCOMPILERPROC) (void);
|
||||||
GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
|
typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||||
GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
|
typedef void (GL_APIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLfloat value, GLboolean invert);
|
||||||
GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
|
typedef void (GL_APIENTRYP PFNGLSCISSORPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
|
typedef void (GL_APIENTRYP PFNGLSHADERBINARYPROC) (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
|
||||||
GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
|
typedef void (GL_APIENTRYP PFNGLSHADERSOURCEPROC) (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
|
||||||
GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
typedef void (GL_APIENTRYP PFNGLSTENCILFUNCPROC) (GLenum func, GLint ref, GLuint mask);
|
||||||
GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
|
typedef void (GL_APIENTRYP PFNGLSTENCILFUNCSEPARATEPROC) (GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||||
GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
|
typedef void (GL_APIENTRYP PFNGLSTENCILMASKPROC) (GLuint mask);
|
||||||
GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length);
|
typedef void (GL_APIENTRYP PFNGLSTENCILMASKSEPARATEPROC) (GLenum face, GLuint mask);
|
||||||
GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length);
|
typedef void (GL_APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum zpass);
|
||||||
GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
|
typedef void (GL_APIENTRYP PFNGLSTENCILOPSEPARATEPROC) (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||||
GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
|
typedef void (GL_APIENTRYP PFNGLTEXIMAGE2DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
|
||||||
GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat param);
|
||||||
GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
|
||||||
GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIPROC) (GLenum target, GLenum pname, GLint param);
|
||||||
GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
|
typedef void (GL_APIENTRYP PFNGLTEXPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
|
||||||
GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
|
typedef void (GL_APIENTRYP PFNGLTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
|
||||||
GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1FPROC) (GLint location, GLfloat v0);
|
||||||
GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat* params);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1IPROC) (GLint location, GLint v0);
|
||||||
GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint* params);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM1IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||||
GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM2FPROC) (GLint location, GLfloat v0, GLfloat v1);
|
||||||
GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat x);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM2FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM2IPROC) (GLint location, GLint v0, GLint v1);
|
||||||
GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint x);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM2IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM3FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||||
GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat x, GLfloat y);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM3FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM3IPROC) (GLint location, GLint v0, GLint v1, GLint v2);
|
||||||
GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint x, GLint y);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM3IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM4FPROC) (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||||
GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM4FVPROC) (GLint location, GLsizei count, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM4IPROC) (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||||
GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint x, GLint y, GLint z);
|
typedef void (GL_APIENTRYP PFNGLUNIFORM4IVPROC) (GLint location, GLsizei count, const GLint *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX2FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX3FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat* v);
|
typedef void (GL_APIENTRYP PFNGLUNIFORMMATRIX4FVPROC) (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w);
|
typedef void (GL_APIENTRYP PFNGLUSEPROGRAMPROC) (GLuint program);
|
||||||
GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint* v);
|
typedef void (GL_APIENTRYP PFNGLVALIDATEPROGRAMPROC) (GLuint program);
|
||||||
GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FPROC) (GLuint index, GLfloat x);
|
||||||
GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB1FVPROC) (GLuint index, const GLfloat *v);
|
||||||
GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FPROC) (GLuint index, GLfloat x, GLfloat y);
|
||||||
GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB2FVPROC) (GLuint index, const GLfloat *v);
|
||||||
GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint indx, GLfloat x);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB3FVPROC) (GLuint index, const GLfloat *v);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint indx, const GLfloat* values);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIB4FVPROC) (GLuint index, const GLfloat *v);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint indx, const GLfloat* values);
|
typedef void (GL_APIENTRYP PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z);
|
typedef void (GL_APIENTRYP PFNGLVIEWPORTPROC) (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint indx, const GLfloat* values);
|
#if GL_GLES_PROTOTYPES
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
GL_APICALL void GL_APIENTRY glActiveTexture (GLenum texture);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint indx, const GLfloat* values);
|
GL_APICALL void GL_APIENTRY glAttachShader (GLuint program, GLuint shader);
|
||||||
GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr);
|
GL_APICALL void GL_APIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
|
||||||
GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
|
GL_APICALL void GL_APIENTRY glBindBuffer (GLenum target, GLuint buffer);
|
||||||
|
GL_APICALL void GL_APIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
|
||||||
|
GL_APICALL void GL_APIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
|
||||||
|
GL_APICALL void GL_APIENTRY glBindTexture (GLenum target, GLuint texture);
|
||||||
|
GL_APICALL void GL_APIENTRY glBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||||
|
GL_APICALL void GL_APIENTRY glBlendEquation (GLenum mode);
|
||||||
|
GL_APICALL void GL_APIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
|
||||||
|
GL_APICALL void GL_APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
|
||||||
|
GL_APICALL void GL_APIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
|
||||||
|
GL_APICALL void GL_APIENTRY glBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage);
|
||||||
|
GL_APICALL void GL_APIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data);
|
||||||
|
GL_APICALL GLenum GL_APIENTRY glCheckFramebufferStatus (GLenum target);
|
||||||
|
GL_APICALL void GL_APIENTRY glClear (GLbitfield mask);
|
||||||
|
GL_APICALL void GL_APIENTRY glClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
|
||||||
|
GL_APICALL void GL_APIENTRY glClearDepthf (GLfloat d);
|
||||||
|
GL_APICALL void GL_APIENTRY glClearStencil (GLint s);
|
||||||
|
GL_APICALL void GL_APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
|
||||||
|
GL_APICALL void GL_APIENTRY glCompileShader (GLuint shader);
|
||||||
|
GL_APICALL void GL_APIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data);
|
||||||
|
GL_APICALL void GL_APIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data);
|
||||||
|
GL_APICALL void GL_APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
|
||||||
|
GL_APICALL void GL_APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
GL_APICALL GLuint GL_APIENTRY glCreateProgram (void);
|
||||||
|
GL_APICALL GLuint GL_APIENTRY glCreateShader (GLenum type);
|
||||||
|
GL_APICALL void GL_APIENTRY glCullFace (GLenum mode);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteProgram (GLuint program);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteShader (GLuint shader);
|
||||||
|
GL_APICALL void GL_APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
|
||||||
|
GL_APICALL void GL_APIENTRY glDepthFunc (GLenum func);
|
||||||
|
GL_APICALL void GL_APIENTRY glDepthMask (GLboolean flag);
|
||||||
|
GL_APICALL void GL_APIENTRY glDepthRangef (GLfloat n, GLfloat f);
|
||||||
|
GL_APICALL void GL_APIENTRY glDetachShader (GLuint program, GLuint shader);
|
||||||
|
GL_APICALL void GL_APIENTRY glDisable (GLenum cap);
|
||||||
|
GL_APICALL void GL_APIENTRY glDisableVertexAttribArray (GLuint index);
|
||||||
|
GL_APICALL void GL_APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
|
||||||
|
GL_APICALL void GL_APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices);
|
||||||
|
GL_APICALL void GL_APIENTRY glEnable (GLenum cap);
|
||||||
|
GL_APICALL void GL_APIENTRY glEnableVertexAttribArray (GLuint index);
|
||||||
|
GL_APICALL void GL_APIENTRY glFinish (void);
|
||||||
|
GL_APICALL void GL_APIENTRY glFlush (void);
|
||||||
|
GL_APICALL void GL_APIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
|
||||||
|
GL_APICALL void GL_APIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
|
||||||
|
GL_APICALL void GL_APIENTRY glFrontFace (GLenum mode);
|
||||||
|
GL_APICALL void GL_APIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glGenerateMipmap (GLenum target);
|
||||||
|
GL_APICALL void GL_APIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
|
||||||
|
GL_APICALL void GL_APIENTRY glGenTextures (GLsizei n, GLuint *textures);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
|
||||||
|
GL_APICALL GLint GL_APIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetBooleanv (GLenum pname, GLboolean *data);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL GLenum GL_APIENTRY glGetError (void);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetFloatv (GLenum pname, GLfloat *data);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetIntegerv (GLenum pname, GLint *data);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetShaderiv (GLuint shader, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
|
||||||
|
GL_APICALL const GLubyte *GL_APIENTRY glGetString (GLenum name);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
|
||||||
|
GL_APICALL GLint GL_APIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, void **pointer);
|
||||||
|
GL_APICALL void GL_APIENTRY glHint (GLenum target, GLenum mode);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsBuffer (GLuint buffer);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsEnabled (GLenum cap);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsFramebuffer (GLuint framebuffer);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsProgram (GLuint program);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsRenderbuffer (GLuint renderbuffer);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsShader (GLuint shader);
|
||||||
|
GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLuint texture);
|
||||||
|
GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width);
|
||||||
|
GL_APICALL void GL_APIENTRY glLinkProgram (GLuint program);
|
||||||
|
GL_APICALL void GL_APIENTRY glPixelStorei (GLenum pname, GLint param);
|
||||||
|
GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
|
||||||
|
GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels);
|
||||||
|
GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void);
|
||||||
|
GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
|
||||||
|
GL_APICALL void GL_APIENTRY glSampleCoverage (GLfloat value, GLboolean invert);
|
||||||
|
GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
GL_APICALL void GL_APIENTRY glShaderBinary (GLsizei count, const GLuint *shaders, GLenum binaryFormat, const void *binary, GLsizei length);
|
||||||
|
GL_APICALL void GL_APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
|
||||||
|
GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
|
||||||
|
GL_APICALL void GL_APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform1f (GLint location, GLfloat v0);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform1i (GLint location, GLint v0);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
|
||||||
|
GL_APICALL void GL_APIENTRY glUseProgram (GLuint program);
|
||||||
|
GL_APICALL void GL_APIENTRY glValidateProgram (GLuint program);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
|
||||||
|
GL_APICALL void GL_APIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer);
|
||||||
|
GL_APICALL void GL_APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
|
||||||
|
#endif
|
||||||
|
#endif /* GL_ES_VERSION_2_0 */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __gl2_h_ */
|
#endif
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,20 +1,17 @@
|
||||||
#ifndef __gl2platform_h_
|
#ifndef __gl2platform_h_
|
||||||
#define __gl2platform_h_
|
#define __gl2platform_h_
|
||||||
|
|
||||||
/* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This document is licensed under the SGI Free Software B License Version
|
** Copyright 2017-2020 The Khronos Group Inc.
|
||||||
* 2.0. For details, see http://oss.sgi.com/projects/FreeB/ .
|
** SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
|
/* Platform-specific types and definitions for OpenGL ES 2.X gl2.h
|
||||||
*
|
*
|
||||||
* Adopters may modify khrplatform.h and this file to suit their platform.
|
* Adopters may modify khrplatform.h and this file to suit their platform.
|
||||||
* You are encouraged to submit all modifications to the Khronos group so that
|
* Please contribute modifications back to Khronos as pull requests on the
|
||||||
* they can be included in future versions of this file. Please submit changes
|
* public github repository:
|
||||||
* by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
|
* https://github.com/KhronosGroup/OpenGL-Registry
|
||||||
* by filing a bug against product "OpenGL-ES" component "Registry".
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*#include <KHR/khrplatform.h>*/
|
/*#include <KHR/khrplatform.h>*/
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#define __khrplatform_h_
|
#define __khrplatform_h_
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright (c) 2008-2009 The Khronos Group Inc.
|
** Copyright (c) 2008-2018 The Khronos Group Inc.
|
||||||
**
|
**
|
||||||
** Permission is hereby granted, free of charge, to any person obtaining a
|
** Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
** copy of this software and/or associated documentation files (the
|
** copy of this software and/or associated documentation files (the
|
||||||
|
@ -26,18 +26,16 @@
|
||||||
|
|
||||||
/* Khronos platform-specific types and definitions.
|
/* Khronos platform-specific types and definitions.
|
||||||
*
|
*
|
||||||
* $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
|
* The master copy of khrplatform.h is maintained in the Khronos EGL
|
||||||
|
* Registry repository at https://github.com/KhronosGroup/EGL-Registry
|
||||||
|
* The last semantic modification to khrplatform.h was at commit ID:
|
||||||
|
* 67a3e0864c2d75ea5287b9f3d2eb74a745936692
|
||||||
*
|
*
|
||||||
* Adopters may modify this file to suit their platform. Adopters are
|
* Adopters may modify this file to suit their platform. Adopters are
|
||||||
* encouraged to submit platform specific modifications to the Khronos
|
* encouraged to submit platform specific modifications to the Khronos
|
||||||
* group so that they can be included in future versions of this file.
|
* group so that they can be included in future versions of this file.
|
||||||
* Please submit changes by sending them to the public Khronos Bugzilla
|
* Please submit changes by filing pull requests or issues on
|
||||||
* (http://khronos.org/bugzilla) by filing a bug against product
|
* the EGL Registry repository linked above.
|
||||||
* "Khronos (general)" component "Registry".
|
|
||||||
*
|
|
||||||
* A predefined template which fills in some of the bug fields can be
|
|
||||||
* reached using http://tinyurl.com/khrplatform-h-bugreport, but you
|
|
||||||
* must create a Bugzilla login first.
|
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* See the Implementer's Guidelines for information about where this file
|
* See the Implementer's Guidelines for information about where this file
|
||||||
|
@ -92,15 +90,25 @@
|
||||||
* int arg2) KHRONOS_APIATTRIBUTES;
|
* int arg2) KHRONOS_APIATTRIBUTES;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
|
||||||
|
# define KHRONOS_STATIC 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
* Definition of KHRONOS_APICALL
|
* Definition of KHRONOS_APICALL
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
* This precedes the return type of the function in the function prototype.
|
* This precedes the return type of the function in the function prototype.
|
||||||
*/
|
*/
|
||||||
#if defined(_WIN32) && !defined(__SCITECH_SNAP__)
|
#if defined(KHRONOS_STATIC)
|
||||||
|
/* If the preprocessor constant KHRONOS_STATIC is defined, make the
|
||||||
|
* header compatible with static linking. */
|
||||||
|
# define KHRONOS_APICALL
|
||||||
|
#elif defined(_WIN32)
|
||||||
# define KHRONOS_APICALL __declspec(dllimport)
|
# define KHRONOS_APICALL __declspec(dllimport)
|
||||||
#elif defined (__SYMBIAN32__)
|
#elif defined (__SYMBIAN32__)
|
||||||
# define KHRONOS_APICALL IMPORT_C
|
# define KHRONOS_APICALL IMPORT_C
|
||||||
|
#elif defined(__ANDROID__)
|
||||||
|
# define KHRONOS_APICALL __attribute__((visibility("default")))
|
||||||
#else
|
#else
|
||||||
# define KHRONOS_APICALL
|
# define KHRONOS_APICALL
|
||||||
#endif
|
#endif
|
||||||
|
@ -145,6 +153,20 @@ typedef int64_t khronos_int64_t;
|
||||||
typedef uint64_t khronos_uint64_t;
|
typedef uint64_t khronos_uint64_t;
|
||||||
#define KHRONOS_SUPPORT_INT64 1
|
#define KHRONOS_SUPPORT_INT64 1
|
||||||
#define KHRONOS_SUPPORT_FLOAT 1
|
#define KHRONOS_SUPPORT_FLOAT 1
|
||||||
|
/*
|
||||||
|
* To support platform where unsigned long cannot be used interchangeably with
|
||||||
|
* inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t.
|
||||||
|
* Ideally, we could just use (u)intptr_t everywhere, but this could result in
|
||||||
|
* ABI breakage if khronos_uintptr_t is changed from unsigned long to
|
||||||
|
* unsigned long long or similar (this results in different C++ name mangling).
|
||||||
|
* To avoid changes for existing platforms, we restrict usage of intptr_t to
|
||||||
|
* platforms where the size of a pointer is larger than the size of long.
|
||||||
|
*/
|
||||||
|
#if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__)
|
||||||
|
#if __SIZEOF_POINTER__ > __SIZEOF_LONG__
|
||||||
|
#define KHRONOS_USE_INTPTR_T
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#elif defined(__VMS ) || defined(__sgi)
|
#elif defined(__VMS ) || defined(__sgi)
|
||||||
|
|
||||||
|
@ -223,18 +245,25 @@ typedef signed short int khronos_int16_t;
|
||||||
typedef unsigned short int khronos_uint16_t;
|
typedef unsigned short int khronos_uint16_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Types that differ between LLP64 and LP64 architectures - in LLP64,
|
* Types that differ between LLP64 and LP64 architectures - in LLP64,
|
||||||
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
* pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
|
||||||
* to be the only LLP64 architecture in current use.
|
* to be the only LLP64 architecture in current use.
|
||||||
*/
|
*/
|
||||||
#ifdef _WIN64
|
#ifdef KHRONOS_USE_INTPTR_T
|
||||||
|
typedef intptr_t khronos_intptr_t;
|
||||||
|
typedef uintptr_t khronos_uintptr_t;
|
||||||
|
#elif defined(_WIN64)
|
||||||
typedef signed long long int khronos_intptr_t;
|
typedef signed long long int khronos_intptr_t;
|
||||||
typedef unsigned long long int khronos_uintptr_t;
|
typedef unsigned long long int khronos_uintptr_t;
|
||||||
typedef signed long long int khronos_ssize_t;
|
|
||||||
typedef unsigned long long int khronos_usize_t;
|
|
||||||
#else
|
#else
|
||||||
typedef signed long int khronos_intptr_t;
|
typedef signed long int khronos_intptr_t;
|
||||||
typedef unsigned long int khronos_uintptr_t;
|
typedef unsigned long int khronos_uintptr_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
typedef signed long long int khronos_ssize_t;
|
||||||
|
typedef unsigned long long int khronos_usize_t;
|
||||||
|
#else
|
||||||
typedef signed long int khronos_ssize_t;
|
typedef signed long int khronos_ssize_t;
|
||||||
typedef unsigned long int khronos_usize_t;
|
typedef unsigned long int khronos_usize_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -65,6 +65,10 @@
|
||||||
#undef __LINUX__ /* do we need to do this? */
|
#undef __LINUX__ /* do we need to do this? */
|
||||||
#define __ANDROID__ 1
|
#define __ANDROID__ 1
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__NGAGE__)
|
||||||
|
#undef __NGAGE__
|
||||||
|
#define __NGAGE__ 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
/* lets us know what version of Mac OS X we're compiling on */
|
/* lets us know what version of Mac OS X we're compiling on */
|
||||||
|
@ -104,9 +108,9 @@
|
||||||
/* if not compiling for iOS */
|
/* if not compiling for iOS */
|
||||||
#undef __MACOSX__
|
#undef __MACOSX__
|
||||||
#define __MACOSX__ 1
|
#define __MACOSX__ 1
|
||||||
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1060
|
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1070
|
||||||
# error SDL for Mac OS X only supports deploying on 10.6 and above.
|
# error SDL for Mac OS X only supports deploying on 10.7 and above.
|
||||||
#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1060 */
|
#endif /* MAC_OS_X_VERSION_MIN_REQUIRED < 1070 */
|
||||||
#endif /* TARGET_OS_IPHONE */
|
#endif /* TARGET_OS_IPHONE */
|
||||||
#endif /* defined(__APPLE__) */
|
#endif /* defined(__APPLE__) */
|
||||||
|
|
||||||
|
@ -140,7 +144,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
|
#if defined(WIN32) || defined(_WIN32) || defined(__CYGWIN__) || defined(__MINGW32__)
|
||||||
/* Try to find out if we're compiling for WinRT or non-WinRT */
|
/* Try to find out if we're compiling for WinRT, GDK or non-WinRT/GDK */
|
||||||
#if defined(_MSC_VER) && defined(__has_include)
|
#if defined(_MSC_VER) && defined(__has_include)
|
||||||
#if __has_include(<winapifamily.h>)
|
#if __has_include(<winapifamily.h>)
|
||||||
#define HAVE_WINAPIFAMILY_H 1
|
#define HAVE_WINAPIFAMILY_H 1
|
||||||
|
@ -165,6 +169,15 @@
|
||||||
#if WINAPI_FAMILY_WINRT
|
#if WINAPI_FAMILY_WINRT
|
||||||
#undef __WINRT__
|
#undef __WINRT__
|
||||||
#define __WINRT__ 1
|
#define __WINRT__ 1
|
||||||
|
#elif defined(_GAMING_DESKTOP) /* GDK project configuration always defines _GAMING_XXX */
|
||||||
|
#undef __WINGDK__
|
||||||
|
#define __WINGDK__ 1
|
||||||
|
#elif defined(_GAMING_XBOX_XBOXONE)
|
||||||
|
#undef __XBOXONE__
|
||||||
|
#define __XBOXONE__ 1
|
||||||
|
#elif defined(_GAMING_XBOX_SCARLETT)
|
||||||
|
#undef __XBOXSERIES__
|
||||||
|
#define __XBOXSERIES__ 1
|
||||||
#else
|
#else
|
||||||
#undef __WINDOWS__
|
#undef __WINDOWS__
|
||||||
#define __WINDOWS__ 1
|
#define __WINDOWS__ 1
|
||||||
|
@ -175,10 +188,18 @@
|
||||||
#undef __WIN32__
|
#undef __WIN32__
|
||||||
#define __WIN32__ 1
|
#define __WIN32__ 1
|
||||||
#endif
|
#endif
|
||||||
|
/* This is to support generic "any GDK" separate from a platform-specific GDK */
|
||||||
|
#if defined(__WINGDK__) || defined(__XBOXONE__) || defined(__XBOXSERIES__)
|
||||||
|
#undef __GDK__
|
||||||
|
#define __GDK__ 1
|
||||||
|
#endif
|
||||||
#if defined(__PSP__)
|
#if defined(__PSP__)
|
||||||
#undef __PSP__
|
#undef __PSP__
|
||||||
#define __PSP__ 1
|
#define __PSP__ 1
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(PS2)
|
||||||
|
#define __PS2__ 1
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The NACL compiler defines __native_client__ and __pnacl__
|
/* The NACL compiler defines __native_client__ and __pnacl__
|
||||||
* Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi
|
* Ref: http://www.chromium.org/nativeclient/pnacl/stability-of-the-pnacl-bitcode-abi
|
||||||
|
@ -200,6 +221,11 @@
|
||||||
#define __VITA__ 1
|
#define __VITA__ 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(__3DS__)
|
||||||
|
#undef __3DS__
|
||||||
|
#define __3DS__ 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "begin_code.h"
|
#include "begin_code.h"
|
||||||
/* Set up for C function definitions, even when using C++ */
|
/* Set up for C function definitions, even when using C++ */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -825,9 +825,13 @@ extern DECLSPEC int SDLCALL SDL_RenderSetLogicalSize(SDL_Renderer * renderer, in
|
||||||
/**
|
/**
|
||||||
* Get device independent resolution for rendering.
|
* Get device independent resolution for rendering.
|
||||||
*
|
*
|
||||||
* This may return 0 for `w` and `h` if the SDL_Renderer has never had its
|
* When using the main rendering target (eg no target texture is set): this
|
||||||
* logical size set by SDL_RenderSetLogicalSize() and never had a render
|
* may return 0 for `w` and `h` if the SDL_Renderer has never had its logical
|
||||||
* target set.
|
* size set by SDL_RenderSetLogicalSize(). Otherwise it returns the logical
|
||||||
|
* width and height.
|
||||||
|
*
|
||||||
|
* When using a target texture: Never return 0 for `w` and `h` at first. Then
|
||||||
|
* it returns the logical width and height that are set.
|
||||||
*
|
*
|
||||||
* \param renderer a rendering context
|
* \param renderer a rendering context
|
||||||
* \param w an int to be filled with the width
|
* \param w an int to be filled with the width
|
||||||
|
@ -1000,7 +1004,7 @@ extern DECLSPEC void SDLCALL SDL_RenderGetScale(SDL_Renderer * renderer,
|
||||||
* and logical renderer size set
|
* and logical renderer size set
|
||||||
*
|
*
|
||||||
* \param renderer the renderer from which the logical coordinates should be
|
* \param renderer the renderer from which the logical coordinates should be
|
||||||
* calcualted
|
* calculated
|
||||||
* \param windowX the real X coordinate in the window
|
* \param windowX the real X coordinate in the window
|
||||||
* \param windowY the real Y coordinate in the window
|
* \param windowY the real Y coordinate in the window
|
||||||
* \param logicalX the pointer filled with the logical x coordinate
|
* \param logicalX the pointer filled with the logical x coordinate
|
||||||
|
@ -1017,19 +1021,23 @@ extern DECLSPEC void SDLCALL SDL_RenderWindowToLogical(SDL_Renderer * renderer,
|
||||||
int windowX, int windowY,
|
int windowX, int windowY,
|
||||||
float *logicalX, float *logicalY);
|
float *logicalX, float *logicalY);
|
||||||
|
|
||||||
/**
|
|
||||||
* Get real coordinates of point in window when given logical coordinates of point in renderer.
|
/**
|
||||||
* Logical coordinates will differ from real coordinates when render is scaled and logical renderer size set
|
* Get real coordinates of point in window when given logical coordinates of
|
||||||
*
|
* point in renderer.
|
||||||
* \param renderer the renderer from which the window coordinates should be calculated
|
*
|
||||||
|
* Logical coordinates will differ from real coordinates when render is scaled
|
||||||
|
* and logical renderer size set
|
||||||
|
*
|
||||||
|
* \param renderer the renderer from which the window coordinates should be
|
||||||
|
* calculated
|
||||||
* \param logicalX the logical x coordinate
|
* \param logicalX the logical x coordinate
|
||||||
* \param logicalY the logical y coordinate
|
* \param logicalY the logical y coordinate
|
||||||
* \param windowX the pointer filled with the real X coordinate in the window
|
* \param windowX the pointer filled with the real X coordinate in the window
|
||||||
* \param windowY the pointer filled with the real Y coordinate in the window
|
* \param windowY the pointer filled with the real Y coordinate in the window
|
||||||
|
*
|
||||||
*
|
|
||||||
* \since This function is available since SDL 2.0.18.
|
* \since This function is available since SDL 2.0.18.
|
||||||
*
|
*
|
||||||
* \sa SDL_RenderGetScale
|
* \sa SDL_RenderGetScale
|
||||||
* \sa SDL_RenderSetScale
|
* \sa SDL_RenderSetScale
|
||||||
* \sa SDL_RenderGetLogicalSize
|
* \sa SDL_RenderGetLogicalSize
|
||||||
|
@ -1757,6 +1765,9 @@ extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
|
||||||
/**
|
/**
|
||||||
* Destroy the rendering context for a window and free associated textures.
|
* Destroy the rendering context for a window and free associated textures.
|
||||||
*
|
*
|
||||||
|
* If `renderer` is NULL, this function will return immediately after setting
|
||||||
|
* the SDL error message to "Invalid renderer". See SDL_GetError().
|
||||||
|
*
|
||||||
* \param renderer the rendering context
|
* \param renderer the rendering context
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
|
|
|
@ -1,2 +1,7 @@
|
||||||
#define SDL_REVISION "@dfeebcbd4a98fc18494c27cf2c6f3239f75a27d5"
|
/* Generated by updaterev.sh, do not edit */
|
||||||
|
#ifdef SDL_VENDOR_INFO
|
||||||
|
#define SDL_REVISION "SDL-release-2.26.1-0-gf17058b56 (" SDL_VENDOR_INFO ")"
|
||||||
|
#else
|
||||||
|
#define SDL_REVISION "SDL-release-2.26.1-0-gf17058b56"
|
||||||
|
#endif
|
||||||
#define SDL_REVISION_NUMBER 0
|
#define SDL_REVISION_NUMBER 0
|
||||||
|
|
|
@ -45,9 +45,6 @@ extern "C" {
|
||||||
#define SDL_RWOPS_JNIFILE 3U /**< Android asset */
|
#define SDL_RWOPS_JNIFILE 3U /**< Android asset */
|
||||||
#define SDL_RWOPS_MEMORY 4U /**< Memory stream */
|
#define SDL_RWOPS_MEMORY 4U /**< Memory stream */
|
||||||
#define SDL_RWOPS_MEMORY_RO 5U /**< Read-Only memory stream */
|
#define SDL_RWOPS_MEMORY_RO 5U /**< Read-Only memory stream */
|
||||||
#if defined(__VITA__)
|
|
||||||
#define SDL_RWOPS_VITAFILE 6U /**< Vita file */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the read/write operation structure -- very basic.
|
* This is the read/write operation structure -- very basic.
|
||||||
|
@ -101,7 +98,7 @@ typedef struct SDL_RWops
|
||||||
{
|
{
|
||||||
void *asset;
|
void *asset;
|
||||||
} androidio;
|
} androidio;
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__) || defined(__GDK__)
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
SDL_bool append;
|
SDL_bool append;
|
||||||
|
@ -113,17 +110,6 @@ typedef struct SDL_RWops
|
||||||
size_t left;
|
size_t left;
|
||||||
} buffer;
|
} buffer;
|
||||||
} windowsio;
|
} windowsio;
|
||||||
#elif defined(__VITA__)
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
int h;
|
|
||||||
struct
|
|
||||||
{
|
|
||||||
void *data;
|
|
||||||
size_t size;
|
|
||||||
size_t left;
|
|
||||||
} buffer;
|
|
||||||
} vitaio;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_STDIO_H
|
#ifdef HAVE_STDIO_H
|
||||||
|
|
|
@ -225,16 +225,16 @@ typedef enum
|
||||||
SDL_SCANCODE_F23 = 114,
|
SDL_SCANCODE_F23 = 114,
|
||||||
SDL_SCANCODE_F24 = 115,
|
SDL_SCANCODE_F24 = 115,
|
||||||
SDL_SCANCODE_EXECUTE = 116,
|
SDL_SCANCODE_EXECUTE = 116,
|
||||||
SDL_SCANCODE_HELP = 117,
|
SDL_SCANCODE_HELP = 117, /**< AL Integrated Help Center */
|
||||||
SDL_SCANCODE_MENU = 118,
|
SDL_SCANCODE_MENU = 118, /**< Menu (show menu) */
|
||||||
SDL_SCANCODE_SELECT = 119,
|
SDL_SCANCODE_SELECT = 119,
|
||||||
SDL_SCANCODE_STOP = 120,
|
SDL_SCANCODE_STOP = 120, /**< AC Stop */
|
||||||
SDL_SCANCODE_AGAIN = 121, /**< redo */
|
SDL_SCANCODE_AGAIN = 121, /**< AC Redo/Repeat */
|
||||||
SDL_SCANCODE_UNDO = 122,
|
SDL_SCANCODE_UNDO = 122, /**< AC Undo */
|
||||||
SDL_SCANCODE_CUT = 123,
|
SDL_SCANCODE_CUT = 123, /**< AC Cut */
|
||||||
SDL_SCANCODE_COPY = 124,
|
SDL_SCANCODE_COPY = 124, /**< AC Copy */
|
||||||
SDL_SCANCODE_PASTE = 125,
|
SDL_SCANCODE_PASTE = 125, /**< AC Paste */
|
||||||
SDL_SCANCODE_FIND = 126,
|
SDL_SCANCODE_FIND = 126, /**< AC Find */
|
||||||
SDL_SCANCODE_MUTE = 127,
|
SDL_SCANCODE_MUTE = 127,
|
||||||
SDL_SCANCODE_VOLUMEUP = 128,
|
SDL_SCANCODE_VOLUMEUP = 128,
|
||||||
SDL_SCANCODE_VOLUMEDOWN = 129,
|
SDL_SCANCODE_VOLUMEDOWN = 129,
|
||||||
|
@ -265,9 +265,9 @@ typedef enum
|
||||||
SDL_SCANCODE_LANG8 = 151, /**< reserved */
|
SDL_SCANCODE_LANG8 = 151, /**< reserved */
|
||||||
SDL_SCANCODE_LANG9 = 152, /**< reserved */
|
SDL_SCANCODE_LANG9 = 152, /**< reserved */
|
||||||
|
|
||||||
SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
|
SDL_SCANCODE_ALTERASE = 153, /**< Erase-Eaze */
|
||||||
SDL_SCANCODE_SYSREQ = 154,
|
SDL_SCANCODE_SYSREQ = 154,
|
||||||
SDL_SCANCODE_CANCEL = 155,
|
SDL_SCANCODE_CANCEL = 155, /**< AC Cancel */
|
||||||
SDL_SCANCODE_CLEAR = 156,
|
SDL_SCANCODE_CLEAR = 156,
|
||||||
SDL_SCANCODE_PRIOR = 157,
|
SDL_SCANCODE_PRIOR = 157,
|
||||||
SDL_SCANCODE_RETURN2 = 158,
|
SDL_SCANCODE_RETURN2 = 158,
|
||||||
|
@ -345,6 +345,11 @@ typedef enum
|
||||||
* \name Usage page 0x0C
|
* \name Usage page 0x0C
|
||||||
*
|
*
|
||||||
* These values are mapped from usage page 0x0C (USB consumer page).
|
* These values are mapped from usage page 0x0C (USB consumer page).
|
||||||
|
* See https://usb.org/sites/default/files/hut1_2.pdf
|
||||||
|
*
|
||||||
|
* There are way more keys in the spec than we can represent in the
|
||||||
|
* current scancode range, so pick the ones that commonly come up in
|
||||||
|
* real world usage.
|
||||||
*/
|
*/
|
||||||
/* @{ */
|
/* @{ */
|
||||||
|
|
||||||
|
@ -354,17 +359,17 @@ typedef enum
|
||||||
SDL_SCANCODE_AUDIOPLAY = 261,
|
SDL_SCANCODE_AUDIOPLAY = 261,
|
||||||
SDL_SCANCODE_AUDIOMUTE = 262,
|
SDL_SCANCODE_AUDIOMUTE = 262,
|
||||||
SDL_SCANCODE_MEDIASELECT = 263,
|
SDL_SCANCODE_MEDIASELECT = 263,
|
||||||
SDL_SCANCODE_WWW = 264,
|
SDL_SCANCODE_WWW = 264, /**< AL Internet Browser */
|
||||||
SDL_SCANCODE_MAIL = 265,
|
SDL_SCANCODE_MAIL = 265,
|
||||||
SDL_SCANCODE_CALCULATOR = 266,
|
SDL_SCANCODE_CALCULATOR = 266, /**< AL Calculator */
|
||||||
SDL_SCANCODE_COMPUTER = 267,
|
SDL_SCANCODE_COMPUTER = 267,
|
||||||
SDL_SCANCODE_AC_SEARCH = 268,
|
SDL_SCANCODE_AC_SEARCH = 268, /**< AC Search */
|
||||||
SDL_SCANCODE_AC_HOME = 269,
|
SDL_SCANCODE_AC_HOME = 269, /**< AC Home */
|
||||||
SDL_SCANCODE_AC_BACK = 270,
|
SDL_SCANCODE_AC_BACK = 270, /**< AC Back */
|
||||||
SDL_SCANCODE_AC_FORWARD = 271,
|
SDL_SCANCODE_AC_FORWARD = 271, /**< AC Forward */
|
||||||
SDL_SCANCODE_AC_STOP = 272,
|
SDL_SCANCODE_AC_STOP = 272, /**< AC Stop */
|
||||||
SDL_SCANCODE_AC_REFRESH = 273,
|
SDL_SCANCODE_AC_REFRESH = 273, /**< AC Refresh */
|
||||||
SDL_SCANCODE_AC_BOOKMARKS = 274,
|
SDL_SCANCODE_AC_BOOKMARKS = 274, /**< AC Bookmarks */
|
||||||
|
|
||||||
/* @} *//* Usage page 0x0C */
|
/* @} *//* Usage page 0x0C */
|
||||||
|
|
||||||
|
@ -383,7 +388,7 @@ typedef enum
|
||||||
SDL_SCANCODE_KBDILLUMDOWN = 279,
|
SDL_SCANCODE_KBDILLUMDOWN = 279,
|
||||||
SDL_SCANCODE_KBDILLUMUP = 280,
|
SDL_SCANCODE_KBDILLUMUP = 280,
|
||||||
SDL_SCANCODE_EJECT = 281,
|
SDL_SCANCODE_EJECT = 281,
|
||||||
SDL_SCANCODE_SLEEP = 282,
|
SDL_SCANCODE_SLEEP = 282, /**< SC System Sleep */
|
||||||
|
|
||||||
SDL_SCANCODE_APP1 = 283,
|
SDL_SCANCODE_APP1 = 283,
|
||||||
SDL_SCANCODE_APP2 = 284,
|
SDL_SCANCODE_APP2 = 284,
|
||||||
|
@ -402,6 +407,26 @@ typedef enum
|
||||||
|
|
||||||
/* @} *//* Usage page 0x0C (additional media keys) */
|
/* @} *//* Usage page 0x0C (additional media keys) */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \name Mobile keys
|
||||||
|
*
|
||||||
|
* These are values that are often used on mobile phones.
|
||||||
|
*/
|
||||||
|
/* @{ */
|
||||||
|
|
||||||
|
SDL_SCANCODE_SOFTLEFT = 287, /**< Usually situated below the display on phones and
|
||||||
|
used as a multi-function feature key for selecting
|
||||||
|
a software defined function shown on the bottom left
|
||||||
|
of the display. */
|
||||||
|
SDL_SCANCODE_SOFTRIGHT = 288, /**< Usually situated below the display on phones and
|
||||||
|
used as a multi-function feature key for selecting
|
||||||
|
a software defined function shown on the bottom right
|
||||||
|
of the display. */
|
||||||
|
SDL_SCANCODE_CALL = 289, /**< Used for accepting phone calls. */
|
||||||
|
SDL_SCANCODE_ENDCALL = 290, /**< Used for rejecting phone calls. */
|
||||||
|
|
||||||
|
/* @} *//* Mobile keys */
|
||||||
|
|
||||||
/* Add any other keys here. */
|
/* Add any other keys here. */
|
||||||
|
|
||||||
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
|
SDL_NUM_SCANCODES = 512 /**< not a key, just marks the number of scancodes
|
||||||
|
|
|
@ -71,7 +71,11 @@ typedef enum
|
||||||
SDL_SENSOR_INVALID = -1, /**< Returned for an invalid sensor */
|
SDL_SENSOR_INVALID = -1, /**< Returned for an invalid sensor */
|
||||||
SDL_SENSOR_UNKNOWN, /**< Unknown sensor type */
|
SDL_SENSOR_UNKNOWN, /**< Unknown sensor type */
|
||||||
SDL_SENSOR_ACCEL, /**< Accelerometer */
|
SDL_SENSOR_ACCEL, /**< Accelerometer */
|
||||||
SDL_SENSOR_GYRO /**< Gyroscope */
|
SDL_SENSOR_GYRO, /**< Gyroscope */
|
||||||
|
SDL_SENSOR_ACCEL_L, /**< Accelerometer for left Joy-Con controller and Wii nunchuk */
|
||||||
|
SDL_SENSOR_GYRO_L, /**< Gyroscope for left Joy-Con controller */
|
||||||
|
SDL_SENSOR_ACCEL_R, /**< Accelerometer for right Joy-Con controller */
|
||||||
|
SDL_SENSOR_GYRO_R /**< Gyroscope for right Joy-Con controller */
|
||||||
} SDL_SensorType;
|
} SDL_SensorType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -263,7 +267,24 @@ extern DECLSPEC SDL_SensorID SDLCALL SDL_SensorGetInstanceID(SDL_Sensor *sensor)
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.9.
|
* \since This function is available since SDL 2.0.9.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC int SDLCALL SDL_SensorGetData(SDL_Sensor * sensor, float *data, int num_values);
|
extern DECLSPEC int SDLCALL SDL_SensorGetData(SDL_Sensor *sensor, float *data, int num_values);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current state of an opened sensor with the timestamp of the last
|
||||||
|
* update.
|
||||||
|
*
|
||||||
|
* The number of values and interpretation of the data is sensor dependent.
|
||||||
|
*
|
||||||
|
* \param sensor The SDL_Sensor object to query
|
||||||
|
* \param timestamp A pointer filled with the timestamp in microseconds of the
|
||||||
|
* current sensor reading if available, or 0 if not
|
||||||
|
* \param data A pointer filled with the current sensor state
|
||||||
|
* \param num_values The number of values to write to data
|
||||||
|
* \returns 0 or -1 if an error occurred.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_SensorGetDataWithTimestamp(SDL_Sensor *sensor, Uint64 *timestamp, float *data, int num_values);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Close a sensor previously opened with SDL_SensorOpen().
|
* Close a sensor previously opened with SDL_SensorOpen().
|
||||||
|
@ -272,7 +293,7 @@ extern DECLSPEC int SDLCALL SDL_SensorGetData(SDL_Sensor * sensor, float *data,
|
||||||
*
|
*
|
||||||
* \since This function is available since SDL 2.0.9.
|
* \since This function is available since SDL 2.0.9.
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_SensorClose(SDL_Sensor * sensor);
|
extern DECLSPEC void SDLCALL SDL_SensorClose(SDL_Sensor *sensor);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the current state of the open sensors.
|
* Update the current state of the open sensors.
|
||||||
|
|
|
@ -80,9 +80,9 @@
|
||||||
# include <ctype.h>
|
# include <ctype.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_MATH_H
|
#ifdef HAVE_MATH_H
|
||||||
# if defined(__WINRT__)
|
# if defined(_MSC_VER)
|
||||||
/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
|
/* Defining _USE_MATH_DEFINES is required to get M_PI to be defined on
|
||||||
WinRT. See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
|
Visual Studio. See http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
|
||||||
for more information.
|
for more information.
|
||||||
*/
|
*/
|
||||||
# define _USE_MATH_DEFINES
|
# define _USE_MATH_DEFINES
|
||||||
|
@ -115,6 +115,12 @@ char *alloca();
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef SIZE_MAX
|
||||||
|
# define SDL_SIZE_MAX SIZE_MAX
|
||||||
|
#else
|
||||||
|
# define SDL_SIZE_MAX ((size_t) -1)
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if the compiler supports a given builtin.
|
* Check if the compiler supports a given builtin.
|
||||||
* Supported by virtually all clang versions and recent gcc. Use this
|
* Supported by virtually all clang versions and recent gcc. Use this
|
||||||
|
@ -253,7 +259,7 @@ typedef uint64_t Uint64;
|
||||||
#ifndef SDL_PRIs64
|
#ifndef SDL_PRIs64
|
||||||
#ifdef PRIs64
|
#ifdef PRIs64
|
||||||
#define SDL_PRIs64 PRIs64
|
#define SDL_PRIs64 PRIs64
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__) || defined(__GDK__)
|
||||||
#define SDL_PRIs64 "I64d"
|
#define SDL_PRIs64 "I64d"
|
||||||
#elif defined(__LINUX__) && defined(__LP64__)
|
#elif defined(__LINUX__) && defined(__LP64__)
|
||||||
#define SDL_PRIs64 "ld"
|
#define SDL_PRIs64 "ld"
|
||||||
|
@ -264,7 +270,7 @@ typedef uint64_t Uint64;
|
||||||
#ifndef SDL_PRIu64
|
#ifndef SDL_PRIu64
|
||||||
#ifdef PRIu64
|
#ifdef PRIu64
|
||||||
#define SDL_PRIu64 PRIu64
|
#define SDL_PRIu64 PRIu64
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__) || defined(__GDK__)
|
||||||
#define SDL_PRIu64 "I64u"
|
#define SDL_PRIu64 "I64u"
|
||||||
#elif defined(__LINUX__) && defined(__LP64__)
|
#elif defined(__LINUX__) && defined(__LP64__)
|
||||||
#define SDL_PRIu64 "lu"
|
#define SDL_PRIu64 "lu"
|
||||||
|
@ -275,7 +281,7 @@ typedef uint64_t Uint64;
|
||||||
#ifndef SDL_PRIx64
|
#ifndef SDL_PRIx64
|
||||||
#ifdef PRIx64
|
#ifdef PRIx64
|
||||||
#define SDL_PRIx64 PRIx64
|
#define SDL_PRIx64 PRIx64
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__) || defined(__GDK__)
|
||||||
#define SDL_PRIx64 "I64x"
|
#define SDL_PRIx64 "I64x"
|
||||||
#elif defined(__LINUX__) && defined(__LP64__)
|
#elif defined(__LINUX__) && defined(__LP64__)
|
||||||
#define SDL_PRIx64 "lx"
|
#define SDL_PRIx64 "lx"
|
||||||
|
@ -286,7 +292,7 @@ typedef uint64_t Uint64;
|
||||||
#ifndef SDL_PRIX64
|
#ifndef SDL_PRIX64
|
||||||
#ifdef PRIX64
|
#ifdef PRIX64
|
||||||
#define SDL_PRIX64 PRIX64
|
#define SDL_PRIX64 PRIX64
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__) || defined(__GDK__)
|
||||||
#define SDL_PRIX64 "I64X"
|
#define SDL_PRIX64 "I64X"
|
||||||
#elif defined(__LINUX__) && defined(__LP64__)
|
#elif defined(__LINUX__) && defined(__LP64__)
|
||||||
#define SDL_PRIX64 "lX"
|
#define SDL_PRIX64 "lX"
|
||||||
|
@ -404,7 +410,7 @@ SDL_COMPILE_TIME_ASSERT(sint64, sizeof(Sint64) == 8);
|
||||||
|
|
||||||
/** \cond */
|
/** \cond */
|
||||||
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
||||||
#if !defined(__ANDROID__) && !defined(__VITA__)
|
#if !defined(__ANDROID__) && !defined(__VITA__) && !defined(__3DS__)
|
||||||
/* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
|
/* TODO: include/SDL_stdinc.h:174: error: size of array 'SDL_dummy_enum' is negative */
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
|
@ -440,6 +446,16 @@ typedef void *(SDLCALL *SDL_calloc_func)(size_t nmemb, size_t size);
|
||||||
typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);
|
typedef void *(SDLCALL *SDL_realloc_func)(void *mem, size_t size);
|
||||||
typedef void (SDLCALL *SDL_free_func)(void *mem);
|
typedef void (SDLCALL *SDL_free_func)(void *mem);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the original set of SDL memory functions
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_GetOriginalMemoryFunctions(SDL_malloc_func *malloc_func,
|
||||||
|
SDL_calloc_func *calloc_func,
|
||||||
|
SDL_realloc_func *realloc_func,
|
||||||
|
SDL_free_func *free_func);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the current set of SDL memory functions
|
* Get the current set of SDL memory functions
|
||||||
*
|
*
|
||||||
|
@ -471,6 +487,7 @@ extern DECLSPEC char *SDLCALL SDL_getenv(const char *name);
|
||||||
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
|
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite);
|
||||||
|
|
||||||
extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *));
|
extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *));
|
||||||
|
extern DECLSPEC void * SDLCALL SDL_bsearch(const void *key, const void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *));
|
||||||
|
|
||||||
extern DECLSPEC int SDLCALL SDL_abs(int x);
|
extern DECLSPEC int SDLCALL SDL_abs(int x);
|
||||||
|
|
||||||
|
@ -494,6 +511,7 @@ extern DECLSPEC int SDLCALL SDL_isgraph(int x);
|
||||||
extern DECLSPEC int SDLCALL SDL_toupper(int x);
|
extern DECLSPEC int SDLCALL SDL_toupper(int x);
|
||||||
extern DECLSPEC int SDLCALL SDL_tolower(int x);
|
extern DECLSPEC int SDLCALL SDL_tolower(int x);
|
||||||
|
|
||||||
|
extern DECLSPEC Uint16 SDLCALL SDL_crc16(Uint16 crc, const void *data, size_t len);
|
||||||
extern DECLSPEC Uint32 SDLCALL SDL_crc32(Uint32 crc, const void *data, size_t len);
|
extern DECLSPEC Uint32 SDLCALL SDL_crc32(Uint32 crc, const void *data, size_t len);
|
||||||
|
|
||||||
extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len);
|
extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len);
|
||||||
|
@ -502,6 +520,11 @@ extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c,
|
||||||
#define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
|
#define SDL_zerop(x) SDL_memset((x), 0, sizeof(*(x)))
|
||||||
#define SDL_zeroa(x) SDL_memset((x), 0, sizeof((x)))
|
#define SDL_zeroa(x) SDL_memset((x), 0, sizeof((x)))
|
||||||
|
|
||||||
|
#define SDL_copyp(dst, src) \
|
||||||
|
{ SDL_COMPILE_TIME_ASSERT(SDL_copyp, sizeof (*(dst)) == sizeof (*(src))); } \
|
||||||
|
SDL_memcpy((dst), (src), sizeof (*(src)))
|
||||||
|
|
||||||
|
|
||||||
/* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
|
/* Note that memset() is a byte assignment and this is a 32-bit assignment, so they're not directly equivalent. */
|
||||||
SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords)
|
SDL_FORCE_INLINE void SDL_memset4(void *dst, Uint32 val, size_t dwords)
|
||||||
{
|
{
|
||||||
|
@ -560,8 +583,10 @@ extern DECLSPEC char *SDLCALL SDL_strlwr(char *str);
|
||||||
extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c);
|
extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c);
|
||||||
extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
|
extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c);
|
||||||
extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
|
extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle);
|
||||||
|
extern DECLSPEC char *SDLCALL SDL_strcasestr(const char *haystack, const char *needle);
|
||||||
extern DECLSPEC char *SDLCALL SDL_strtokr(char *s1, const char *s2, char **saveptr);
|
extern DECLSPEC char *SDLCALL SDL_strtokr(char *s1, const char *s2, char **saveptr);
|
||||||
extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str);
|
extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str);
|
||||||
|
extern DECLSPEC size_t SDLCALL SDL_utf8strnlen(const char *str, size_t bytes);
|
||||||
|
|
||||||
extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix);
|
extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix);
|
||||||
extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix);
|
extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix);
|
||||||
|
@ -735,6 +760,65 @@ SDL_FORCE_INLINE void *SDL_memcpy4(SDL_OUT_BYTECAP(dwords*4) void *dst, SDL_IN_B
|
||||||
return SDL_memcpy(dst, src, dwords * 4);
|
return SDL_memcpy(dst, src, dwords * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If a * b would overflow, return -1. Otherwise store a * b via ret
|
||||||
|
* and return 0.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
SDL_FORCE_INLINE int SDL_size_mul_overflow (size_t a,
|
||||||
|
size_t b,
|
||||||
|
size_t *ret)
|
||||||
|
{
|
||||||
|
if (a != 0 && b > SDL_SIZE_MAX / a) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
*ret = a * b;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if _SDL_HAS_BUILTIN(__builtin_mul_overflow)
|
||||||
|
/* This needs to be wrapped in an inline rather than being a direct #define,
|
||||||
|
* because __builtin_mul_overflow() is type-generic, but we want to be
|
||||||
|
* consistent about interpreting a and b as size_t. */
|
||||||
|
SDL_FORCE_INLINE int _SDL_size_mul_overflow_builtin (size_t a,
|
||||||
|
size_t b,
|
||||||
|
size_t *ret)
|
||||||
|
{
|
||||||
|
return __builtin_mul_overflow(a, b, ret) == 0 ? 0 : -1;
|
||||||
|
}
|
||||||
|
#define SDL_size_mul_overflow(a, b, ret) (_SDL_size_mul_overflow_builtin(a, b, ret))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* If a + b would overflow, return -1. Otherwise store a + b via ret
|
||||||
|
* and return 0.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
SDL_FORCE_INLINE int SDL_size_add_overflow (size_t a,
|
||||||
|
size_t b,
|
||||||
|
size_t *ret)
|
||||||
|
{
|
||||||
|
if (b > SDL_SIZE_MAX - a) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
*ret = a + b;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if _SDL_HAS_BUILTIN(__builtin_add_overflow)
|
||||||
|
/* This needs to be wrapped in an inline rather than being a direct #define,
|
||||||
|
* the same as the call to __builtin_mul_overflow() above. */
|
||||||
|
SDL_FORCE_INLINE int _SDL_size_add_overflow_builtin (size_t a,
|
||||||
|
size_t b,
|
||||||
|
size_t *ret)
|
||||||
|
{
|
||||||
|
return __builtin_add_overflow(a, b, ret) == 0 ? 0 : -1;
|
||||||
|
}
|
||||||
|
#define SDL_size_add_overflow(a, b, ret) (_SDL_size_add_overflow_builtin(a, b, ret))
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ extern "C" {
|
||||||
|
|
||||||
|
|
||||||
/* Platform specific functions for Windows */
|
/* Platform specific functions for Windows */
|
||||||
#ifdef __WIN32__
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
|
|
||||||
typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
|
typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsigned int message, Uint64 wParam, Sint64 lParam);
|
||||||
|
|
||||||
|
@ -55,6 +55,10 @@ typedef void (SDLCALL * SDL_WindowsMessageHook)(void *userdata, void *hWnd, unsi
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
|
extern DECLSPEC void SDLCALL SDL_SetWindowsMessageHook(SDL_WindowsMessageHook callback, void *userdata);
|
||||||
|
|
||||||
|
#endif /* defined(__WIN32__) || defined(__GDK__) */
|
||||||
|
|
||||||
|
#if defined(__WIN32__) || defined(__WINGDK__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the D3D9 adapter index that matches the specified display index.
|
* Get the D3D9 adapter index that matches the specified display index.
|
||||||
*
|
*
|
||||||
|
@ -102,6 +106,30 @@ typedef struct ID3D11Device ID3D11Device;
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC ID3D11Device* SDLCALL SDL_RenderGetD3D11Device(SDL_Renderer * renderer);
|
extern DECLSPEC ID3D11Device* SDLCALL SDL_RenderGetD3D11Device(SDL_Renderer * renderer);
|
||||||
|
|
||||||
|
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
|
||||||
|
|
||||||
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
|
|
||||||
|
typedef struct ID3D12Device ID3D12Device;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the D3D12 device associated with a renderer.
|
||||||
|
*
|
||||||
|
* Once you are done using the device, you should release it to avoid a
|
||||||
|
* resource leak.
|
||||||
|
*
|
||||||
|
* \param renderer the renderer from which to get the associated D3D12 device
|
||||||
|
* \returns the D3D12 device associated with given renderer or NULL if it is
|
||||||
|
* not a D3D12 renderer; call SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC ID3D12Device* SDLCALL SDL_RenderGetD3D12Device(SDL_Renderer* renderer);
|
||||||
|
|
||||||
|
#endif /* defined(__WIN32__) || defined(__GDK__) */
|
||||||
|
|
||||||
|
#if defined(__WIN32__) || defined(__WINGDK__)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the DXGI Adapter and Output indices for the specified display index.
|
* Get the DXGI Adapter and Output indices for the specified display index.
|
||||||
*
|
*
|
||||||
|
@ -122,8 +150,7 @@ extern DECLSPEC ID3D11Device* SDLCALL SDL_RenderGetD3D11Device(SDL_Renderer * re
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo( int displayIndex, int *adapterIndex, int *outputIndex );
|
extern DECLSPEC SDL_bool SDLCALL SDL_DXGIGetOutputInfo( int displayIndex, int *adapterIndex, int *outputIndex );
|
||||||
|
|
||||||
#endif /* __WIN32__ */
|
#endif /* defined(__WIN32__) || defined(__WINGDK__) */
|
||||||
|
|
||||||
|
|
||||||
/* Platform specific functions for Linux */
|
/* Platform specific functions for Linux */
|
||||||
#ifdef __LINUX__
|
#ifdef __LINUX__
|
||||||
|
@ -178,7 +205,7 @@ extern DECLSPEC int SDLCALL SDL_LinuxSetThreadPriorityAndPolicy(Sint64 threadID,
|
||||||
* This function is only available on Apple iOS.
|
* This function is only available on Apple iOS.
|
||||||
*
|
*
|
||||||
* For more information see:
|
* For more information see:
|
||||||
* [README-ios.md](https://hg.libsdl.org/SDL/file/default/docs/README-ios.md)
|
* https://github.com/libsdl-org/SDL/blob/main/docs/README-ios.md
|
||||||
*
|
*
|
||||||
* This functions is also accessible using the macro
|
* This functions is also accessible using the macro
|
||||||
* SDL_iOSSetAnimationCallback() since SDL 2.0.4.
|
* SDL_iOSSetAnimationCallback() since SDL 2.0.4.
|
||||||
|
@ -532,7 +559,7 @@ extern DECLSPEC const wchar_t * SDLCALL SDL_WinRTGetFSPathUNICODE(SDL_WinRT_Path
|
||||||
extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
|
extern DECLSPEC const char * SDLCALL SDL_WinRTGetFSPathUTF8(SDL_WinRT_Path pathType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Detects the device family of WinRT plattform at runtime.
|
* Detects the device family of WinRT platform at runtime.
|
||||||
*
|
*
|
||||||
* \returns a value from the SDL_WinRT_DeviceFamily enum.
|
* \returns a value from the SDL_WinRT_DeviceFamily enum.
|
||||||
*
|
*
|
||||||
|
@ -564,6 +591,27 @@ extern DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive(void);
|
||||||
extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
|
extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Functions used only by GDK */
|
||||||
|
#if defined(__GDK__)
|
||||||
|
typedef struct XTaskQueueObject * XTaskQueueHandle;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets a reference to the global async task queue handle for GDK,
|
||||||
|
* initializing if needed.
|
||||||
|
*
|
||||||
|
* Once you are done with the task queue, you should call
|
||||||
|
* XTaskQueueCloseHandle to reduce the reference count to avoid a resource
|
||||||
|
* leak.
|
||||||
|
*
|
||||||
|
* \param outTaskQueue a pointer to be filled in with task queue handle.
|
||||||
|
* \returns 0 if success, -1 if any error occurs.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GDKGetTaskQueue(XTaskQueueHandle * outTaskQueue);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Ends C function definitions when using C++ */
|
/* Ends C function definitions when using C++ */
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
#include "SDL_atomic.h"
|
#include "SDL_atomic.h"
|
||||||
#include "SDL_mutex.h"
|
#include "SDL_mutex.h"
|
||||||
|
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
#include <process.h> /* _beginthreadex() and _endthreadex() */
|
#include <process.h> /* _beginthreadex() and _endthreadex() */
|
||||||
#endif
|
#endif
|
||||||
#if defined(__OS2__) /* for _beginthread() and _endthread() */
|
#if defined(__OS2__) /* for _beginthread() and _endthread() */
|
||||||
|
@ -88,7 +88,7 @@ typedef enum {
|
||||||
typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
|
typedef int (SDLCALL * SDL_ThreadFunction) (void *data);
|
||||||
|
|
||||||
|
|
||||||
#if defined(__WIN32__)
|
#if defined(__WIN32__) || defined(__GDK__)
|
||||||
/**
|
/**
|
||||||
* \file SDL_thread.h
|
* \file SDL_thread.h
|
||||||
*
|
*
|
||||||
|
|
|
@ -58,8 +58,8 @@ typedef struct SDL_version
|
||||||
/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
|
/* Printable format: "%d.%d.%d", MAJOR, MINOR, PATCHLEVEL
|
||||||
*/
|
*/
|
||||||
#define SDL_MAJOR_VERSION 2
|
#define SDL_MAJOR_VERSION 2
|
||||||
#define SDL_MINOR_VERSION 0
|
#define SDL_MINOR_VERSION 26
|
||||||
#define SDL_PATCHLEVEL 22
|
#define SDL_PATCHLEVEL 1
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Macro to determine SDL version program was compiled against.
|
* Macro to determine SDL version program was compiled against.
|
||||||
|
@ -83,6 +83,8 @@ typedef struct SDL_version
|
||||||
(x)->patch = SDL_PATCHLEVEL; \
|
(x)->patch = SDL_PATCHLEVEL; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO: Remove this whole block in SDL 3 */
|
||||||
|
#if SDL_MAJOR_VERSION < 3
|
||||||
/**
|
/**
|
||||||
* This macro turns the version numbers into a numeric value:
|
* This macro turns the version numbers into a numeric value:
|
||||||
* \verbatim
|
* \verbatim
|
||||||
|
@ -90,21 +92,35 @@ typedef struct SDL_version
|
||||||
\endverbatim
|
\endverbatim
|
||||||
*
|
*
|
||||||
* This assumes that there will never be more than 100 patchlevels.
|
* This assumes that there will never be more than 100 patchlevels.
|
||||||
|
*
|
||||||
|
* In versions higher than 2.9.0, the minor version overflows into
|
||||||
|
* the thousands digit: for example, 2.23.0 is encoded as 4300,
|
||||||
|
* and 2.255.99 would be encoded as 25799.
|
||||||
|
* This macro will not be available in SDL 3.x.
|
||||||
*/
|
*/
|
||||||
#define SDL_VERSIONNUM(X, Y, Z) \
|
#define SDL_VERSIONNUM(X, Y, Z) \
|
||||||
((X)*1000 + (Y)*100 + (Z))
|
((X)*1000 + (Y)*100 + (Z))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the version number macro for the current SDL version.
|
* This is the version number macro for the current SDL version.
|
||||||
|
*
|
||||||
|
* In versions higher than 2.9.0, the minor version overflows into
|
||||||
|
* the thousands digit: for example, 2.23.0 is encoded as 4300.
|
||||||
|
* This macro will not be available in SDL 3.x.
|
||||||
|
*
|
||||||
|
* Deprecated, use SDL_VERSION_ATLEAST or SDL_VERSION instead.
|
||||||
*/
|
*/
|
||||||
#define SDL_COMPILEDVERSION \
|
#define SDL_COMPILEDVERSION \
|
||||||
SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
|
SDL_VERSIONNUM(SDL_MAJOR_VERSION, SDL_MINOR_VERSION, SDL_PATCHLEVEL)
|
||||||
|
#endif /* SDL_MAJOR_VERSION < 3 */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This macro will evaluate to true if compiled with SDL at least X.Y.Z.
|
* This macro will evaluate to true if compiled with SDL at least X.Y.Z.
|
||||||
*/
|
*/
|
||||||
#define SDL_VERSION_ATLEAST(X, Y, Z) \
|
#define SDL_VERSION_ATLEAST(X, Y, Z) \
|
||||||
(SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
|
((SDL_MAJOR_VERSION >= X) && \
|
||||||
|
(SDL_MAJOR_VERSION > X || SDL_MINOR_VERSION >= Y) && \
|
||||||
|
(SDL_MAJOR_VERSION > X || SDL_MINOR_VERSION > Y || SDL_PATCHLEVEL >= Z))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the version of SDL that is linked against your program.
|
* Get the version of SDL that is linked against your program.
|
||||||
|
|
|
@ -248,7 +248,8 @@ typedef enum
|
||||||
SDL_GL_FRAMEBUFFER_SRGB_CAPABLE,
|
SDL_GL_FRAMEBUFFER_SRGB_CAPABLE,
|
||||||
SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
|
SDL_GL_CONTEXT_RELEASE_BEHAVIOR,
|
||||||
SDL_GL_CONTEXT_RESET_NOTIFICATION,
|
SDL_GL_CONTEXT_RESET_NOTIFICATION,
|
||||||
SDL_GL_CONTEXT_NO_ERROR
|
SDL_GL_CONTEXT_NO_ERROR,
|
||||||
|
SDL_GL_FLOATBUFFERS
|
||||||
} SDL_GLattr;
|
} SDL_GLattr;
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -444,6 +445,15 @@ extern DECLSPEC int SDLCALL SDL_GetDisplayUsableBounds(int displayIndex, SDL_Rec
|
||||||
* A failure of this function usually means that either no DPI information is
|
* A failure of this function usually means that either no DPI information is
|
||||||
* available or the `displayIndex` is out of range.
|
* available or the `displayIndex` is out of range.
|
||||||
*
|
*
|
||||||
|
* **WARNING**: This reports the DPI that the hardware reports, and it is not
|
||||||
|
* always reliable! It is almost always better to use SDL_GetWindowSize() to
|
||||||
|
* find the window size, which might be in logical points instead of pixels,
|
||||||
|
* and then SDL_GL_GetDrawableSize(), SDL_Vulkan_GetDrawableSize(),
|
||||||
|
* SDL_Metal_GetDrawableSize(), or SDL_GetRendererOutputSize(), and compare
|
||||||
|
* the two values to get an actual scaling value between the two. We will be
|
||||||
|
* rethinking how high-dpi details should be managed in SDL3 to make things
|
||||||
|
* more consistent, reliable, and clear.
|
||||||
|
*
|
||||||
* \param displayIndex the index of the display from which DPI information
|
* \param displayIndex the index of the display from which DPI information
|
||||||
* should be queried
|
* should be queried
|
||||||
* \param ddpi a pointer filled in with the diagonal DPI of the display; may
|
* \param ddpi a pointer filled in with the diagonal DPI of the display; may
|
||||||
|
@ -587,6 +597,35 @@ extern DECLSPEC int SDLCALL SDL_GetCurrentDisplayMode(int displayIndex, SDL_Disp
|
||||||
*/
|
*/
|
||||||
extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
|
extern DECLSPEC SDL_DisplayMode * SDLCALL SDL_GetClosestDisplayMode(int displayIndex, const SDL_DisplayMode * mode, SDL_DisplayMode * closest);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the index of the display containing a point
|
||||||
|
*
|
||||||
|
* \param point the point to query
|
||||||
|
* \returns the index of the display containing the point or a negative error
|
||||||
|
* code on failure; call SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetDisplayBounds
|
||||||
|
* \sa SDL_GetNumVideoDisplays
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GetPointDisplayIndex(const SDL_Point * point);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the index of the display primarily containing a rect
|
||||||
|
*
|
||||||
|
* \param rect the rect to query
|
||||||
|
* \returns the index of the display entirely containing the rect or closest
|
||||||
|
* to the center of the rect on success or a negative error code on
|
||||||
|
* failure; call SDL_GetError() for more information.
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.24.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_GetDisplayBounds
|
||||||
|
* \sa SDL_GetNumVideoDisplays
|
||||||
|
*/
|
||||||
|
extern DECLSPEC int SDLCALL SDL_GetRectDisplayIndex(const SDL_Rect * rect);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the index of the display associated with a window.
|
* Get the index of the display associated with a window.
|
||||||
*
|
*
|
||||||
|
@ -697,7 +736,10 @@ extern DECLSPEC Uint32 SDLCALL SDL_GetWindowPixelFormat(SDL_Window * window);
|
||||||
* in pixels may differ from its size in screen coordinates on platforms with
|
* in pixels may differ from its size in screen coordinates on platforms with
|
||||||
* high-DPI support (e.g. iOS and macOS). Use SDL_GetWindowSize() to query the
|
* high-DPI support (e.g. iOS and macOS). Use SDL_GetWindowSize() to query the
|
||||||
* client area's size in screen coordinates, and SDL_GL_GetDrawableSize() or
|
* client area's size in screen coordinates, and SDL_GL_GetDrawableSize() or
|
||||||
* SDL_GetRendererOutputSize() to query the drawable size in pixels.
|
* SDL_GetRendererOutputSize() to query the drawable size in pixels. Note that
|
||||||
|
* when this flag is set, the drawable size can vary after the window is
|
||||||
|
* created and should be queried after major window events such as when the
|
||||||
|
* window is resized or moved between displays.
|
||||||
*
|
*
|
||||||
* If the window is set fullscreen, the width and height parameters `w` and
|
* If the window is set fullscreen, the width and height parameters `w` and
|
||||||
* `h` will not be used. However, invalid size parameters (e.g. too large) may
|
* `h` will not be used. However, invalid size parameters (e.g. too large) may
|
||||||
|
@ -1004,6 +1046,27 @@ extern DECLSPEC int SDLCALL SDL_GetWindowBordersSize(SDL_Window * window,
|
||||||
int *top, int *left,
|
int *top, int *left,
|
||||||
int *bottom, int *right);
|
int *bottom, int *right);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the size of a window in pixels.
|
||||||
|
*
|
||||||
|
* This may differ from SDL_GetWindowSize() if we're rendering to a high-DPI
|
||||||
|
* drawable, i.e. the window was created with `SDL_WINDOW_ALLOW_HIGHDPI` on a
|
||||||
|
* platform with high-DPI support (Apple calls this "Retina"), and not
|
||||||
|
* disabled by the `SDL_HINT_VIDEO_HIGHDPI_DISABLED` hint.
|
||||||
|
*
|
||||||
|
* \param window the window from which the drawable size should be queried
|
||||||
|
* \param w a pointer to variable for storing the width in pixels, may be NULL
|
||||||
|
* \param h a pointer to variable for storing the height in pixels, may be
|
||||||
|
* NULL
|
||||||
|
*
|
||||||
|
* \since This function is available since SDL 2.26.0.
|
||||||
|
*
|
||||||
|
* \sa SDL_CreateWindow
|
||||||
|
* \sa SDL_GetWindowSize
|
||||||
|
*/
|
||||||
|
extern DECLSPEC void SDLCALL SDL_GetWindowSizeInPixels(SDL_Window * window,
|
||||||
|
int *w, int *h);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the minimum size of a window's client area.
|
* Set the minimum size of a window's client area.
|
||||||
*
|
*
|
||||||
|
@ -1748,6 +1811,9 @@ extern DECLSPEC void SDLCALL SDL_EnableScreenSaver(void);
|
||||||
* If you disable the screensaver, it is automatically re-enabled when SDL
|
* If you disable the screensaver, it is automatically re-enabled when SDL
|
||||||
* quits.
|
* quits.
|
||||||
*
|
*
|
||||||
|
* The screensaver is disabled by default since SDL 2.0.2. Before SDL 2.0.2
|
||||||
|
* the screensaver was enabled by default.
|
||||||
|
*
|
||||||
* \since This function is available since SDL 2.0.0.
|
* \since This function is available since SDL 2.0.0.
|
||||||
*
|
*
|
||||||
* \sa SDL_EnableScreenSaver
|
* \sa SDL_EnableScreenSaver
|
||||||
|
@ -2009,13 +2075,8 @@ extern DECLSPEC void SDLCALL SDL_GL_GetDrawableSize(SDL_Window * window, int *w,
|
||||||
* retry the call with 1 for the interval.
|
* retry the call with 1 for the interval.
|
||||||
*
|
*
|
||||||
* Adaptive vsync is implemented for some glX drivers with
|
* Adaptive vsync is implemented for some glX drivers with
|
||||||
* GLX_EXT_swap_control_tear:
|
* GLX_EXT_swap_control_tear, and for some Windows drivers with
|
||||||
*
|
* WGL_EXT_swap_control_tear.
|
||||||
* https://www.opengl.org/registry/specs/EXT/glx_swap_control_tear.txt
|
|
||||||
*
|
|
||||||
* and for some Windows drivers with WGL_EXT_swap_control_tear:
|
|
||||||
*
|
|
||||||
* https://www.opengl.org/registry/specs/EXT/wgl_swap_control_tear.txt
|
|
||||||
*
|
*
|
||||||
* Read more on the Khronos wiki:
|
* Read more on the Khronos wiki:
|
||||||
* https://www.khronos.org/opengl/wiki/Swap_Interval#Adaptive_Vsync
|
* https://www.khronos.org/opengl/wiki/Swap_Interval#Adaptive_Vsync
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
|
|
||||||
/* Some compilers use a special export keyword */
|
/* Some compilers use a special export keyword */
|
||||||
#ifndef DECLSPEC
|
#ifndef DECLSPEC
|
||||||
# if defined(__WIN32__) || defined(__WINRT__) || defined(__CYGWIN__)
|
# if defined(__WIN32__) || defined(__WINRT__) || defined(__CYGWIN__) || defined(__GDK__)
|
||||||
# ifdef DLL_EXPORT
|
# ifdef DLL_EXPORT
|
||||||
# define DECLSPEC __declspec(dllexport)
|
# define DECLSPEC __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
|
|
||||||
/* By default SDL uses the C calling convention */
|
/* By default SDL uses the C calling convention */
|
||||||
#ifndef SDLCALL
|
#ifndef SDLCALL
|
||||||
#if (defined(__WIN32__) || defined(__WINRT__)) && !defined(__GNUC__)
|
#if (defined(__WIN32__) || defined(__WINRT__) || defined(__GDK__)) && !defined(__GNUC__)
|
||||||
#define SDLCALL __cdecl
|
#define SDLCALL __cdecl
|
||||||
#elif defined(__OS2__) || defined(__EMX__)
|
#elif defined(__OS2__) || defined(__EMX__)
|
||||||
#define SDLCALL _System
|
#define SDLCALL _System
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
Loading…
Reference in a new issue