42 "SDL_HINT_ACCELEROMETER_AS_JOYSTICK",
43 "SDL_HINT_FRAMEBUFFER_ACCELERATION",
44 "SDL_HINT_GAMECONTROLLERCONFIG",
45 "SDL_HINT_GRAB_KEYBOARD",
46 "SDL_HINT_IDLE_TIMER_DISABLED",
47 "SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS",
48 "SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK",
49 "SDL_HINT_MOUSE_RELATIVE_MODE_WARP",
50 "SDL_HINT_ORIENTATIONS",
51 "SDL_HINT_RENDER_DIRECT3D_THREADSAFE",
52 "SDL_HINT_RENDER_DRIVER",
53 "SDL_HINT_RENDER_OPENGL_SHADERS",
54 "SDL_HINT_RENDER_SCALE_QUALITY",
55 "SDL_HINT_RENDER_VSYNC",
56 "SDL_HINT_TIMER_RESOLUTION",
57 "SDL_HINT_VIDEO_ALLOW_SCREENSAVER",
58 "SDL_HINT_VIDEO_HIGHDPI_DISABLED",
59 "SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES",
60 "SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS",
61 "SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT",
62 "SDL_HINT_VIDEO_WIN_D3DCOMPILER",
63 "SDL_HINT_VIDEO_X11_XINERAMA",
64 "SDL_HINT_VIDEO_X11_XRANDR",
65 "SDL_HINT_VIDEO_X11_XVIDMODE",
66 "SDL_HINT_XINPUT_ENABLED"
89 "Verify returned values are equal; got: result1='%s' result2='%s",
90 (result1 ==
NULL) ?
"null" : result1,
91 (result2 ==
NULL) ?
"null" : result2);
118 for (
j=1;
j<=2;
j++) {
123 "Verify valid result was returned, got: %i",
129 "Verify returned value equals set value; got: testValue='%s' value='%s",
130 (testValue ==
NULL) ?
"null" : testValue,
139 "Verify valid result was returned, got: %i",
#define SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT
A variable that is the address of another SDL_Window* (as a hex string formatted with "%p").
#define SDL_HINT_RENDER_SCALE_QUALITY
A variable controlling the scaling quality.
#define SDL_HINT_RENDER_OPENGL_SHADERS
A variable controlling whether the OpenGL render driver uses shaders if they are available.
#define SDL_HINT_ORIENTATIONS
A variable controlling which orientations are allowed on iOS/Android.
#define SDL_HINT_VIDEO_WIN_D3DCOMPILER
A variable specifying which shader compiler to preload when using the Chrome ANGLE binaries.
#define SDL_HINT_RENDER_DRIVER
A variable specifying which render driver to use.
#define SDL_HINT_ACCELEROMETER_AS_JOYSTICK
A variable controlling whether the Android / iOS built-in accelerometer should be listed as a joystic...
#define SDL_HINT_FRAMEBUFFER_ACCELERATION
A variable controlling how 3D acceleration is used to accelerate the SDL screen surface.
#define SDL_HINT_GRAB_KEYBOARD
A variable controlling whether grabbing input grabs the keyboard.
#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK
A variable that determines whether ctrl+click should generate a right-click event on Mac.
#define SDL_HINT_RENDER_DIRECT3D_THREADSAFE
A variable controlling whether the Direct3D device is initialized for thread-safe operations.
#define SDL_HINT_XINPUT_ENABLED
A variable that lets you disable the detection and use of Xinput gamepad devices.
#define SDL_HINT_VIDEO_ALLOW_SCREENSAVER
A variable controlling whether the screensaver is enabled.
#define SDL_HINT_VIDEO_MAC_FULLSCREEN_SPACES
A variable that dictates policy for fullscreen Spaces on Mac OS X.
#define SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS
Minimize your SDL_Window if it loses key focus when in fullscreen mode. Defaults to true.
#define SDL_HINT_VIDEO_X11_XVIDMODE
A variable controlling whether the X11 VidMode extension should be used.
#define SDL_HINT_JOYSTICK_ALLOW_BACKGROUND_EVENTS
A variable that lets you enable joystick (and gamecontroller) events even when your app is in the bac...
#define SDL_HINT_RENDER_VSYNC
A variable controlling whether updates to the SDL screen surface should be synchronized with the vert...
#define SDL_HINT_VIDEO_X11_XRANDR
A variable controlling whether the X11 XRandR extension should be used.
#define SDL_HINT_IDLE_TIMER_DISABLED
A variable controlling whether the idle timer is disabled on iOS.
#define SDL_HINT_VIDEO_HIGHDPI_DISABLED
If set to 1, then do not allow high-DPI windows. ("Retina" on Mac and iOS)
#define SDL_HINT_MOUSE_RELATIVE_MODE_WARP
A variable controlling whether relative mouse mode is implemented using mouse warping.
#define SDL_HINT_VIDEO_X11_XINERAMA
A variable controlling whether the X11 Xinerama extension should be used.
#define SDL_HINT_GAMECONTROLLERCONFIG
A variable that lets you manually hint extra gamecontroller db entries.
#define SDL_HINT_TIMER_RESOLUTION
A variable that controls the timer resolution, in milliseconds.
GLsizei const GLfloat * value
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
char * SDLTest_RandomAsciiStringOfSize(int size)
int(* SDLTest_TestCaseFp)(void *arg)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int int in j)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
static const SDLTest_TestCaseReference hintsTest1
SDLTest_TestSuiteReference hintsTestSuite
static const SDLTest_TestCaseReference * hintsTests[]
int hints_setHint(void *arg)
Call to SDL_SetHint.
static const SDLTest_TestCaseReference hintsTest2
int hints_getHint(void *arg)
Call to SDL_GetHint.