Results 1 - 24 of 24 results out of about 6839 pages. (3.30 seconds)
- SDL_Init . . . 22 matches
- ...
= SDL_Init =
Use this function to initialize the SDL library. This must be called before using most other SDL functions.
<<TableOfContents()>>
== Syntax ==
{{{#!highlight cpp
...
- SDL_InitSubSystem . . . 16 matches
- ...
= SDL_InitSubSystem =
Use this function to initialize specific SDL subsystems.
<<TableOfContents()>>
== Syntax ==
{{{#!highlight cpp
int SDL_InitSubSystem(Uint32 flags)
}}}
==...
- SDL_QuitSubSystem . . . 13 matches
- ...int32 flags)
}}}
== Function Parameters ==
||'''flags'''||any of the flags used by [[SDL_Init]](); see [[#flags|Remarks]] for details||
== Code Examples ==
{{{#!highlight cpp
#in...
- SDL_WasInit . . . 10 matches
- ...int32 flags)
}}}
== Function Parameters ==
||'''flags'''||any of the flags used by [[SDL_Init]](); see [[#flags|Remarks]] for details||
== Return Value ==
If '''flags''' is 0 it ...
- CategoryInit . . . 7 matches
- ...program.
=== Introduction to Initialization ===
To begin using SDL in your program [[SDL_Init]]() must be called before most other SDL functions. The role of [[SDL_Init]]() is to...
- SDL_VideoInit . . . 5 matches
- ... SDL_VideoQuit();
}
SDL_Quit();
}
int main(int argc, char** argv) {
if (SDL_Init(0) != 0) {
printf("Error initializing SDL: %s\n", SDL_GetError());
r...
- SDL_Quit . . . 5 matches
- ....h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
if (SDL_Init(SDL_INIT_EVERYTHING) != 0) {
fprintf(stderr, "Unable to initialize SDL: %s\n...
- SDL_SetMainReady . . . 4 matches
- ... this page*^*^*^*^*
= SDL_SetMainReady =
Use this function to circumvent failure of [[SDL_Init]]() when not using SDL_main() as an entry point.
##Replace SDL_Function with the nam...
- SDL_GetError . . . 4 matches
- ...to appropriately call [[SDL_GetError]]().
== Code Examples ==
{{{#!highlight cpp
if (SDL_Init(SDL_INIT_EVERYTHING) < 0) {
// Unrecoverable error, exit here.
printf("SDL_In...
- SDL_HINT_XINPUT_ENABLED . . . 3 matches
- ... Code Examples ==
{{{#!highlight cpp
SDL_SetHint(SDL_HINT_XINPUT_ENABLED, "0");
//...
SDL_Init(SDL_INIT_EVERYTHING);
}}}
##Leave this section as-is unless you have a code example ...
- CategoryEvents . . . 3 matches
- ...from the user. Event handling is initialized (along with video) with a call to:
{{{
SDL_Init(SDL_INIT_VIDEO);
}}}
(''see'' [[CategoryInit|Initialization & Shutdown]] and [[SDL_I...
- SDL_ShowSimpleMessageBox . . . 2 matches
- ...ATION||informational dialog||
This function may be called at any time, even before [[SDL_Init]](). This makes it useful for reporting errors like a failure to create a renderer or...
- SDL_HINT_GAMECONTROLLERCONFIG . . . 2 matches
- ...alone and delete this comment.
== Remarks ==
This hint must be set before calling [[SDL_Init]](SDL_INIT_GAMECONTROLLER).
You can update mappings after the system is initialized ...
- SDL_AudioInit . . . 2 matches
- ...ecific need to designate the audio driver you want to use. You should normally use [[SDL_Init]]() or [[SDL_InitSubSystem]]().
== Related Functions ==
.[[SDL_AudioQuit]]
----
[[...
- SDL_AddTimer . . . 2 matches
- ... /* ... */
}
}
}}}
== Remarks ==
If you use this function, you must pass SDL_INIT_TIMER to [[SDL_Init]]().
The callback function is passed the current timer interval ...
- SGCodeExamples . . . 1 match
- ...portant!'')>> Do not change or remove any of the existing content.||
||''Example'': [[SDL_Init]]()||
~-[[#ToC|Return to Table of Contents]]-~
=== Using an Include ===
Since many ...
- SDL_RedetectInputDevices . . . 1 match
- ...ing device information from previous queries!
There is an implicit (re)detect upon [[SDL_Init]]().
== Related Functions ==
.[[SDL_OtherFunction]]
----
Category!API, [[Categor...
- SDL_HINT_XINPUT_USE_OLD_JOYSTICK_MAPPING . . . 1 match
- ...ill be removed in SDL 2.1.
The default value is "0". This hint must be set before [[SDL_Init]]().
== Version ==
This hint is available since SDL 2.0.4.
----
[[CategoryDefine]],...
- SDL_HINT_WINRT_PRIVACY_POLICY_URL . . . 1 match
- ...o an app's privacy policy, set SDL_HINT_WINRT_PRIVACY_POLICY_URL before calling any [[SDL_Init]]() functions. The contents of the hint should be a valid URL. For example, "http:/...
- SDL_HINT_WINRT_PRIVACY_POLICY_LABEL . . . 1 match
- ...s hint should only be set during app initialization, preferably before any calls to [[SDL_Init]]().
For additional information on linking to a privacy policy, see the documentatio...
- SDL_GetVersion . . . 1 match
- ...ion you compiled with.
This function may be called safely at any time, even before [[SDL_Init]]().
== Related Macros ==
.[[SDL_VERSION]]
== Related Functions ==
.[[SDL_GetRevi...
- SDL_EventType . . . 1 match
- ...mpletely ignore Command-Q will fail Mac App Store certification.
On POSIX systems, [[SDL_Init]]() installs [[http://en.wikipedia.org/wiki/Unix_signal|signal handlers]] for `SIGINT...
- CategoryAPI . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
= SDL 2.0 API by Name =
<<TableOfContents()>>
== Hints ==
<<FullSearchCached(category:Catego...
- APIContributionStyleGuide . . . 1 match
- ...ur example will be located:
{{{{
{{{#!highlight cpp
}}}
}}}}
. ''Example'': [[SDL_Init]]()
* All content should be added within this markup (on the blank line with the m...
