sdl2
library
Functions
imgFreeAnimation (Pointer <ImgAnimation > anim )
→ void
Dispose of an IMG_Animation and free its resources.
imgGetError ()
→ String ?
const IMG_GetError = SDL_GetError;
imgInit (int flags )
→ int
Initialize SDL_image.
imgIsAvif (Pointer <SdlRWops > src )
→ int
Detect AVIF image data on a readable/seekable SDL_RWops.
imgIsBmp (Pointer <SdlRWops > src )
→ int
Detect BMP image data on a readable/seekable SDL_RWops.
imgIsCur (Pointer <SdlRWops > src )
→ int
Detect CUR image data on a readable/seekable SDL_RWops.
imgIsGif (Pointer <SdlRWops > src )
→ int
Detect GIF image data on a readable/seekable SDL_RWops.
imgIsIco (Pointer <SdlRWops > src )
→ int
Detect ICO image data on a readable/seekable SDL_RWops.
imgIsJpg (Pointer <SdlRWops > src )
→ int
Detect JPG image data on a readable/seekable SDL_RWops.
imgIsJxl (Pointer <SdlRWops > src )
→ int
Detect JXL image data on a readable/seekable SDL_RWops.
imgIsLbm (Pointer <SdlRWops > src )
→ int
Detect LBM image data on a readable/seekable SDL_RWops.
imgIsPcx (Pointer <SdlRWops > src )
→ int
Detect PCX image data on a readable/seekable SDL_RWops.
imgIsPng (Pointer <SdlRWops > src )
→ int
Detect PNG image data on a readable/seekable SDL_RWops.
imgIsPnm (Pointer <SdlRWops > src )
→ int
Detect PNM image data on a readable/seekable SDL_RWops.
imgIsQoi (Pointer <SdlRWops > src )
→ int
Detect QOI image data on a readable/seekable SDL_RWops.
imgIsSvg (Pointer <SdlRWops > src )
→ int
Detect SVG image data on a readable/seekable SDL_RWops.
imgIsTif (Pointer <SdlRWops > src )
→ int
Detect TIFF image data on a readable/seekable SDL_RWops.
imgIsWebp (Pointer <SdlRWops > src )
→ int
Detect WEBP image data on a readable/seekable SDL_RWops.
imgIsXcf (Pointer <SdlRWops > src )
→ int
Detect XCF image data on a readable/seekable SDL_RWops.
imgIsXpm (Pointer <SdlRWops > src )
→ int
Detect XPM image data on a readable/seekable SDL_RWops.
imgIsXv (Pointer <SdlRWops > src )
→ int
Detect XV image data on a readable/seekable SDL_RWops.
imgLinkedVersion ()
→ Pointer <SdlVersion >
This function gets the version of the dynamically linked SDL_image library.
imgLoad (String ? file )
→ Pointer <SdlSurface >
Load an image from a filesystem path into a software surface.
imgLoadAnimation (String ? file )
→ Pointer <ImgAnimation >
Load an animation from a file.
imgLoadAnimationRw (Pointer <SdlRWops > src , int freesrc )
→ Pointer <ImgAnimation >
Load an animation from an SDL_RWops.
imgLoadAnimationTypedRw (Pointer <SdlRWops > src , int freesrc , String ? type )
→ Pointer <ImgAnimation >
Load an animation from an SDL datasource
imgLoadAvifRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a AVIF image directly.
imgLoadBmpRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a BMP image directly.
imgLoadCurRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a CUR image directly.
imgLoadGifAnimationRw (Pointer <SdlRWops > src )
→ Pointer <ImgAnimation >
Load a GIF animation directly.
imgLoadGifRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a GIF image directly.
imgLoadIcoRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a ICO image directly.
imgLoadJpgRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a JPG image directly.
imgLoadJxlRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a JXL image directly.
imgLoadLbmRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a LBM image directly.
imgLoadPcxRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a PCX image directly.
imgLoadPngRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a PNG image directly.
imgLoadPnmRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a PNM image directly.
imgLoadQoiRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a QOI image directly.
imgLoadRw (Pointer <SdlRWops > src , int freesrc )
→ Pointer <SdlSurface >
Load an image from an SDL data source into a software surface.
imgLoadSizedSvgRw (Pointer <SdlRWops > src , int width , int height )
→ Pointer <SdlSurface >
Load an SVG image, scaled to a specific size.
imgLoadSvgRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a SVG image directly.
imgLoadTexture (Pointer <SdlRenderer > renderer , String ? file )
→ Pointer <SdlTexture >
Load an image from a filesystem path into a GPU texture.
imgLoadTextureRw (Pointer <SdlRenderer > renderer , Pointer <SdlRWops > src , int freesrc )
→ Pointer <SdlTexture >
Load an image from an SDL data source into a GPU texture.
imgLoadTextureTypedRw (Pointer <SdlRenderer > renderer , Pointer <SdlRWops > src , int freesrc , String ? type )
→ Pointer <SdlTexture >
Load an image from an SDL data source into a GPU texture.
imgLoadTgaRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a TGA image directly.
imgLoadTifRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a TIFF image directly.
imgLoadTypedRw (Pointer <SdlRWops > src , int freesrc , String ? type )
→ Pointer <SdlSurface >
Load an image from an SDL data source into a software surface.
imgLoadWebpAnimationRw (Pointer <SdlRWops > src )
→ Pointer <ImgAnimation >
Load a WEBP animation directly.
imgLoadWebpRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a WEBP image directly.
imgLoadXcfRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a XCF image directly.
imgLoadXpmRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a XPM image directly.
imgLoadXvRw (Pointer <SdlRWops > src )
→ Pointer <SdlSurface >
Load a XV image directly.
imgQuit ()
→ void
Deinitialize SDL_image.
imgReadXpmFromArray (Pointer <Pointer <Int8 > > xpm )
→ Pointer <SdlSurface >
Load an XPM image from a memory array.
imgReadXpmFromArrayToRgb888 (Pointer <Pointer <Int8 > > xpm )
→ Pointer <SdlSurface >
Load an XPM image from a memory array.
imgSaveJpg (Pointer <SdlSurface > surface , String ? file , int quality )
→ int
Save an SDL_Surface into a JPEG image file.
imgSaveJpgRw (Pointer <SdlSurface > surface , Pointer <SdlRWops > dst , int freedst , int quality )
→ int
Save an SDL_Surface into JPEG image data, via an SDL_RWops.
imgSavePng (Pointer <SdlSurface > surface , String ? file )
→ int
Save an SDL_Surface into a PNG image file.
imgSavePngRw (Pointer <SdlSurface > surface , Pointer <SdlRWops > dst , int freedst )
→ int
Save an SDL_Surface into PNG image data, via an SDL_RWops.
imgSetError (String fmt , Pointer <NativeType > arg1 )
→ int
const IMG_SetError = SDL_SetError;
mixAllocateChannels (int numchans )
→ int
Dynamically change the number of channels managed by the mixer.
mixChannelFinished (Pointer <NativeType > channelFinished )
→ void
Set a callback that runs when a channel has finished playing.
mixClearError ()
→ void
const Mix_ClearError = SDL_ClearError;
mixCloseAudio ()
→ void
Close the mixer, halting all playing audio.
mixEachSoundFont (Pointer <NativeType > function , Pointer <NativeType > data )
→ int
Iterate SoundFonts paths to use by supported MIDI backends.
mixExpireChannel (int channel , int ticks )
→ int
Change the expiration delay for a particular channel.
mixFadeInChannel (int channel , Pointer <MixChunk > chunk , int loops , int ms )
→ int
Play an audio chunk on a specific channel, fading in the audio.
mixFadeInChannelTimed (int channel , Pointer <MixChunk > chunk , int loops , int ms , int ticks )
→ int
Play an audio chunk on a specific channel, fading in the audio, for a
maximum time.
mixFadeInMusic (Pointer <MixMusic > music , int loops , int ms )
→ int
Play a new music object, fading in the audio.
mixFadeInMusicPos (Pointer <MixMusic > music , int loops , int ms , double position )
→ int
Play a new music object, fading in the audio, from a starting position.
mixFadeOutChannel (int which , int ms )
→ int
Halt a channel after fading it out for a specified time.
mixFadeOutGroup (int tag , int ms )
→ int
Halt a playing group of channels by arbitrary tag, after fading them out
for a specified time.
mixFadeOutMusic (int ms )
→ int
Halt the music stream after fading it out for a specified time.
mixFadingChannel (int which )
→ int
Query the fading status of a channel.
mixFadingMusic ()
→ int
Query the fading status of the music stream.
mixFreeChunk (Pointer <MixChunk > chunk )
→ void
Free an audio chunk.
mixFreeMusic (Pointer <MixMusic > music )
→ void
Free a music object.
mixGetChunk (int channel )
→ Pointer <MixChunk >
Get the Mix_Chunk currently associated with a mixer channel.
mixGetChunkDecoder (int index )
→ String ?
Get a chunk decoder's name.
mixGetError ()
→ String ?
const Mix_GetError = SDL_GetError;
mixGetMusicAlbumTag (Pointer <MixMusic > music )
→ String ?
Get the album name for a music object.
mixGetMusicArtistTag (Pointer <MixMusic > music )
→ String ?
Get the artist name for a music object.
mixGetMusicCopyrightTag (Pointer <MixMusic > music )
→ String ?
Get the copyright text for a music object.
mixGetMusicDecoder (int index )
→ String ?
Get a music decoder's name.
mixGetMusicHookData ()
→ Pointer <NativeType >
Get a pointer to the user data for the current music hook.
mixGetMusicLoopEndTime (Pointer <MixMusic > music )
→ double
Get the loop end time position of music stream, in seconds.
mixGetMusicLoopLengthTime (Pointer <MixMusic > music )
→ double
Get the loop time length of music stream, in seconds.
mixGetMusicLoopStartTime (Pointer <MixMusic > music )
→ double
Get the loop start time position of music stream, in seconds.
mixGetMusicPosition (Pointer <MixMusic > music )
→ double
Get the time current position of music stream, in seconds.
mixGetMusicTitle (Pointer <MixMusic > music )
→ String ?
Get the title for a music object, or its filename.
mixGetMusicTitleTag (Pointer <MixMusic > music )
→ String ?
Get the title for a music object.
mixGetMusicType (Pointer <MixMusic > music )
→ int
Find out the format of a mixer music.
mixGetMusicVolume (Pointer <MixMusic > music )
→ int
Query the current volume value for a music object.
mixGetNumChunkDecoders ()
→ int
Get a list of chunk decoders that this build of SDL_mixer provides.
mixGetNumMusicDecoders ()
→ int
Get a list of music decoders that this build of SDL_mixer provides.
mixGetNumTracks (Pointer <MixMusic > music )
→ int
Get number of tracks in music object.
mixGetSoundFonts ()
→ String ?
Get SoundFonts paths to use by supported MIDI backends.
mixGetSynchroValue ()
→ int
This function does nothing, do not use.
mixGetTimidityCfg ()
→ String ?
Get full path of a previously-specified Timidity config file.
mixGroupAvailable (int tag )
→ int
Finds the first available channel in a group of channels.
mixGroupChannel (int which , int tag )
→ int
Assign a tag to a channel.
mixGroupChannels (int from , int to , int tag )
→ int
Assign several consecutive channels to the same tag.
mixGroupCount (int tag )
→ int
Returns the number of channels in a group.
mixGroupNewer (int tag )
→ int
Find the "most recent" sample playing in a group of channels.
mixGroupOldest (int tag )
→ int
Find the "oldest" sample playing in a group of channels.
mixHaltChannel (int channel )
→ int
Halt playing of a particular channel.
mixHaltGroup (int tag )
→ int
Halt playing of a group of channels by arbitrary tag.
mixHaltMusic ()
→ int
Halt playing of the music stream.
mixHasChunkDecoder (String ? name )
→ bool
Check if a chunk decoder is available by name.
mixHasMusicDecoder (String ? name )
→ bool
Check if a music decoder is available by name.
mixHookMusic (Pointer <NativeType > mixFunc , Pointer <NativeType > arg )
→ void
Add your own music player or additional mixer function.
mixHookMusicFinished (Pointer <NativeType > musicFinished )
→ void
Set a callback that runs when a music object has stopped playing.
mixInit (int flags )
→ int
Initialize SDL_mixer.
mixLinkedVersion ()
→ Pointer <SdlVersion >
Query the version of SDL_mixer that the program is linked against.
mixLoadMus (String ? file )
→ Pointer <MixMusic >
Load a supported audio format into a music object.
mixLoadMusRw (Pointer <SdlRWops > src , int freesrc )
→ Pointer <MixMusic >
Load a supported audio format into a music object.
mixLoadMusTypeRw (Pointer <SdlRWops > src , int type , int freesrc )
→ Pointer <MixMusic >
Load an audio format into a music object, assuming a specific format.
mixLoadWav (String ? file )
→ Pointer <MixChunk >
Load a supported audio format into a chunk.
mixLoadWavRw (Pointer <SdlRWops > src , int freesrc )
→ Pointer <MixChunk >
Load a supported audio format into a chunk.
mixMasterVolume (int volume )
→ int
Set the master volume for all channels.
mixModMusicJumpToOrder (int order )
→ int
Jump to a given order in mod music.
mixMusicDuration (Pointer <MixMusic > music )
→ double
Get a music object's duration, in seconds.
mixOpenAudio (int frequency , int format , int channels , int chunksize )
→ int
Open the default audio device for playback.
mixOpenAudioDevice (int frequency , int format , int channels , int chunksize , String ? device , int allowedChanges )
→ int
Open a specific audio device for playback.
mixPause (int channel )
→ void
Pause a particular channel.
mixPauseAudio (int pauseOn )
→ void
Suspend or resume the whole audio output.
mixPaused (int channel )
→ int
Query whether a particular channel is paused.
mixPausedMusic ()
→ int
Query whether the music stream is paused.
mixPauseMusic ()
→ void
Pause the music stream.
mixPlayChannel (int channel , Pointer <MixChunk > chunk , int loops )
→ int
Play an audio chunk on a specific channel.
mixPlayChannelTimed (int channel , Pointer <MixChunk > chunk , int loops , int ticks )
→ int
Play an audio chunk on a specific channel for a maximum time.
mixPlaying (int channel )
→ int
Check the playing status of a specific channel.
mixPlayingMusic ()
→ int
Check the playing status of the music stream.
mixPlayMusic (Pointer <MixMusic > music , int loops )
→ int
Play a new music object.
mixQuerySpec (Pointer <Int32 > frequency , Pointer <Uint16 > format , Pointer <Int32 > channels )
→ int
Find out what the actual audio device parameters are.
mixQuickLoadRaw (Pointer <Uint8 > mem , int len )
→ Pointer <MixChunk >
Load a raw audio data from memory as quickly as possible.
mixQuickLoadWav (Pointer <Uint8 > mem )
→ Pointer <MixChunk >
Load a WAV file from memory as quickly as possible.
mixQuit ()
→ void
Deinitialize SDL_mixer.
mixRegisterEffect (int chan , Pointer <NativeFunction <MixEffectFuncT > > f , Pointer <NativeFunction <MixEffectDoneT > > d , Pointer <NativeType > arg )
→ int
Register a special effect function.
mixReserveChannels (int num )
→ int
Reserve the first channels for the application.
mixResume (int channel )
→ void
Resume a particular channel.
mixResumeMusic ()
→ void
Resume the music stream.
mixRewindMusic ()
→ void
Rewind the music stream.
mixSetDistance (int channel , int distance )
→ int
Set the "distance" of a channel.
mixSetError (String fmt , Pointer <NativeType > arg1 )
→ int
const Mix_SetError = SDL_SetError;
mixSetMusicCmd (String ? command )
→ int
Run an external command as the music stream.
mixSetMusicPosition (double position )
→ int
Set the current position in the music stream, in seconds.
mixSetPanning (int channel , int left , int right )
→ int
Set the panning of a channel.
mixSetPosition (int channel , int angle , int distance )
→ int
Set the position of a channel.
mixSetPostMix (Pointer <NativeType > mixFunc , Pointer <NativeType > arg )
→ void
Set a function that is called after all mixing is performed.
mixSetReverseStereo (int channel , int flip )
→ int
Cause a channel to reverse its stereo.
mixSetSoundFonts (String ? paths )
→ int
Set SoundFonts paths to use by supported MIDI backends.
mixSetSynchroValue (int value )
→ int
This function does nothing, do not use.
mixSetTimidityCfg (String ? path )
→ int
Set full path of the Timidity config file.
mixStartTrack (Pointer <MixMusic > music , int track )
→ int
Start a track in music object.
mixUnregisterAllEffects (int channel )
→ int
Explicitly unregister all special effect functions.
mixUnregisterEffect (int channel , Pointer <NativeFunction <MixEffectFuncT > > f )
→ int
Explicitly unregister a special effect function.
mixVersion (Pointer <SdlVersion > x )
→ void
const MIX_VERSION = (X) SDL_MIXER_VERSION(X);
mixVolume (int channel , int volume )
→ int
Set the volume for a specific channel.
mixVolumeChunk (Pointer <MixChunk > chunk , int volume )
→ int
Set the volume for a specific chunk.
mixVolumeMusic (int volume )
→ int
Set the volume for the music channel.
sdlAbs (int x )
→ int
extern DECLSPEC int SDLCALL SDL_abs(int x)
sdlAcos (double x )
→ double
Use this function to compute arc cosine of x
.
sdlAcosf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_acosf(float x)
sdlAddEventWatch (Pointer <NativeFunction <SdlEventFilter > > filter , Pointer <NativeType > userdata )
→ void
Add a callback to be triggered when an event is added to the event queue.
sdlAddHintCallback (String ? name , Pointer <NativeFunction <SdlHintCallback > > callback , Pointer <NativeType > userdata )
→ void
Add a function to watch a particular hint.
sdlAddTimer (int interval , Pointer <NativeFunction <SdlTimerCallback > > callback , Pointer <NativeType > param )
→ int
Call a callback function at a future time.
sdlAllocFormat (int pixelFormat )
→ Pointer <SdlPixelFormat >
Create an SDL_PixelFormat structure corresponding to a pixel format.
sdlAllocPalette (int ncolors )
→ Pointer <SdlPalette >
Create a palette structure with the specified number of color entries.
sdlAllocRw ()
→ Pointer <SdlRWops >
Use this function to allocate an empty, unpopulated SDL_RWops structure.
sdlAndroidBackButton ()
→ void
Trigger the Android system back button behavior.
sdlAndroidGetActivity ()
→ Pointer <NativeType >
Retrieve the Java instance of the Android activity class.
sdlAndroidGetExternalStoragePath ()
→ String ?
Get the path used for external storage for this application.
sdlAndroidGetExternalStorageState ()
→ int
Get the current state of external storage.
sdlAndroidGetInternalStoragePath ()
→ String ?
Get the path used for internal storage for this application.
sdlAndroidGetJniEnv ()
→ Pointer <NativeType >
Get the Android Java Native Interface Environment of the current thread.
sdlAndroidRequestPermission (String ? permission )
→ bool
Request permissions at runtime.
sdlAndroidSendMessage (int command , int param )
→ int
Send a user command to SDLActivity.
sdlAndroidShowToast (String ? message , int duration , int gravity , int xoffset , int yoffset )
→ int
Shows an Android toast notification.
sdlAsin (double x )
→ double
extern DECLSPEC double SDLCALL SDL_asin(double x)
sdlAsinf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_asinf(float x)
sdlAsprintf (Pointer <Pointer <Int8 > > strp , String ? fmt , Pointer <NativeType > arg2 )
→ int
extern DECLSPEC int SDLCALL SDL_asprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(2)
sdlAtan (double x )
→ double
extern DECLSPEC double SDLCALL SDL_atan(double x)
sdlAtan2 (double y , double x )
→ double
extern DECLSPEC double SDLCALL SDL_atan2(double y, double x)
sdlAtan2f (double y , double x )
→ double
extern DECLSPEC float SDLCALL SDL_atan2f(float y, float x)
sdlAtanf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_atanf(float x)
sdlAtof (String ? str )
→ double
extern DECLSPEC double SDLCALL SDL_atof(const char *str)
sdlAtoi (String ? str )
→ int
extern DECLSPEC int SDLCALL SDL_atoi(const char *str)
sdlAtomicAdd (Pointer <SdlAtomicT > a , int v )
→ int
Add to an atomic variable.
sdlAtomicCas (Pointer <SdlAtomicT > a , int oldval , int newval )
→ bool
Set an atomic variable to a new value if it is currently an old value.
sdlAtomicCasPtr (Pointer <Pointer <NativeType > > a , Pointer <NativeType > oldval , Pointer <NativeType > newval )
→ bool
Set a pointer to a new value if it is currently an old value.
sdlAtomicGet (Pointer <SdlAtomicT > a )
→ int
Get the value of an atomic variable.
sdlAtomicGetPtr (Pointer <Pointer <NativeType > > a )
→ Pointer <NativeType >
Get the value of a pointer atomically.
sdlAtomicLock (Pointer <Int32 > lock )
→ void
Lock a spin lock by setting it to a non-zero value.
sdlAtomicSet (Pointer <SdlAtomicT > a , int v )
→ int
Set an atomic variable to a value.
sdlAtomicSetPtr (Pointer <Pointer <NativeType > > a , Pointer <NativeType > v )
→ Pointer <NativeType >
Set a pointer to a value atomically.
sdlAtomicTryLock (Pointer <Int32 > lock )
→ bool
Try to lock a spin lock by setting it to a non-zero value.
sdlAtomicUnlock (Pointer <Int32 > lock )
→ void
Unlock a spin lock by setting it to 0.
sdlAudioInit (String ? driverName )
→ int
Use this function to initialize a particular audio driver.
sdlAudioQuit ()
→ void
Use this function to shut down audio if you initialized it with
SDL_AudioInit().
sdlAudioStreamAvailable (Pointer <SdlAudioStream > stream )
→ int
Get the number of converted/resampled bytes available.
sdlAudioStreamClear (Pointer <SdlAudioStream > stream )
→ void
Clear any pending data in the stream without converting it
sdlAudioStreamFlush (Pointer <SdlAudioStream > stream )
→ int
Tell the stream that you're done sending data, and anything being buffered
should be converted/resampled and made available immediately.
sdlAudioStreamGet (Pointer <SdlAudioStream > stream , Pointer <NativeType > buf , int len )
→ int
Get converted/resampled data from the stream
sdlAudioStreamPut (Pointer <SdlAudioStream > stream , Pointer <NativeType > buf , int len )
→ int
Add data to be converted/resampled to the stream.
sdlBlitScaled (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
const SDL_BlitScaled = SDL_UpperBlitScaled;
sdlBlitSurface (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
const SDL_BlitSurface = SDL_UpperBlit;
sdlBsearch (Pointer <NativeType > key , Pointer <NativeType > base , int nmemb , int size , Pointer <NativeType > compare )
→ Pointer <NativeType >
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 *))
sdlBuildAudioCvt (Pointer <SdlAudioCvt > cvt , int srcFormat , int srcChannels , int srcRate , int dstFormat , int dstChannels , int dstRate )
→ int
Initialize an SDL_AudioCVT structure for conversion.
sdlButton (int x )
→ int
const SDL_BUTTON = (X) (1 << ((X)-1));
sdlCalculateGammaRamp (double gamma , Pointer <Uint16 > ramp )
→ void
Calculate a 256 entry gamma ramp for a gamma value.
sdlCalloc (int nmemb , int size )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_calloc(size_t nmemb, size_t size)
sdlCaptureMouse (bool enabled )
→ int
Capture the mouse and to track input outside an SDL window.
sdlCeil (double x )
→ double
extern DECLSPEC double SDLCALL SDL_ceil(double x)
sdlCeilf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_ceilf(float x)
sdlClearComposition ()
→ void
Dismiss the composition window/IME without disabling the subsystem.
sdlClearError ()
→ void
Clear any previous error message for this thread.
sdlClearHints ()
→ void
Clear all hints.
sdlClearQueuedAudio (int dev )
→ void
Drop any queued audio data waiting to be sent to the hardware.
sdlCloseAudio ()
→ void
This function is a legacy means of closing the audio device.
sdlCloseAudioDevice (int dev )
→ void
Use this function to shut down audio processing and close the audio device.
sdlComposeCustomBlendMode (int srcColorFactor , int dstColorFactor , int colorOperation , int srcAlphaFactor , int dstAlphaFactor , int alphaOperation )
→ int
Compose a custom blend mode for renderers.
sdlCondBroadcast (Pointer <SdlCond > cond )
→ int
Restart all threads that are waiting on the condition variable.
sdlCondSignal (Pointer <SdlCond > cond )
→ int
Restart one of the threads that are waiting on the condition variable.
sdlCondWait (Pointer <SdlCond > cond , Pointer <SdlMutex > mutex )
→ int
Wait until a condition variable is signaled.
sdlCondWaitTimeout (Pointer <SdlCond > cond , Pointer <SdlMutex > mutex , int ms )
→ int
Wait until a condition variable is signaled or a certain time has passed.
sdlConvertAudio (Pointer <SdlAudioCvt > cvt )
→ int
Convert audio data to a desired audio format.
sdlConvertPixels (int width , int height , int srcFormat , Pointer <NativeType > src , int srcPitch , int dstFormat , Pointer <NativeType > dst , int dstPitch )
→ int
Copy a block of pixels of one format to another format.
sdlConvertSurface (Pointer <SdlSurface > src , Pointer <SdlPixelFormat > fmt , int flags )
→ Pointer <SdlSurface >
Copy an existing surface to a new surface of the specified format.
sdlConvertSurfaceFormat (Pointer <SdlSurface > src , int pixelFormat , int flags )
→ Pointer <SdlSurface >
Copy an existing surface to a new surface of the specified format enum.
sdlCopysign (double x , double y )
→ double
extern DECLSPEC double SDLCALL SDL_copysign(double x, double y)
sdlCopysignf (double x , double y )
→ double
extern DECLSPEC float SDLCALL SDL_copysignf(float x, float y)
sdlCos (double x )
→ double
extern DECLSPEC double SDLCALL SDL_cos(double x)
sdlCosf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_cosf(float x)
sdlCrc16 (int crc , Pointer <NativeType > data , int len )
→ int
extern DECLSPEC Uint16 SDLCALL SDL_crc16(Uint16 crc, const void *data, size_t len)
sdlCrc32 (int crc , Pointer <NativeType > data , int len )
→ int
extern DECLSPEC Uint32 SDLCALL SDL_crc32(Uint32 crc, const void *data, size_t len)
sdlCreateColorCursor (Pointer <SdlSurface > surface , int hotX , int hotY )
→ Pointer <SdlCursor >
Create a color cursor.
sdlCreateCond ()
→ Pointer <SdlCond >
Create a condition variable.
sdlCreateCursor (Pointer <Uint8 > data , Pointer <Uint8 > mask , int w , int h , int hotX , int hotY )
→ Pointer <SdlCursor >
Create a cursor using the specified bitmap data and mask (in MSB format).
sdlCreateMutex ()
→ Pointer <SdlMutex >
Create a new mutex.
sdlCreateRenderer (Pointer <SdlWindow > window , int index , int flags )
→ Pointer <SdlRenderer >
Create a 2D rendering context for a window.
sdlCreateRgbSurface (int flags , int width , int height , int depth , int rmask , int gmask , int bmask , int amask )
→ Pointer <SdlSurface >
Allocate a new RGB surface.
sdlCreateRgbSurfaceFrom (Pointer <NativeType > pixels , int width , int height , int depth , int pitch , int rmask , int gmask , int bmask , int amask )
→ Pointer <SdlSurface >
Allocate a new RGB surface with existing pixel data.
sdlCreateRgbSurfaceWithFormat (int flags , int width , int height , int depth , int format )
→ Pointer <SdlSurface >
Allocate a new RGB surface with a specific pixel format.
sdlCreateRgbSurfaceWithFormatFrom (Pointer <NativeType > pixels , int width , int height , int depth , int pitch , int format )
→ Pointer <SdlSurface >
Allocate a new RGB surface with with a specific pixel format and existing
pixel data.
sdlCreateSemaphore (int initialValue )
→ Pointer <SdlSem >
Create a semaphore.
sdlCreateShapedWindow (String ? title , int x , int y , int w , int h , int flags )
→ Pointer <SdlWindow >
Create a window that can be shaped with the specified position, dimensions,
and flags.
sdlCreateSoftwareRenderer (Pointer <SdlSurface > surface )
→ Pointer <SdlRenderer >
Create a 2D software rendering context for a surface.
sdlCreateSystemCursor (int id )
→ Pointer <SdlCursor >
Create a system cursor.
sdlCreateTexture (Pointer <SdlRenderer > renderer , int format , int access , int w , int h )
→ Pointer <SdlTexture >
Create a texture for a rendering context.
sdlCreateTextureFromSurface (Pointer <SdlRenderer > renderer , Pointer <SdlSurface > surface )
→ Pointer <SdlTexture >
Create a texture from an existing surface.
sdlCreateThread (Pointer <NativeFunction <SdlThreadFunction > > fn , String ? name , Pointer <NativeType > data , Pointer <NativeFunction <PfnSdlCurrentBeginThread > > pfnBeginThread , Pointer <NativeFunction <PfnSdlCurrentEndThread > > pfnEndThread )
→ Pointer <SdlThread >
extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThread(SDL_ThreadFunction fn, const char *name, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
sdlCreateThreadWithStackSize (Pointer <NativeFunction <SdlThreadFunction > > fn , String ? name , int stacksize , Pointer <NativeType > data , Pointer <NativeFunction <PfnSdlCurrentBeginThread > > pfnBeginThread , Pointer <NativeFunction <PfnSdlCurrentEndThread > > pfnEndThread )
→ Pointer <SdlThread >
extern DECLSPEC SDL_Thread *SDLCALL SDL_CreateThreadWithStackSize(SDL_ThreadFunction fn, const char *name, const size_t stacksize, void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
sdlCreateWindow (String ? title , int x , int y , int w , int h , int flags )
→ Pointer <SdlWindow >
Create a window with the specified position, dimensions, and flags.
sdlCreateWindowAndRenderer (int width , int height , int windowFlags , Pointer <Pointer <SdlWindow > > window , Pointer <Pointer <SdlRenderer > > renderer )
→ int
Create a window and default renderer.
sdlCreateWindowFrom (Pointer <NativeType > data )
→ Pointer <SdlWindow >
Create an SDL window from an existing native window.
sdlDefinePixcelFormat (int type , int order , int layout , int bits , int bytes )
→ int
sdlDelay (int ms )
→ void
Wait a specified number of milliseconds before returning.
sdlDelEventWatch (Pointer <NativeFunction <SdlEventFilter > > filter , Pointer <NativeType > userdata )
→ void
Remove an event watch callback added with SDL_AddEventWatch().
sdlDelHintCallback (String ? name , Pointer <NativeFunction <SdlHintCallback > > callback , Pointer <NativeType > userdata )
→ void
Remove a function watching a particular hint.
sdlDequeueAudio (int dev , Pointer <NativeType > data , int len )
→ int
Dequeue more audio on non-callback devices.
sdlDestroyCond (Pointer <SdlCond > cond )
→ void
Destroy a condition variable.
sdlDestroyMutex (Pointer <SdlMutex > mutex )
→ void
Destroy a mutex created with SDL_CreateMutex().
sdlDestroyRenderer (Pointer <SdlRenderer > renderer )
→ void
Destroy the rendering context for a window and free associated textures.
sdlDestroySemaphore (Pointer <SdlSem > sem )
→ void
Destroy a semaphore.
sdlDestroyTexture (Pointer <SdlTexture > texture )
→ void
Destroy the specified texture.
sdlDestroyWindow (Pointer <SdlWindow > window )
→ void
Destroy a window.
sdlDestroyWindowSurface (Pointer <SdlWindow > window )
→ int
Destroy the surface associated with the window.
sdlDetachThread (Pointer <SdlThread > thread )
→ void
Let a thread clean up on exit without intervention.
sdlDirect3D9GetAdapterIndex (int displayIndex )
→ int
Get the D3D9 adapter index that matches the specified display index.
sdlDisableScreenSaver ()
→ void
Prevent the screen from being blanked by a screen saver.
sdlDuplicateSurface (Pointer <SdlSurface > surface )
→ Pointer <SdlSurface >
Creates a new surface identical to the existing surface.
sdlDxgiGetOutputInfo (int displayIndex , Pointer <Int32 > adapterIndex , Pointer <Int32 > outputIndex )
→ bool
Get the DXGI Adapter and Output indices for the specified display index.
sdlEnableScreenSaver ()
→ void
Allow the screen to be blanked by a screen saver.
sdlEncloseFPoints (Pointer <SdlFPoint > points , int count , Pointer <SdlFRect > clip , Pointer <SdlFRect > result )
→ bool
Calculate a minimal rectangle enclosing a set of points with float
precision.
sdlEnclosePoints (Pointer <SdlPoint > points , int count , Pointer <SdlRect > clip , Pointer <SdlRect > result )
→ bool
Calculate a minimal rectangle enclosing a set of points.
sdlError (int code )
→ int
SDL_Error() unconditionally returns -1.
sdlEventState (int type , int state )
→ int
Set the state of processing events by type.
sdlExp (double x )
→ double
extern DECLSPEC double SDLCALL SDL_exp(double x)
sdlExpf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_expf(float x)
sdlFabs (double x )
→ double
extern DECLSPEC double SDLCALL SDL_fabs(double x)
sdlFabsf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_fabsf(float x)
sdlFillRect (Pointer <SdlSurface > dst , Pointer <SdlRect > rect , int color )
→ int
Perform a fast fill of a rectangle with a specific color.
sdlFillRects (Pointer <SdlSurface > dst , Pointer <SdlRect > rects , int count , int color )
→ int
Perform a fast fill of a set of rectangles with a specific color.
sdlFilterEvents (Pointer <NativeFunction <SdlEventFilter > > filter , Pointer <NativeType > userdata )
→ void
Run a specific filter function on the current event queue, removing any
events for which the filter returns 0.
sdlFlashWindow (Pointer <SdlWindow > window , int operation )
→ int
Request a window to demand attention from the user.
sdlFloor (double x )
→ double
extern DECLSPEC double SDLCALL SDL_floor(double x)
sdlFloorf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_floorf(float x)
sdlFlushEvent (int type )
→ void
Clear events of a specific type from the event queue.
sdlFlushEvents (int minType , int maxType )
→ void
Clear events of a range of types from the event queue.
sdlFmod (double x , double y )
→ double
extern DECLSPEC double SDLCALL SDL_fmod(double x, double y)
sdlFmodf (double x , double y )
→ double
extern DECLSPEC float SDLCALL SDL_fmodf(float x, float y)
sdlFree (Pointer <NativeType > mem )
→ void
extern DECLSPEC void SDLCALL SDL_free(void *mem)
sdlFreeAudioStream (Pointer <SdlAudioStream > stream )
→ void
Free an audio stream
sdlFreeCursor (Pointer <SdlCursor > cursor )
→ void
Free a previously-created cursor.
sdlFreeFormat (Pointer <SdlPixelFormat > format )
→ void
Free an SDL_PixelFormat structure allocated by SDL_AllocFormat().
sdlFreePalette (Pointer <SdlPalette > palette )
→ void
Free a palette created with SDL_AllocPalette().
sdlFreeRw (Pointer <SdlRWops > area )
→ void
Use this function to free an SDL_RWops structure allocated by
SDL_AllocRW().
sdlFreeSurface (Pointer <SdlSurface > surface )
→ void
Free an RGB surface.
sdlFreeWav (Pointer <Uint8 > audioBuf )
→ void
Free data previously allocated with SDL_LoadWAV() or SDL_LoadWAV_RW().
sdlGameControllerAddMapping (String ? mappingString )
→ int
Add support for controllers that SDL is unaware of or to cause an existing
controller to have a different binding.
sdlGameControllerAddMappingsFromRw (Pointer <SdlRWops > rw , int freerw )
→ int
Load a set of Game Controller mappings from a seekable SDL data stream.
sdlGameControllerClose (Pointer <SdlGameController > gamecontroller )
→ void
Close a game controller previously opened with SDL_GameControllerOpen().
sdlGameControllerEventState (int state )
→ int
Query or change current state of Game Controller events.
sdlGameControllerFromInstanceId (int joyid )
→ Pointer <SdlGameController >
Get the SDL_GameController associated with an instance id.
sdlGameControllerFromPlayerIndex (int playerIndex )
→ Pointer <SdlGameController >
Get the SDL_GameController associated with a player index.
sdlGameControllerGetAppleSfSymbolsNameForAxis (Pointer <SdlGameController > gamecontroller , int axis )
→ String ?
Return the sfSymbolsName for a given axis on a game controller on Apple
platforms.
sdlGameControllerGetAppleSfSymbolsNameForButton (Pointer <SdlGameController > gamecontroller , int button )
→ String ?
Return the sfSymbolsName for a given button on a game controller on Apple
platforms.
sdlGameControllerGetAttached (Pointer <SdlGameController > gamecontroller )
→ bool
Check if a controller has been opened and is currently connected.
sdlGameControllerGetAxis (Pointer <SdlGameController > gamecontroller , int axis )
→ int
Get the current state of an axis control on a game controller.
sdlGameControllerGetAxisFromString (String ? str )
→ int
Convert a string into SDL_GameControllerAxis enum.
sdlGameControllerGetBindForAxis (Pointer <SdlGameController > gamecontroller , int axis )
→ SdlGameControllerButtonBind
Get the SDL joystick layer binding for a controller axis mapping.
sdlGameControllerGetBindForButton (Pointer <SdlGameController > gamecontroller , int button )
→ SdlGameControllerButtonBind
Get the SDL joystick layer binding for a controller button mapping.
sdlGameControllerGetButton (Pointer <SdlGameController > gamecontroller , int button )
→ int
Get the current state of a button on a game controller.
sdlGameControllerGetButtonFromString (String ? str )
→ int
Convert a string into an SDL_GameControllerButton enum.
sdlGameControllerGetFirmwareVersion (Pointer <SdlGameController > gamecontroller )
→ int
Get the firmware version of an opened controller, if available.
sdlGameControllerGetJoystick (Pointer <SdlGameController > gamecontroller )
→ Pointer <SdlJoystick >
Get the Joystick ID from a Game Controller.
sdlGameControllerGetNumTouchpadFingers (Pointer <SdlGameController > gamecontroller , int touchpad )
→ int
Get the number of supported simultaneous fingers on a touchpad on a game
controller.
sdlGameControllerGetNumTouchpads (Pointer <SdlGameController > gamecontroller )
→ int
Get the number of touchpads on a game controller.
sdlGameControllerGetPlayerIndex (Pointer <SdlGameController > gamecontroller )
→ int
Get the player index of an opened game controller.
sdlGameControllerGetProduct (Pointer <SdlGameController > gamecontroller )
→ int
Get the USB product ID of an opened controller, if available.
sdlGameControllerGetProductVersion (Pointer <SdlGameController > gamecontroller )
→ int
Get the product version of an opened controller, if available.
sdlGameControllerGetSensorData (Pointer <SdlGameController > gamecontroller , int type , Pointer <Float > data , int numValues )
→ int
Get the current state of a game controller sensor.
sdlGameControllerGetSensorDataRate (Pointer <SdlGameController > gamecontroller , int type )
→ double
Get the data rate (number of events per second) of a game controller
sensor.
sdlGameControllerGetSensorDataWithTimestamp (Pointer <SdlGameController > gamecontroller , int type , Pointer <Uint64 > timestamp , Pointer <Float > data , int numValues )
→ int
Get the current state of a game controller sensor with the timestamp of the
last update.
sdlGameControllerGetSerial (Pointer <SdlGameController > gamecontroller )
→ String ?
Get the serial number of an opened controller, if available.
sdlGameControllerGetSteamHandle (Pointer <SdlGameController > gamecontroller )
→ int
Get the Steam Input handle of an opened controller, if available.
sdlGameControllerGetStringForAxis (int axis )
→ String ?
Convert from an SDL_GameControllerAxis enum to a string.
sdlGameControllerGetStringForButton (int button )
→ String ?
Convert from an SDL_GameControllerButton enum to a string.
sdlGameControllerGetTouchpadFinger (Pointer <SdlGameController > gamecontroller , int touchpad , int finger , Pointer <Uint8 > state , Pointer <Float > x , Pointer <Float > y , Pointer <Float > pressure )
→ int
Get the current state of a finger on a touchpad on a game controller.
sdlGameControllerGetType (Pointer <SdlGameController > gamecontroller )
→ int
Get the type of this currently opened controller
sdlGameControllerGetVendor (Pointer <SdlGameController > gamecontroller )
→ int
Get the USB vendor ID of an opened controller, if available.
sdlGameControllerHasAxis (Pointer <SdlGameController > gamecontroller , int axis )
→ bool
Query whether a game controller has a given axis.
sdlGameControllerHasButton (Pointer <SdlGameController > gamecontroller , int button )
→ bool
Query whether a game controller has a given button.
sdlGameControllerHasLed (Pointer <SdlGameController > gamecontroller )
→ bool
Query whether a game controller has an LED.
sdlGameControllerHasRumble (Pointer <SdlGameController > gamecontroller )
→ bool
Query whether a game controller has rumble support.
sdlGameControllerHasRumbleTriggers (Pointer <SdlGameController > gamecontroller )
→ bool
Query whether a game controller has rumble support on triggers.
sdlGameControllerHasSensor (Pointer <SdlGameController > gamecontroller , int type )
→ bool
Return whether a game controller has a particular sensor.
sdlGameControllerIsSensorEnabled (Pointer <SdlGameController > gamecontroller , int type )
→ bool
Query whether sensor data reporting is enabled for a game controller.
sdlGameControllerMapping (Pointer <SdlGameController > gamecontroller )
→ Pointer <Int8 >
Get the current mapping of a Game Controller.
sdlGameControllerMappingForDeviceIndex (int joystickIndex )
→ Pointer <Int8 >
Get the mapping of a game controller.
sdlGameControllerMappingForGuid (SdlGuid guid )
→ Pointer <Int8 >
Get the game controller mapping string for a given GUID.
sdlGameControllerMappingForIndex (int mappingIndex )
→ Pointer <Int8 >
Get the mapping at a particular index.
sdlGameControllerName (Pointer <SdlGameController > gamecontroller )
→ String ?
Get the implementation-dependent name for an opened game controller.
sdlGameControllerNameForIndex (int joystickIndex )
→ String ?
Get the implementation dependent name for the game controller.
sdlGameControllerNumMappings ()
→ int
Get the number of mappings installed.
sdlGameControllerOpen (int joystickIndex )
→ Pointer <SdlGameController >
Open a game controller for use.
sdlGameControllerPath (Pointer <SdlGameController > gamecontroller )
→ String ?
Get the implementation-dependent path for an opened game controller.
sdlGameControllerPathForIndex (int joystickIndex )
→ String ?
Get the implementation dependent path for the game controller.
sdlGameControllerRumble (Pointer <SdlGameController > gamecontroller , int lowFrequencyRumble , int highFrequencyRumble , int durationMs )
→ int
Start a rumble effect on a game controller.
sdlGameControllerRumbleTriggers (Pointer <SdlGameController > gamecontroller , int leftRumble , int rightRumble , int durationMs )
→ int
Start a rumble effect in the game controller's triggers.
sdlGameControllerSendEffect (Pointer <SdlGameController > gamecontroller , Pointer <NativeType > data , int size )
→ int
Send a controller specific effect packet
sdlGameControllerSetLed (Pointer <SdlGameController > gamecontroller , int red , int green , int blue )
→ int
Update a game controller's LED color.
sdlGameControllerSetPlayerIndex (Pointer <SdlGameController > gamecontroller , int playerIndex )
→ void
Set the player index of an opened game controller.
sdlGameControllerSetSensorEnabled (Pointer <SdlGameController > gamecontroller , int type , bool enabled )
→ int
Set whether data reporting for a game controller sensor is enabled.
sdlGameControllerTypeForIndex (int joystickIndex )
→ int
Get the type of a game controller.
sdlGameControllerUpdate ()
→ void
Manually pump game controller updates if not using the loop.
sdlGdkGetDefaultUser (Pointer <XUserHandle > outUserHandle )
→ int
Gets a reference to the default user handle for GDK.
sdlGdkGetTaskQueue (Pointer <XTaskQueueHandle > outTaskQueue )
→ int
Gets a reference to the global async task queue handle for GDK,
initializing if needed.
sdlGdkRunApp (Pointer <NativeFunction <SdlMainFunc > > mainFunction , Pointer <NativeType > reserved )
→ int
Initialize and launch an SDL GDK application.
sdlGdkSuspendComplete ()
→ void
Callback from the application to let the suspend continue.
sdlGetAndroidSdkVersion ()
→ int
Query Android API level of the current device.
sdlGetAssertionHandler (Pointer <Pointer <NativeType > > puserdata )
→ Pointer <NativeFunction <SdlAssertionHandler > >
Get the current assertion handler.
sdlGetAssertionReport ()
→ Pointer <SdlAssertData >
Get a list of all assertion failures.
sdlGetAudioDeviceName (int index , int iscapture )
→ String ?
Get the human-readable name of a specific audio device.
sdlGetAudioDeviceSpec (int index , int iscapture , Pointer <SdlAudioSpec > spec )
→ int
Get the preferred audio format of a specific audio device.
sdlGetAudioDeviceStatus (int dev )
→ int
Use this function to get the current audio state of an audio device.
sdlGetAudioDriver (int index )
→ String ?
Use this function to get the name of a built in audio driver.
sdlGetAudioStatus ()
→ int
This function is a legacy means of querying the audio device.
sdlGetBasePath ()
→ Pointer <Int8 >
Get the directory where the application was run from.
sdlGetClipboardText ()
→ Pointer <Int8 >
Get UTF-8 text from the clipboard, which must be freed with SDL_free().
sdlGetClipRect (Pointer <SdlSurface > surface , Pointer <SdlRect > rect )
→ void
Get the clipping rectangle for a surface.
sdlGetClosestDisplayMode (int displayIndex , Pointer <SdlDisplayMode > mode , Pointer <SdlDisplayMode > closest )
→ Pointer <SdlDisplayMode >
Get the closest match to the requested display mode.
sdlGetColorKey (Pointer <SdlSurface > surface , Pointer <Uint32 > key )
→ int
Get the color key (transparent pixel) for a surface.
sdlGetCpuCacheLineSize ()
→ int
Determine the L1 cache line size of the CPU.
sdlGetCpuCount ()
→ int
Get the number of CPU cores available.
sdlGetCurrentAudioDriver ()
→ String ?
Get the name of the current audio driver.
sdlGetCurrentDisplayMode (int displayIndex , Pointer <SdlDisplayMode > mode )
→ int
Get information about the current display mode.
sdlGetCurrentVideoDriver ()
→ String ?
Get the name of the currently initialized video driver.
sdlGetCursor ()
→ Pointer <SdlCursor >
Get the active cursor.
sdlGetDefaultAssertionHandler ()
→ Pointer <NativeFunction <SdlAssertionHandler > >
Get the default assertion handler.
sdlGetDefaultAudioInfo (Pointer <Pointer <Int8 > > name , Pointer <SdlAudioSpec > spec , int iscapture )
→ int
Get the name and preferred format of the default audio device.
sdlGetDefaultCursor ()
→ Pointer <SdlCursor >
Get the default cursor.
sdlGetDesktopDisplayMode (int displayIndex , Pointer <SdlDisplayMode > mode )
→ int
Get information about the desktop's display mode.
sdlGetDisplayBounds (int displayIndex , Pointer <SdlRect > rect )
→ int
Get the desktop area represented by a display.
sdlGetDisplayDpi (int displayIndex , Pointer <Float > ddpi , Pointer <Float > hdpi , Pointer <Float > vdpi )
→ int
Get the dots/pixels-per-inch for a display.
sdlGetDisplayMode (int displayIndex , int modeIndex , Pointer <SdlDisplayMode > mode )
→ int
Get information about a specific display mode.
sdlGetDisplayName (int displayIndex )
→ String ?
Get the name of a display in UTF-8 encoding.
sdlGetDisplayOrientation (int displayIndex )
→ int
Get the orientation of a display.
sdlGetDisplayUsableBounds (int displayIndex , Pointer <SdlRect > rect )
→ int
Get the usable desktop area represented by a display.
sdlGetenv (String ? name )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_getenv(const char *name)
sdlGetError ()
→ String ?
Retrieve a message about the last error that occurred on the current
thread.
sdlGetErrorMsg (Pointer <Int8 > errstr , int maxlen )
→ Pointer <Int8 >
Get the last error message that was set for the current thread.
sdlGetEventFilter (Pointer <Pointer <NativeFunction <SdlEventFilter > > > filter , Pointer <Pointer <NativeType > > userdata )
→ bool
Query the current event filter.
sdlGetGlobalMouseState (Pointer <Int32 > x , Pointer <Int32 > y )
→ int
Get the current state of the mouse in relation to the desktop.
sdlGetGrabbedWindow ()
→ Pointer <SdlWindow >
Get the window that currently has an input grab enabled.
sdlGetHint (String ? name )
→ String ?
Get the value of a hint.
sdlGetHintBoolean (String ? name , bool defaultValue )
→ bool
Get the boolean value of a hint variable.
sdlGetJoystickGuidInfo (SdlGuid guid , Pointer <Uint16 > vendor , Pointer <Uint16 > product , Pointer <Uint16 > version , Pointer <Uint16 > crc16 )
→ void
Get the device information encoded in a SDL_JoystickGUID structure
sdlGetKeyboardFocus ()
→ Pointer <SdlWindow >
Query the window which currently has keyboard focus.
sdlGetKeyboardState (Pointer <Int32 > numkeys )
→ Pointer <Uint8 >
Get a snapshot of the current state of the keyboard.
sdlGetKeyFromName (String ? name )
→ int
Get a key code from a human-readable name.
sdlGetKeyFromScancode (int scancode )
→ int
Get the key code corresponding to the given scancode according to the
current keyboard layout.
sdlGetKeyName (int key )
→ String ?
Get a human-readable name for a key.
sdlGetMemoryFunctions (Pointer <Pointer <NativeFunction <SdlMallocFunc > > > mallocFunc , Pointer <Pointer <NativeFunction <SdlCallocFunc > > > callocFunc , Pointer <Pointer <NativeFunction <SdlReallocFunc > > > reallocFunc , Pointer <Pointer <NativeFunction <SdlFreeFunc > > > freeFunc )
→ void
Get the current set of SDL memory functions
sdlGetModState ()
→ int
Get the current key modifier state for the keyboard.
sdlGetMouseFocus ()
→ Pointer <SdlWindow >
Get the window which currently has mouse focus.
sdlGetMouseState (Pointer <Int32 > x , Pointer <Int32 > y )
→ int
Retrieve the current state of the mouse.
sdlGetNumAllocations ()
→ int
Get the number of outstanding (unfreed) allocations
sdlGetNumAudioDevices (int iscapture )
→ int
Get the number of built-in audio devices.
sdlGetNumAudioDrivers ()
→ int
Use this function to get the number of built-in audio drivers.
sdlGetNumDisplayModes (int displayIndex )
→ int
Get the number of available display modes.
sdlGetNumRenderDrivers ()
→ int
Get the number of 2D rendering drivers available for the current display.
sdlGetNumTouchDevices ()
→ int
Get the number of registered touch devices.
sdlGetNumTouchFingers (int touchId )
→ int
Get the number of active fingers for a given touch device.
sdlGetNumVideoDisplays ()
→ int
Get the number of available video displays.
sdlGetNumVideoDrivers ()
→ int
Get the number of video drivers compiled into SDL.
sdlGetOriginalMemoryFunctions (Pointer <Pointer <NativeFunction <SdlMallocFunc > > > mallocFunc , Pointer <Pointer <NativeFunction <SdlCallocFunc > > > callocFunc , Pointer <Pointer <NativeFunction <SdlReallocFunc > > > reallocFunc , Pointer <Pointer <NativeFunction <SdlFreeFunc > > > freeFunc )
→ void
Get the original set of SDL memory functions
sdlGetPerformanceCounter ()
→ int
Get the current value of the high resolution counter.
sdlGetPerformanceFrequency ()
→ int
Get the count per second of the high resolution counter.
sdlGetPixelFormatName (int format )
→ String ?
Get the human readable name of a pixel format.
sdlGetPlatform ()
→ String ?
Get the name of the platform.
sdlGetPointDisplayIndex (Pointer <SdlPoint > point )
→ int
Get the index of the display containing a point
sdlGetPowerInfo (Pointer <Int32 > seconds , Pointer <Int32 > percent )
→ int
Get the current power supply details.
sdlGetPreferredLocales ()
→ Pointer <SdlLocale >
Report the user's preferred locale.
sdlGetPrefPath (String ? org , String ? app )
→ Pointer <Int8 >
Get the user-and-app-specific path where files can be written.
sdlGetPrimarySelectionText ()
→ Pointer <Int8 >
Get UTF-8 text from the primary selection, which must be freed with
SDL_free().
sdlGetQueuedAudioSize (int dev )
→ int
Get the number of bytes of still-queued audio.
sdlGetRectDisplayIndex (Pointer <SdlRect > rect )
→ int
Get the index of the display primarily containing a rect
sdlGetRelativeMouseMode ()
→ bool
Query whether relative mouse mode is enabled.
sdlGetRelativeMouseState (Pointer <Int32 > x , Pointer <Int32 > y )
→ int
Retrieve the relative state of the mouse.
sdlGetRenderDrawBlendMode (Pointer <SdlRenderer > renderer , Pointer <Int32 > blendMode )
→ int
Get the blend mode used for drawing operations.
sdlGetRenderDrawColor (Pointer <SdlRenderer > renderer , Pointer <Uint8 > r , Pointer <Uint8 > g , Pointer <Uint8 > b , Pointer <Uint8 > a )
→ int
Get the color used for drawing operations (Rect, Line and Clear).
sdlGetRenderDriverInfo (int index , Pointer <SdlRendererInfo > info )
→ int
Get info about a specific 2D rendering driver for the current display.
sdlGetRenderer (Pointer <SdlWindow > window )
→ Pointer <SdlRenderer >
Get the renderer associated with a window.
sdlGetRendererInfo (Pointer <SdlRenderer > renderer , Pointer <SdlRendererInfo > info )
→ int
Get information about a rendering context.
sdlGetRendererOutputSize (Pointer <SdlRenderer > renderer , Pointer <Int32 > w , Pointer <Int32 > h )
→ int
Get the output size in pixels of a rendering context.
sdlGetRenderTarget (Pointer <SdlRenderer > renderer )
→ Pointer <SdlTexture >
Get the current render target.
sdlGetRevision ()
→ String ?
Get the code revision of SDL that is linked against your program.
sdlGetRgb (int pixel , Pointer <SdlPixelFormat > format , Pointer <Uint8 > r , Pointer <Uint8 > g , Pointer <Uint8 > b )
→ void
Get RGB values from a pixel in the specified format.
sdlGetRgba (int pixel , Pointer <SdlPixelFormat > format , Pointer <Uint8 > r , Pointer <Uint8 > g , Pointer <Uint8 > b , Pointer <Uint8 > a )
→ void
Get RGBA values from a pixel in the specified format.
sdlGetScancodeFromKey (int key )
→ int
Get the scancode corresponding to the given key code according to the
current keyboard layout.
sdlGetScancodeFromName (String ? name )
→ int
Get a scancode from a human-readable name.
sdlGetScancodeName (int scancode )
→ String ?
Get a human-readable name for a scancode.
sdlGetShapedWindowMode (Pointer <SdlWindow > window , Pointer <SdlWindowShapeMode > shapeMode )
→ int
Get the shape parameters of a shaped window.
sdlGetSurfaceAlphaMod (Pointer <SdlSurface > surface , Pointer <Uint8 > alpha )
→ int
Get the additional alpha value used in blit operations.
sdlGetSurfaceBlendMode (Pointer <SdlSurface > surface , Pointer <Int32 > blendMode )
→ int
Get the blend mode used for blit operations.
sdlGetSurfaceColorMod (Pointer <SdlSurface > surface , Pointer <Uint8 > r , Pointer <Uint8 > g , Pointer <Uint8 > b )
→ int
Get the additional color value multiplied into blit operations.
sdlGetSystemRam ()
→ int
Get the amount of RAM configured in the system.
sdlGetTextureAlphaMod (Pointer <SdlTexture > texture , Pointer <Uint8 > alpha )
→ int
Get the additional alpha value multiplied into render copy operations.
sdlGetTextureBlendMode (Pointer <SdlTexture > texture , Pointer <Int32 > blendMode )
→ int
Get the blend mode used for texture copy operations.
sdlGetTextureColorMod (Pointer <SdlTexture > texture , Pointer <Uint8 > r , Pointer <Uint8 > g , Pointer <Uint8 > b )
→ int
Get the additional color value multiplied into render copy operations.
sdlGetTextureScaleMode (Pointer <SdlTexture > texture , Pointer <Int32 > scaleMode )
→ int
Get the scale mode used for texture scale operations.
sdlGetTextureUserData (Pointer <SdlTexture > texture )
→ Pointer <NativeType >
Get the user-specified pointer associated with a texture
sdlGetThreadId (Pointer <SdlThread > thread )
→ int
Get the thread identifier for the specified thread.
sdlGetThreadName (Pointer <SdlThread > thread )
→ String ?
Get the thread name as it was specified in SDL_CreateThread().
sdlGetTicks ()
→ int
Get the number of milliseconds since SDL library initialization.
sdlGetTicks64 ()
→ int
Get the number of milliseconds since SDL library initialization.
sdlGetTouchDevice (int index )
→ int
Get the touch ID with the given index.
sdlGetTouchDeviceType (int touchId )
→ int
Get the type of the given touch device.
sdlGetTouchFinger (int touchId , int index )
→ Pointer <SdlFinger >
Get the finger object for specified touch device ID and finger index.
sdlGetTouchName (int index )
→ String ?
Get the touch device name as reported from the driver or NULL if the index
is invalid.
sdlGetVersion (Pointer <SdlVersion > ver )
→ void
Get the version of SDL that is linked against your program.
sdlGetVideoDriver (int index )
→ String ?
Get the name of a built in video driver.
Get the size of a window's borders (decorations) around the client area.
sdlGetWindowBrightness (Pointer <SdlWindow > window )
→ double
Get the brightness (gamma multiplier) for a given window's display.
sdlGetWindowData (Pointer <SdlWindow > window , String ? name )
→ Pointer <NativeType >
Retrieve the data pointer associated with a window.
sdlGetWindowDisplayIndex (Pointer <SdlWindow > window )
→ int
Get the index of the display associated with a window.
sdlGetWindowDisplayMode (Pointer <SdlWindow > window , Pointer <SdlDisplayMode > mode )
→ int
Query the display mode to use when a window is visible at fullscreen.
sdlGetWindowFlags (Pointer <SdlWindow > window )
→ int
Get the window flags.
sdlGetWindowFromId (int id )
→ Pointer <SdlWindow >
Get a window from a stored ID.
sdlGetWindowGammaRamp (Pointer <SdlWindow > window , Pointer <Uint16 > red , Pointer <Uint16 > green , Pointer <Uint16 > blue )
→ int
Get the gamma ramp for a given window's display.
sdlGetWindowGrab (Pointer <SdlWindow > window )
→ bool
Get a window's input grab mode.
sdlGetWindowIccProfile (Pointer <SdlWindow > window , Pointer <Uint32 > size )
→ Pointer <NativeType >
Get the raw ICC profile data for the screen the window is currently on.
sdlGetWindowId (Pointer <SdlWindow > window )
→ int
Get the numeric ID of a window.
sdlGetWindowKeyboardGrab (Pointer <SdlWindow > window )
→ bool
Get a window's keyboard grab mode.
sdlGetWindowMaximumSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the maximum size of a window's client area.
sdlGetWindowMinimumSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the minimum size of a window's client area.
sdlGetWindowMouseGrab (Pointer <SdlWindow > window )
→ bool
Get a window's mouse grab mode.
sdlGetWindowMouseRect (Pointer <SdlWindow > window )
→ Pointer <SdlRect >
Get the mouse confinement rectangle of a window.
sdlGetWindowOpacity (Pointer <SdlWindow > window , Pointer <Float > outOpacity )
→ int
Get the opacity of a window.
sdlGetWindowPixelFormat (Pointer <SdlWindow > window )
→ int
Get the pixel format associated with the window.
sdlGetWindowPosition (Pointer <SdlWindow > window , Pointer <Int32 > x , Pointer <Int32 > y )
→ void
Get the position of a window.
sdlGetWindowSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the size of a window's client area.
sdlGetWindowSizeInPixels (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the size of a window in pixels.
sdlGetWindowSurface (Pointer <SdlWindow > window )
→ Pointer <SdlSurface >
Get the SDL surface associated with the window.
sdlGetWindowTitle (Pointer <SdlWindow > window )
→ String ?
Get the title of a window.
sdlGetWindowWmInfo (Pointer <SdlWindow > window , Pointer <SdlSysWMinfo > info )
→ bool
Get driver-specific information about a window.
sdlGetYuvConversionMode ()
→ int
Get the YUV conversion mode
sdlGetYuvConversionModeForResolution (int width , int height )
→ int
Get the YUV conversion mode, returning the correct mode for the resolution
when the current conversion mode is SDL_YUV_CONVERSION_AUTOMATIC
sdlGfxVersion (Pointer <SdlVersion > x )
→ void
sdlGlBindTexture (Pointer <SdlTexture > texture , Pointer <Float > texw , Pointer <Float > texh )
→ int
Bind an OpenGL/ES/ES2 texture to the current context.
sdlGlCreateContext (Pointer <SdlWindow > window )
→ Pointer <NativeType >
Create an OpenGL context for an OpenGL window, and make it current.
sdlGlDeleteContext (Pointer <NativeType > context )
→ void
Delete an OpenGL context.
sdlGlExtensionSupported (String ? extension )
→ bool
Check if an OpenGL extension is supported for the current context.
sdlGlGetAttribute (int attr , Pointer <Int32 > value )
→ int
Get the actual value for an attribute from the current context.
sdlGlGetCurrentContext ()
→ Pointer <NativeType >
Get the currently active OpenGL context.
sdlGlGetCurrentWindow ()
→ Pointer <SdlWindow >
Get the currently active OpenGL window.
sdlGlGetDrawableSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the size of a window's underlying drawable in pixels.
sdlGlGetProcAddress (String ? proc )
→ Pointer <NativeType >
Get an OpenGL function by name.
sdlGlGetProcAddressEx (String proc )
→ SDLglproc
sdlGlGetSwapInterval ()
→ int
Get the swap interval for the current OpenGL context.
sdlGlLoadLibrary (String ? path )
→ int
Dynamically load an OpenGL library.
sdlGlMakeCurrent (Pointer <SdlWindow > window , Pointer <NativeType > context )
→ int
Set up an OpenGL context for rendering into an OpenGL window.
sdlGlResetAttributes ()
→ void
Reset all previously set OpenGL context attributes to their default values.
sdlGlSetAttribute (int attr , int value )
→ int
Set an OpenGL window attribute before window creation.
sdlGlSetSwapInterval (int interval )
→ int
Set the swap interval for the current OpenGL context.
sdlGlSwapWindow (Pointer <SdlWindow > window )
→ void
Update a window with OpenGL rendering.
sdlGlUnbindTexture (Pointer <SdlTexture > texture )
→ int
Unbind an OpenGL/ES/ES2 texture from the current context.
sdlGlUnloadLibrary ()
→ void
Unload the OpenGL library previously loaded by SDL_GL_LoadLibrary().
sdlGuidFromString (String ? pchGuid )
→ SdlGuid
Convert a GUID string into a ::SDL_GUID structure.
sdlGuidToString (SdlGuid guid , Pointer <Int8 > pszGuid , int cbGuid )
→ void
Get an ASCII string representation for a given ::SDL_GUID.
sdlHapticClose (Pointer <SdlHaptic > haptic )
→ void
Close a haptic device previously opened with SDL_HapticOpen().
sdlHapticDestroyEffect (Pointer <SdlHaptic > haptic , int effect )
→ void
Destroy a haptic effect on the device.
sdlHapticEffectSupported (Pointer <SdlHaptic > haptic , Pointer <SdlHapticEffect > effect )
→ int
Check to see if an effect is supported by a haptic device.
sdlHapticGetEffectStatus (Pointer <SdlHaptic > haptic , int effect )
→ int
Get the status of the current effect on the specified haptic device.
sdlHapticIndex (Pointer <SdlHaptic > haptic )
→ int
Get the index of a haptic device.
sdlHapticName (int deviceIndex )
→ String ?
Get the implementation dependent name of a haptic device.
sdlHapticNewEffect (Pointer <SdlHaptic > haptic , Pointer <SdlHapticEffect > effect )
→ int
Create a new haptic effect on a specified device.
sdlHapticNumAxes (Pointer <SdlHaptic > haptic )
→ int
Get the number of haptic axes the device has.
sdlHapticNumEffects (Pointer <SdlHaptic > haptic )
→ int
Get the number of effects a haptic device can store.
sdlHapticNumEffectsPlaying (Pointer <SdlHaptic > haptic )
→ int
Get the number of effects a haptic device can play at the same time.
sdlHapticOpen (int deviceIndex )
→ Pointer <SdlHaptic >
Open a haptic device for use.
sdlHapticOpened (int deviceIndex )
→ int
Check if the haptic device at the designated index has been opened.
sdlHapticOpenFromJoystick (Pointer <SdlJoystick > joystick )
→ Pointer <SdlHaptic >
Open a haptic device for use from a joystick device.
sdlHapticOpenFromMouse ()
→ Pointer <SdlHaptic >
Try to open a haptic device from the current mouse.
sdlHapticPause (Pointer <SdlHaptic > haptic )
→ int
Pause a haptic device.
sdlHapticQuery (Pointer <SdlHaptic > haptic )
→ int
Get the haptic device's supported features in bitwise manner.
sdlHapticRumbleInit (Pointer <SdlHaptic > haptic )
→ int
Initialize a haptic device for simple rumble playback.
sdlHapticRumblePlay (Pointer <SdlHaptic > haptic , double strength , int length )
→ int
Run a simple rumble effect on a haptic device.
sdlHapticRumbleStop (Pointer <SdlHaptic > haptic )
→ int
Stop the simple rumble on a haptic device.
sdlHapticRumbleSupported (Pointer <SdlHaptic > haptic )
→ int
Check whether rumble is supported on a haptic device.
sdlHapticRunEffect (Pointer <SdlHaptic > haptic , int effect , int iterations )
→ int
Run the haptic effect on its associated haptic device.
sdlHapticSetAutocenter (Pointer <SdlHaptic > haptic , int autocenter )
→ int
Set the global autocenter of the device.
sdlHapticSetGain (Pointer <SdlHaptic > haptic , int gain )
→ int
Set the global gain of the specified haptic device.
sdlHapticStopAll (Pointer <SdlHaptic > haptic )
→ int
Stop all the currently playing effects on a haptic device.
sdlHapticStopEffect (Pointer <SdlHaptic > haptic , int effect )
→ int
Stop the haptic effect on its associated haptic device.
sdlHapticUnpause (Pointer <SdlHaptic > haptic )
→ int
Unpause a haptic device.
sdlHapticUpdateEffect (Pointer <SdlHaptic > haptic , int effect , Pointer <SdlHapticEffect > data )
→ int
Update the properties of an effect.
sdlHas3DNow ()
→ bool
Determine whether the CPU has 3DNow! features.
sdlHasAltiVec ()
→ bool
Determine whether the CPU has AltiVec features.
sdlHasArmsimd ()
→ bool
Determine whether the CPU has ARM SIMD (ARMv6) features.
sdlHasAvx ()
→ bool
Determine whether the CPU has AVX features.
sdlHasAvx2 ()
→ bool
Determine whether the CPU has AVX2 features.
sdlHasAvx512F ()
→ bool
Determine whether the CPU has AVX-512F (foundation) features.
sdlHasClipboardText ()
→ bool
Query whether the clipboard exists and contains a non-empty text string.
sdlHasColorKey (Pointer <SdlSurface > surface )
→ bool
Returns whether the surface has a color key
sdlHasEvent (int type )
→ bool
Check for the existence of a certain event type in the event queue.
sdlHasEvents (int minType , int maxType )
→ bool
Check for the existence of certain event types in the event queue.
sdlHasIntersection (Pointer <SdlRect > a , Pointer <SdlRect > b )
→ bool
Determine whether two rectangles intersect.
sdlHasIntersectionF (Pointer <SdlFRect > a , Pointer <SdlFRect > b )
→ bool
Determine whether two rectangles intersect with float precision.
sdlHasLasx ()
→ bool
Determine whether the CPU has LASX (LOONGARCH SIMD) features.
sdlHasLsx ()
→ bool
Determine whether the CPU has LSX (LOONGARCH SIMD) features.
sdlHasMmx ()
→ bool
Determine whether the CPU has MMX features.
sdlHasNeon ()
→ bool
Determine whether the CPU has NEON (ARM SIMD) features.
sdlHasPrimarySelectionText ()
→ bool
Query whether the primary selection exists and contains a non-empty text
string.
sdlHasRdtsc ()
→ bool
Determine whether the CPU has the RDTSC instruction.
sdlHasScreenKeyboardSupport ()
→ bool
Check whether the platform has screen keyboard support.
sdlHasSse ()
→ bool
Determine whether the CPU has SSE features.
sdlHasSse2 ()
→ bool
Determine whether the CPU has SSE2 features.
sdlHasSse3 ()
→ bool
Determine whether the CPU has SSE3 features.
sdlHasSse41 ()
→ bool
Determine whether the CPU has SSE4.1 features.
sdlHasSse42 ()
→ bool
Determine whether the CPU has SSE4.2 features.
sdlHasSurfaceRle (Pointer <SdlSurface > surface )
→ bool
Returns whether the surface is RLE enabled
sdlHasWindowSurface (Pointer <SdlWindow > window )
→ bool
Return whether the window has a surface associated with it.
sdlHidBleScan (bool active )
→ void
Start or stop a BLE scan on iOS and tvOS to pair Steam Controllers
sdlHidClose (Pointer <SdlHidDevice > dev )
→ void
Close a HID device.
sdlHidDeviceChangeCount ()
→ int
Check to see if devices may have been added or removed.
sdlHidEnumerate (int vendorId , int productId )
→ Pointer <SdlHidDeviceInfo >
Enumerate the HID Devices.
sdlHideWindow (Pointer <SdlWindow > window )
→ void
Hide a window.
sdlHidExit ()
→ int
Finalize the HIDAPI library.
sdlHidFreeEnumeration (Pointer <SdlHidDeviceInfo > devs )
→ void
Free an enumeration Linked List
sdlHidGetFeatureReport (Pointer <SdlHidDevice > dev , Pointer <Uint8 > data , int length )
→ int
Get a feature report from a HID device.
sdlHidGetIndexedString (Pointer <SdlHidDevice > dev , int stringIndex , Pointer <Int16 > string , int maxlen )
→ int
Get a string from a HID device, based on its string index.
sdlHidGetManufacturerString (Pointer <SdlHidDevice > dev , Pointer <Int16 > string , int maxlen )
→ int
Get The Manufacturer String from a HID device.
sdlHidGetProductString (Pointer <SdlHidDevice > dev , Pointer <Int16 > string , int maxlen )
→ int
Get The Product String from a HID device.
sdlHidGetSerialNumberString (Pointer <SdlHidDevice > dev , Pointer <Int16 > string , int maxlen )
→ int
Get The Serial Number String from a HID device.
sdlHidInit ()
→ int
Initialize the HIDAPI library.
sdlHidOpen (int vendorId , int productId , Pointer <Int16 > serialNumber )
→ Pointer <SdlHidDevice >
Open a HID device using a Vendor ID (VID), Product ID (PID) and optionally
a serial number.
sdlHidOpenPath (String ? path , int bExclusive )
→ Pointer <SdlHidDevice >
= false
sdlHidRead (Pointer <SdlHidDevice > dev , Pointer <Uint8 > data , int length )
→ int
Read an Input report from a HID device.
sdlHidReadTimeout (Pointer <SdlHidDevice > dev , Pointer <Uint8 > data , int length , int milliseconds )
→ int
Read an Input report from a HID device with timeout.
sdlHidSendFeatureReport (Pointer <SdlHidDevice > dev , Pointer <Uint8 > data , int length )
→ int
Send a Feature report to the device.
sdlHidSetNonblocking (Pointer <SdlHidDevice > dev , int nonblock )
→ int
Set the device handle to be non-blocking.
sdlHidWrite (Pointer <SdlHidDevice > dev , Pointer <Uint8 > data , int length )
→ int
Write an Output report to a HID device.
sdlIconv (Pointer <SdlIconvT > cd , Pointer <Pointer <Int8 > > inbuf , Pointer <Uint32 > inbytesleft , Pointer <Pointer <Int8 > > outbuf , Pointer <Uint32 > outbytesleft )
→ int
extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t * inbytesleft, char **outbuf, size_t * outbytesleft)
sdlIconvClose (Pointer <SdlIconvT > cd )
→ int
extern DECLSPEC int SDLCALL SDL_iconv_close(SDL_iconv_t cd)
sdlIconvOpen (String ? tocode , String ? fromcode )
→ Pointer <SdlIconvT >
extern DECLSPEC SDL_iconv_t SDLCALL SDL_iconv_open(const char *tocode, const char *fromcode)
sdlIconvString (String ? tocode , String ? fromcode , String ? inbuf , int inbytesleft )
→ Pointer <Int8 >
This function converts a buffer or string between encodings in one pass,
returning a string that must be freed with SDL_free() or NULL on error.
sdlIconvUtf8Locate (String s )
→ Pointer <Int8 >
const SDL_iconv_utf8_locale = (S) SDL_iconv_string('', 'UTF-8', S, SDL_strlen(S)+1);
sdlIconvUtf8Ucs2 (String s )
→ Pointer <Uint16 >
const SDL_iconv_utf8_ucs2 = (S) (Uint16 *)SDL_iconv_string('UCS-2-INTERNAL', 'UTF-8', S, SDL_strlen(S)+1);
sdlIconvUtf8Ucs4 (String s )
→ Pointer <Uint32 >
const SDL_iconv_utf8_ucs4 = (S) (Uint32 *)SDL_iconv_string('UCS-4-INTERNAL', 'UTF-8', S, SDL_strlen(S)+1);
sdlImageVersion (Pointer <SdlVersion > x )
→ void
const SDL_IMAGE_VERSION = (X) \{ \ (X)->major = SDL_IMAGE_MAJOR_VERSION; \ (X)->minor = SDL_IMAGE_MINOR_VERSION; \ (X)->patch = SDL_IMAGE_PATCHLEVEL; \};
sdlImageVersionAtleast (int x , int y , int z )
→ bool
const SDL_IMAGE_VERSION_ATLEAST = (X, Y, Z) \ (SDL_IMAGE_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z));
sdlInit (int flags )
→ int
Initialize the SDL library.
sdlInitSubSystem (int flags )
→ int
Compatibility function to initialize the SDL library.
sdlIntersectFRect (Pointer <SdlFRect > a , Pointer <SdlFRect > b , Pointer <SdlFRect > result )
→ bool
Calculate the intersection of two rectangles with float precision.
sdlIntersectFRectAndLine (Pointer <SdlFRect > rect , Pointer <Float > x1 , Pointer <Float > y1 , Pointer <Float > x2 , Pointer <Float > y2 )
→ bool
Calculate the intersection of a rectangle and line segment with float
precision.
sdlIntersectRect (Pointer <SdlRect > a , Pointer <SdlRect > b , Pointer <SdlRect > result )
→ bool
Calculate the intersection of two rectangles.
sdlIntersectRectAndLine (Pointer <SdlRect > rect , Pointer <Int32 > x1 , Pointer <Int32 > y1 , Pointer <Int32 > x2 , Pointer <Int32 > y2 )
→ bool
Calculate the intersection of a rectangle and line segment.
sdlIPhoneSetAnimationCallback (Pointer <SdlWindow > window , int interval , Pointer <NativeType > callback , Pointer <NativeType > callbackParam )
→ int
Use this function to set the animation callback on Apple iOS.
sdlIPhoneSetEventPump (bool enabled )
→ void
Use this function to enable or disable the SDL event pump on Apple iOS.
sdlIsalnum (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isalnum(int x)
sdlIsalpha (int x )
→ int
NOTE: these double-evaluate their arguments, so you should never have side effects in the parameters
sdlIsAndroidTv ()
→ bool
Query if the application is running on Android TV.
sdlIsblank (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isblank(int x)
sdlIsChromebook ()
→ bool
Query if the application is running on a Chromebook.
sdlIscntrl (int x )
→ int
extern DECLSPEC int SDLCALL SDL_iscntrl(int x)
sdlIsDeXMode ()
→ bool
Query if the application is running on a Samsung DeX docking station.
sdlIsdigit (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isdigit(int x)
sdlIsGameController (int joystickIndex )
→ bool
Check if the given joystick is supported by the game controller interface.
sdlIsgraph (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isgraph(int x)
sdlIslower (int x )
→ int
extern DECLSPEC int SDLCALL SDL_islower(int x)
sdlIsprint (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isprint(int x)
sdlIspunct (int x )
→ int
extern DECLSPEC int SDLCALL SDL_ispunct(int x)
sdlIsScreenKeyboardShown (Pointer <SdlWindow > window )
→ bool
Check whether the screen keyboard is shown for given window.
sdlIsScreenSaverEnabled ()
→ bool
Check whether the screensaver is currently enabled.
sdlIsShapedWindow (Pointer <SdlWindow > window )
→ bool
Return whether the given window is a shaped window.
sdlIsspace (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isspace(int x)
sdlIsTablet ()
→ bool
Query if the current device is a tablet.
sdlIsTextInputActive ()
→ bool
Check whether or not Unicode text input events are enabled.
sdlIsTextInputShown ()
→ bool
Returns if an IME Composite or Candidate window is currently shown.
sdlIsupper (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isupper(int x)
sdlIsxdigit (int x )
→ int
extern DECLSPEC int SDLCALL SDL_isxdigit(int x)
sdlItoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_itoa(int value, char *str, int radix)
sdlJoystickAttachVirtual (int type , int naxes , int nbuttons , int nhats )
→ int
Attach a new virtual joystick.
sdlJoystickAttachVirtualEx (Pointer <SdlVirtualJoystickDesc > desc )
→ int
Attach a new virtual joystick with extended properties.
sdlJoystickClose (Pointer <SdlJoystick > joystick )
→ void
Close a joystick previously opened with SDL_JoystickOpen().
sdlJoystickCurrentPowerLevel (Pointer <SdlJoystick > joystick )
→ int
Get the battery level of a joystick as SDL_JoystickPowerLevel.
sdlJoystickDetachVirtual (int deviceIndex )
→ int
Detach a virtual joystick.
sdlJoystickEventState (int state )
→ int
Enable/disable joystick event polling.
sdlJoystickFromInstanceId (int instanceId )
→ Pointer <SdlJoystick >
Get the SDL_Joystick associated with an instance id.
sdlJoystickFromPlayerIndex (int playerIndex )
→ Pointer <SdlJoystick >
Get the SDL_Joystick associated with a player index.
sdlJoystickGetAttached (Pointer <SdlJoystick > joystick )
→ bool
Get the status of a specified joystick.
sdlJoystickGetAxis (Pointer <SdlJoystick > joystick , int axis )
→ int
Get the current state of an axis control on a joystick.
sdlJoystickGetAxisInitialState (Pointer <SdlJoystick > joystick , int axis , Pointer <Int16 > state )
→ bool
Get the initial state of an axis control on a joystick.
sdlJoystickGetBall (Pointer <SdlJoystick > joystick , int ball , Pointer <Int32 > dx , Pointer <Int32 > dy )
→ int
Get the ball axis change since the last poll.
sdlJoystickGetButton (Pointer <SdlJoystick > joystick , int button )
→ int
Get the current state of a button on a joystick.
sdlJoystickGetDeviceGuid (int deviceIndex )
→ SdlGuid
Get the implementation-dependent GUID for the joystick at a given device
index.
sdlJoystickGetDeviceInstanceId (int deviceIndex )
→ int
Get the instance ID of a joystick.
sdlJoystickGetDevicePlayerIndex (int deviceIndex )
→ int
Get the player index of a joystick, or -1 if it's not available This can be
called before any joysticks are opened.
sdlJoystickGetDeviceProduct (int deviceIndex )
→ int
Get the USB product ID of a joystick, if available.
sdlJoystickGetDeviceProductVersion (int deviceIndex )
→ int
Get the product version of a joystick, if available.
sdlJoystickGetDeviceType (int deviceIndex )
→ int
Get the type of a joystick, if available.
sdlJoystickGetDeviceVendor (int deviceIndex )
→ int
Get the USB vendor ID of a joystick, if available.
sdlJoystickGetFirmwareVersion (Pointer <SdlJoystick > joystick )
→ int
Get the firmware version of an opened joystick, if available.
sdlJoystickGetGuid (Pointer <SdlJoystick > joystick )
→ SdlGuid
Get the implementation-dependent GUID for the joystick.
sdlJoystickGetGuidFromString (String ? pchGuid )
→ SdlGuid
Convert a GUID string into a SDL_JoystickGUID structure.
sdlJoystickGetGuidString (SdlGuid guid , Pointer <Int8 > pszGuid , int cbGuid )
→ void
Get an ASCII string representation for a given SDL_JoystickGUID.
sdlJoystickGetHat (Pointer <SdlJoystick > joystick , int hat )
→ int
Get the current state of a POV hat on a joystick.
sdlJoystickGetPlayerIndex (Pointer <SdlJoystick > joystick )
→ int
Get the player index of an opened joystick.
sdlJoystickGetProduct (Pointer <SdlJoystick > joystick )
→ int
Get the USB product ID of an opened joystick, if available.
sdlJoystickGetProductVersion (Pointer <SdlJoystick > joystick )
→ int
Get the product version of an opened joystick, if available.
sdlJoystickGetSerial (Pointer <SdlJoystick > joystick )
→ String ?
Get the serial number of an opened joystick, if available.
sdlJoystickGetType (Pointer <SdlJoystick > joystick )
→ int
Get the type of an opened joystick.
sdlJoystickGetVendor (Pointer <SdlJoystick > joystick )
→ int
Get the USB vendor ID of an opened joystick, if available.
sdlJoystickHasLed (Pointer <SdlJoystick > joystick )
→ bool
Query whether a joystick has an LED.
sdlJoystickHasRumble (Pointer <SdlJoystick > joystick )
→ bool
Query whether a joystick has rumble support.
sdlJoystickHasRumbleTriggers (Pointer <SdlJoystick > joystick )
→ bool
Query whether a joystick has rumble support on triggers.
sdlJoystickInstanceId (Pointer <SdlJoystick > joystick )
→ int
Get the instance ID of an opened joystick.
sdlJoystickIsHaptic (Pointer <SdlJoystick > joystick )
→ int
Query if a joystick has haptic features.
sdlJoystickIsVirtual (int deviceIndex )
→ bool
Query whether or not the joystick at a given device index is virtual.
sdlJoystickName (Pointer <SdlJoystick > joystick )
→ String ?
Get the implementation dependent name of a joystick.
sdlJoystickNameForIndex (int deviceIndex )
→ String ?
Get the implementation dependent name of a joystick.
sdlJoystickNumAxes (Pointer <SdlJoystick > joystick )
→ int
Get the number of general axis controls on a joystick.
sdlJoystickNumBalls (Pointer <SdlJoystick > joystick )
→ int
Get the number of trackballs on a joystick.
sdlJoystickNumButtons (Pointer <SdlJoystick > joystick )
→ int
Get the number of buttons on a joystick.
sdlJoystickNumHats (Pointer <SdlJoystick > joystick )
→ int
Get the number of POV hats on a joystick.
sdlJoystickOpen (int deviceIndex )
→ Pointer <SdlJoystick >
Open a joystick for use.
sdlJoystickPath (Pointer <SdlJoystick > joystick )
→ String ?
Get the implementation dependent path of a joystick.
sdlJoystickPathForIndex (int deviceIndex )
→ String ?
Get the implementation dependent path of a joystick.
sdlJoystickRumble (Pointer <SdlJoystick > joystick , int lowFrequencyRumble , int highFrequencyRumble , int durationMs )
→ int
Start a rumble effect.
sdlJoystickRumbleTriggers (Pointer <SdlJoystick > joystick , int leftRumble , int rightRumble , int durationMs )
→ int
Start a rumble effect in the joystick's triggers
sdlJoystickSendEffect (Pointer <SdlJoystick > joystick , Pointer <NativeType > data , int size )
→ int
Send a joystick specific effect packet
sdlJoystickSetLed (Pointer <SdlJoystick > joystick , int red , int green , int blue )
→ int
Update a joystick's LED color.
sdlJoystickSetPlayerIndex (Pointer <SdlJoystick > joystick , int playerIndex )
→ void
Set the player index of an opened joystick.
sdlJoystickSetVirtualAxis (Pointer <SdlJoystick > joystick , int axis , int value )
→ int
Set values on an opened, virtual-joystick's axis.
sdlJoystickSetVirtualButton (Pointer <SdlJoystick > joystick , int button , int value )
→ int
Set values on an opened, virtual-joystick's button.
sdlJoystickSetVirtualHat (Pointer <SdlJoystick > joystick , int hat , int value )
→ int
Set values on an opened, virtual-joystick's hat.
sdlJoystickUpdate ()
→ void
Update the current state of the open joysticks.
sdlLinuxSetThreadPriority (int threadId , int priority )
→ int
Sets the UNIX nice value for a thread.
sdlLinuxSetThreadPriorityAndPolicy (int threadId , int sdlPriority , int schedPolicy )
→ int
Sets the priority (not nice level) and scheduling policy for a thread.
sdlLltoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_lltoa(Sint64 value, char *str, int radix)
sdlLoadBmp (String file )
→ Pointer <SdlSurface >
const SDL_LoadBMP = (file) SDL_LoadBMP_RW(SDL_RWFromFile(file, 'rb'), 1);
sdlLoadBmpRw (Pointer <SdlRWops > src , int freesrc )
→ Pointer <SdlSurface >
Load a BMP image from a seekable SDL data stream.
sdlLoadDollarTemplates (int touchId , Pointer <SdlRWops > src )
→ int
Load Dollar Gesture templates from a file.
sdlLoadFile (String ? file , Pointer <Uint32 > datasize )
→ Pointer <NativeType >
Load all the data from a file path.
sdlLoadFileRw (Pointer <SdlRWops > src , Pointer <Uint32 > datasize , int freesrc )
→ Pointer <NativeType >
Load all the data from an SDL data stream.
sdlLoadFunction (Pointer <NativeType > handle , String ? name )
→ Pointer <NativeType >
Look up the address of the named function in a shared object.
sdlLoadObject (String ? sofile )
→ Pointer <NativeType >
Dynamically load a shared object.
sdlLoadWav (String file , Pointer <SdlAudioSpec > spec , Pointer <Pointer <Uint8 > > audioBuf , Pointer <Uint32 > audioLen )
→ Pointer <SdlAudioSpec >
sdlLoadWavRw (Pointer <SdlRWops > src , int freesrc , Pointer <SdlAudioSpec > spec , Pointer <Pointer <Uint8 > > audioBuf , Pointer <Uint32 > audioLen )
→ Pointer <SdlAudioSpec >
Load the audio data of a WAVE file into memory.
sdlLockAudio ()
→ void
This function is a legacy means of locking the audio device.
sdlLockAudioDevice (int dev )
→ void
Use this function to lock out the audio callback function for a specified
device.
sdlLockJoysticks (Pointer <NativeType > arg0 )
→ void
Locking for multi-threaded access to the joystick API
sdlLockMutex (Pointer <NativeType > arg0 )
→ int
Lock the mutex.
sdlLockSensors ()
→ void
Locking for multi-threaded access to the sensor API
sdlLockSurface (Pointer <SdlSurface > surface )
→ int
Set up a surface for directly accessing the pixels.
sdlLockTexture (Pointer <SdlTexture > texture , Pointer <SdlRect > rect , Pointer <Pointer <NativeType > > pixels , Pointer <Int32 > pitch )
→ int
Lock a portion of the texture for write-only pixel access.
sdlLockTextureToSurface (Pointer <SdlTexture > texture , Pointer <SdlRect > rect , Pointer <Pointer <SdlSurface > > surface )
→ int
Lock a portion of the texture for write-only pixel access, and expose
it as a SDL surface.
sdlLog (String ? fmt , Pointer <NativeType > arg1 )
→ void
Log a message with SDL_LOG_CATEGORY_APPLICATION and SDL_LOG_PRIORITY_INFO.
sdlLog10 (double x )
→ double
extern DECLSPEC double SDLCALL SDL_log10(double x)
sdlLog10f (double x )
→ double
extern DECLSPEC float SDLCALL SDL_log10f(float x)
sdlLogCritical (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_CRITICAL.
sdlLogDebug (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_DEBUG.
sdlLogError (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_ERROR.
sdlLogf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_logf(float x)
sdlLogGetOutputFunction (Pointer <Pointer <NativeFunction <SdlLogOutputFunction > > > callback , Pointer <Pointer <NativeType > > userdata )
→ void
Get the current log output function.
sdlLogGetPriority (int category )
→ int
Get the priority of a particular log category.
sdlLogInfo (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_INFO.
sdlLogMessage (int category , int priority , String ? fmt , Pointer <NativeType > arg3 )
→ void
Log a message with the specified category and priority.
sdlLogMessageV (int category , int priority , String ? fmt , Pointer <NativeType > arg3 )
→ void
Log a message with the specified category and priority.
sdlLogResetPriorities ()
→ void
Reset all priorities to default.
sdlLogSetAllPriority (int priority )
→ void
Set the priority of all log categories.
sdlLogSetOutputFunction (Pointer <NativeFunction <SdlLogOutputFunction > > callback , Pointer <NativeType > userdata )
→ void
Replace the default log output function with one of your own.
sdlLogSetPriority (int category , int priority )
→ void
Set the priority of a particular log category.
sdlLogVerbose (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_VERBOSE.
sdlLogWarn (int category , String ? fmt , Pointer <NativeType > arg2 )
→ void
Log a message with SDL_LOG_PRIORITY_WARN.
sdlLowerBlit (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform low-level surface blitting only.
sdlLowerBlitScaled (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform low-level surface scaled blitting only.
sdlLround (double x )
→ int
extern DECLSPEC long SDLCALL SDL_lround(double x)
sdlLroundf (double x )
→ int
extern DECLSPEC long SDLCALL SDL_lroundf(float x)
sdlLtoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_ltoa(long value, char *str, int radix)
sdlMalloc (int size )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_malloc(size_t size)
sdlMapRgb (Pointer <SdlPixelFormat > format , int r , int g , int b )
→ int
Map an RGB triple to an opaque pixel value for a given pixel format.
sdlMapRgba (Pointer <SdlPixelFormat > format , int r , int g , int b , int a )
→ int
Map an RGBA quadruple to a pixel value for a given pixel format.
sdlMasksToPixelFormatEnum (int bpp , int rmask , int gmask , int bmask , int amask )
→ int
Convert a bpp value and RGBA masks to an enumerated pixel format.
sdlMaximizeWindow (Pointer <SdlWindow > window )
→ void
Make a window as large as possible.
sdlMemcmp (Pointer <NativeType > s1 , Pointer <NativeType > s2 , int len )
→ int
extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len)
sdlMemcpy (Pointer <NativeType > arg0 , Pointer <NativeType > arg1 , int len )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_memcpy(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
sdlMemmove (Pointer <NativeType > arg0 , Pointer <NativeType > arg1 , int len )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_memmove(SDL_OUT_BYTECAP(len) void *dst, SDL_IN_BYTECAP(len) const void *src, size_t len)
sdlMemoryBarrierAcquireFunction ()
→ void
extern DECLSPEC void SDLCALL SDL_MemoryBarrierAcquireFunction(void)
sdlMemoryBarrierReleaseFunction ()
→ void
Memory barriers are designed to prevent reads and writes from being
reordered by the compiler and being seen out of order on multi-core CPUs.
sdlMemset (Pointer <NativeType > arg0 , int c , int len )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_memset(SDL_OUT_BYTECAP(len) void *dst, int c, size_t len)
sdlMetalCreateView (Pointer <SdlWindow > window )
→ Pointer <NativeType >
Create a CAMetalLayer-backed NSView/UIView and attach it to the specified
window.
sdlMetalDestroyView (Pointer <NativeType > view )
→ void
Destroy an existing SDL_MetalView object.
sdlMetalGetDrawableSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the size of a window's underlying drawable in pixels (for use with
setting viewport, scissor & etc).
sdlMetalGetLayer (Pointer <NativeType > view )
→ Pointer <NativeType >
Get a pointer to the backing CAMetalLayer for the given view.
sdlMinimizeWindow (Pointer <SdlWindow > window )
→ void
Minimize a window to an iconic representation.
sdlMixAudio (Pointer <Uint8 > dst , Pointer <Uint8 > src , int len , int volume )
→ void
This function is a legacy means of mixing audio.
sdlMixAudioFormat (Pointer <Uint8 > dst , Pointer <Uint8 > src , int format , int len , int volume )
→ void
Mix audio data in a specified format.
sdlMixerVersion (Pointer <SdlVersion > x )
→ void
const SDL_MIXER_VERSION = (X) \{ \ (X)->major = SDL_MIXER_MAJOR_VERSION; \ (X)->minor = SDL_MIXER_MINOR_VERSION; \ (X)->patch = SDL_MIXER_PATCHLEVEL; \};
sdlMixerVersionAtleast (int x , int y , int z )
→ bool
const SDL_MIXER_VERSION_ATLEAST = (X, Y, Z) \ (SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z));
sdlMouseIsHaptic ()
→ int
Query whether or not the current mouse has haptic capabilities.
sdlNetAddSocket (Pointer <SdlNetSocketSet > set , SdlNetGenericSocket sock )
→ int
Add a socket to a socket set, to be checked for available data.
sdlNetAllocPacket (int size )
→ Pointer <UDPpacket >
Allocate a single UDP packet.
sdlNetAllocPacketV (int howmany , int size )
→ Pointer <Pointer <UDPpacket > >
Allocate a UDP packet vector (array of packets).
sdlNetAllocSocketSet (int maxsockets )
→ Pointer <SdlNetSocketSet >
Allocate a socket set for use with SDLNet_CheckSockets().
sdlNetCheckSockets (Pointer <SdlNetSocketSet > set , int timeout )
→ int
Check a socket set for data availability.
sdlNetDelSocket (Pointer <SdlNetSocketSet > set , SdlNetGenericSocket sock )
→ int
Remove a socket from a set of sockets to be checked for available data.
sdlNetFreePacket (Pointer <UDPpacket > packet )
→ void
Dispose of a UDP packet.
sdlNetFreePacketV (Pointer <Pointer <UDPpacket > > packetV )
→ void
Free a UDP packet vector (array of packets).
sdlNetFreeSocketSet (Pointer <SdlNetSocketSet > set )
→ void
Free a set of sockets allocated by SDLNet_AllocSocketSet().
sdlNetGetError ()
→ String ?
Get the latest error message from SDL_net.
sdlNetGetLocalAddresses (Pointer <IPaddress > addresses , int maxcount )
→ int
Get the addresses of network interfaces on this system.
sdlNetInit ()
→ int
Initialize SDL_net.
sdlNetLinkedVersion ()
→ Pointer <SdlVersion >
Query the version of SDL_net that the program is linked against.
sdlNetQuit ()
→ void
Deinitialize SDL_net.
sdlNetResizePacket (Pointer <UDPpacket > packet , int newsize )
→ int
Reallocate a UDP packet's payload space.
sdlNetResolveHost (Pointer <IPaddress > address , String ? host , int port )
→ int
Resolve a host name and port to an IP address in network form.
sdlNetResolveIp (Pointer <IPaddress > ip )
→ String ?
Resolve an IP address to a host name in canonical form.
sdlNetSetError (String ? fmt , Pointer <NativeType > arg1 )
→ void
Set an error message to be retrieved with SDLNet_GetError.
sdlNetTcpAccept (Pointer <TCPsocket > server )
→ Pointer <TCPsocket >
Accept an incoming connection on the given server socket.
sdlNetTcpClose (Pointer <TCPsocket > sock )
→ void
Close a TCP network socket.
sdlNetTcpGetPeerAddress (Pointer <TCPsocket > sock )
→ Pointer <IPaddress >
Get the IP address of the remote system associated with the socket.
sdlNetTcpOpen (Pointer <IPaddress > ip )
→ Pointer <TCPsocket >
Open a TCP network socket.
sdlNetTcpRecv (Pointer <TCPsocket > sock , Pointer <NativeType > data , int maxlen )
→ int
Receive data from a non-server socket.
sdlNetTcpSend (Pointer <TCPsocket > sock , Pointer <NativeType > data , int len )
→ int
Send data over a non-server socket.
sdlNetUdpBind (Pointer <UDPsocket > sock , int channel , Pointer <IPaddress > address )
→ int
Bind an address to the requested channel on the UDP socket.
sdlNetUdpClose (Pointer <UDPsocket > sock )
→ void
Close a UDP socket.
sdlNetUdpGetPeerAddress (Pointer <UDPsocket > sock , int channel )
→ Pointer <IPaddress >
Get the IP address of the remote system for a socket and channel.
sdlNetUdpOpen (int port )
→ Pointer <UDPsocket >
Open a UDP network socket.
sdlNetUdpRecv (Pointer <UDPsocket > sock , Pointer <UDPpacket > packet )
→ int
Receive a single packet from a UDP socket.
sdlNetUdpRecvV (Pointer <UDPsocket > sock , Pointer <Pointer <UDPpacket > > packets )
→ int
Receive a vector of pending packets from a UDP socket.
sdlNetUdpSend (Pointer <UDPsocket > sock , int channel , Pointer <UDPpacket > packet )
→ int
Send a single UDP packet to the specified channel.
sdlNetUdpSendV (Pointer <UDPsocket > sock , Pointer <Pointer <UDPpacket > > packets , int npackets )
→ int
Send a vector of packets to the the channels specified within the packet.
sdlNetUdpSetPacketLoss (Pointer <UDPsocket > sock , int percent )
→ void
Set the percentage of simulated packet loss for packets sent on the socket.
sdlNetUdpUnbind (Pointer <UDPsocket > sock , int channel )
→ void
Unbind all addresses from the given channel.
sdlNetVersion (Pointer <SdlVersion > x )
→ void
const SDL_NET_VERSION = (X) \{ \ (X)->major = SDL_NET_MAJOR_VERSION; \ (X)->minor = SDL_NET_MINOR_VERSION; \ (X)->patch = SDL_NET_PATCHLEVEL; \};
sdlNewAudioStream (int srcFormat , int srcChannels , int srcRate , int dstFormat , int dstChannels , int dstRate )
→ Pointer <SdlAudioStream >
Create a new audio stream.
sdlNumHaptics ()
→ int
Count the number of haptic devices attached to the system.
sdlNumJoysticks ()
→ int
Count the number of joysticks attached to the system.
sdlNumSensors ()
→ int
Count the number of sensors attached to the system right now.
sdlOnApplicationDidBecomeActive ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationDidBecomeActive(void)
sdlOnApplicationDidChangeStatusBarOrientation ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationDidChangeStatusBarOrientation(void)
sdlOnApplicationDidEnterBackground ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationDidEnterBackground(void)
sdlOnApplicationDidReceiveMemoryWarning ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationDidReceiveMemoryWarning(void)
sdlOnApplicationWillEnterForeground ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationWillEnterForeground(void)
sdlOnApplicationWillResignActive ()
→ void
extern DECLSPEC void SDLCALL SDL_OnApplicationWillResignActive(void)
sdlOnApplicationWillTerminate ()
→ void
Functions used by iOS application delegates to notify SDL about state changes
sdlOpenAudio (Pointer <SdlAudioSpec > desired , Pointer <SdlAudioSpec > obtained )
→ int
This function is a legacy means of opening the audio device.
sdlOpenAudioDevice (String ? device , int iscapture , Pointer <SdlAudioSpec > desired , Pointer <SdlAudioSpec > obtained , int allowedChanges )
→ int
Open a specific audio device.
sdlOpenUrl (String ? url )
→ int
Open a URL/URI in the browser or other appropriate external application.
sdlPauseAudio (int pauseOn )
→ void
This function is a legacy means of pausing the audio device.
sdlPauseAudioDevice (int dev , int pauseOn )
→ void
Use this function to pause and unpause audio playback on a specified
device.
sdlPeepEvents (Pointer <SdlEvent > events , int numevents , int action , int minType , int maxType )
→ int
Check the event queue for messages and optionally return them.
sdlPixelFormatEnumToMasks (int format , Pointer <Int32 > bpp , Pointer <Uint32 > rmask , Pointer <Uint32 > gmask , Pointer <Uint32 > bmask , Pointer <Uint32 > amask )
→ bool
Convert one of the enumerated pixel formats to a bpp value and RGBA masks.
sdlPollEvent (Pointer <SdlEvent > event )
→ int
Poll for currently pending events.
sdlPow (double x , double y )
→ double
extern DECLSPEC double SDLCALL SDL_pow(double x, double y)
sdlPowf (double x , double y )
→ double
extern DECLSPEC float SDLCALL SDL_powf(float x, float y)
sdlPremultiplyAlpha (int width , int height , int srcFormat , Pointer <NativeType > src , int srcPitch , int dstFormat , Pointer <NativeType > dst , int dstPitch )
→ int
Premultiply the alpha on a block of pixels.
sdlPumpEvents ()
→ void
Pump the event loop, gathering events from the input devices.
sdlPushEvent (Pointer <SdlEvent > event )
→ int
Add an event to the event queue.
sdlQsort (Pointer <NativeType > base , int nmemb , int size , Pointer <NativeType > compare )
→ void
extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (SDLCALL *compare) (const void *, const void *))
sdlQueryTexture (Pointer <SdlTexture > texture , Pointer <Uint32 > format , Pointer <Int32 > access , Pointer <Int32 > w , Pointer <Int32 > h )
→ int
Query the attributes of a texture.
sdlQueueAudio (int dev , Pointer <NativeType > data , int len )
→ int
Queue more audio on non-callback devices.
sdlQuit ()
→ void
Clean up all initialized subsystems.
sdlQuitSubSystem (int flags )
→ void
Shut down specific SDL subsystems.
sdlRaiseWindow (Pointer <SdlWindow > window )
→ void
Raise a window above other windows and set the input focus.
sdlReadBe16 (Pointer <SdlRWops > src )
→ int
Use this function to read 16 bits of big-endian data from an SDL_RWops and
return in native format.
sdlReadBe32 (Pointer <SdlRWops > src )
→ int
Use this function to read 32 bits of big-endian data from an SDL_RWops and
return in native format.
sdlReadBe64 (Pointer <SdlRWops > src )
→ int
Use this function to read 64 bits of big-endian data from an SDL_RWops and
return in native format.
sdlReadLe16 (Pointer <SdlRWops > src )
→ int
Use this function to read 16 bits of little-endian data from an SDL_RWops
and return in native format.
sdlReadLe32 (Pointer <SdlRWops > src )
→ int
Use this function to read 32 bits of little-endian data from an SDL_RWops
and return in native format.
sdlReadLe64 (Pointer <SdlRWops > src )
→ int
Use this function to read 64 bits of little-endian data from an SDL_RWops
and return in native format.
sdlReadU8 (Pointer <SdlRWops > src )
→ int
Use this function to read a byte from an SDL_RWops.
sdlRealloc (Pointer <NativeType > mem , int size )
→ Pointer <NativeType >
extern DECLSPEC void *SDLCALL SDL_realloc(void *mem, size_t size)
sdlRecordGesture (int touchId )
→ int
Begin recording a gesture on a specified touch device or all touch devices.
sdlRegisterApp (String ? name , int style , Pointer <NativeType > hInst )
→ int
Register a win32 window class for SDL's use.
sdlRegisterEvents (int numevents )
→ int
Allocate a set of user-defined events, and return the beginning event
number for that set of events.
sdlRemoveTimer (int id )
→ bool
Remove a timer created with SDL_AddTimer().
sdlRenderClear (Pointer <SdlRenderer > renderer )
→ int
Clear the current rendering target with the drawing color.
sdlRenderCopy (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <SdlRect > srcrect , Pointer <SdlRect > dstrect )
→ int
Copy a portion of the texture to the current rendering target.
sdlRenderCopyEx (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <SdlRect > srcrect , Pointer <SdlRect > dstrect , double angle , Pointer <SdlPoint > center , int flip )
→ int
Copy a portion of the texture to the current rendering, with optional
rotation and flipping.
sdlRenderCopyExF (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <SdlRect > srcrect , Pointer <SdlFRect > dstrect , double angle , Pointer <SdlFPoint > center , int flip )
→ int
Copy a portion of the source texture to the current rendering target, with
rotation and flipping, at subpixel precision.
sdlRenderCopyF (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <SdlRect > srcrect , Pointer <SdlFRect > dstrect )
→ int
Copy a portion of the texture to the current rendering target at subpixel
precision.
sdlRenderDrawLine (Pointer <SdlRenderer > renderer , int x1 , int y1 , int x2 , int y2 )
→ int
Draw a line on the current rendering target.
sdlRenderDrawLineF (Pointer <SdlRenderer > renderer , double x1 , double y1 , double x2 , double y2 )
→ int
Draw a line on the current rendering target at subpixel precision.
sdlRenderDrawLines (Pointer <SdlRenderer > renderer , Pointer <SdlPoint > points , int count )
→ int
Draw a series of connected lines on the current rendering target.
sdlRenderDrawLinesF (Pointer <SdlRenderer > renderer , Pointer <SdlFPoint > points , int count )
→ int
Draw a series of connected lines on the current rendering target at
subpixel precision.
sdlRenderDrawPoint (Pointer <SdlRenderer > renderer , int x , int y )
→ int
Draw a point on the current rendering target.
sdlRenderDrawPointF (Pointer <SdlRenderer > renderer , double x , double y )
→ int
Draw a point on the current rendering target at subpixel precision.
sdlRenderDrawPoints (Pointer <SdlRenderer > renderer , Pointer <SdlPoint > points , int count )
→ int
Draw multiple points on the current rendering target.
sdlRenderDrawPointsF (Pointer <SdlRenderer > renderer , Pointer <SdlFPoint > points , int count )
→ int
Draw multiple points on the current rendering target at subpixel precision.
sdlRenderDrawRect (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ int
Draw a rectangle on the current rendering target.
sdlRenderDrawRectF (Pointer <SdlRenderer > renderer , Pointer <SdlFRect > rect )
→ int
Draw a rectangle on the current rendering target at subpixel precision.
sdlRenderDrawRects (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rects , int count )
→ int
Draw some number of rectangles on the current rendering target.
sdlRenderDrawRectsF (Pointer <SdlRenderer > renderer , Pointer <SdlFRect > rects , int count )
→ int
Draw some number of rectangles on the current rendering target at subpixel
precision.
sdlRenderFillRect (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ int
Fill a rectangle on the current rendering target with the drawing color.
sdlRenderFillRectF (Pointer <SdlRenderer > renderer , Pointer <SdlFRect > rect )
→ int
Fill a rectangle on the current rendering target with the drawing color at
subpixel precision.
sdlRenderFillRects (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rects , int count )
→ int
Fill some number of rectangles on the current rendering target with the
drawing color.
sdlRenderFillRectsF (Pointer <SdlRenderer > renderer , Pointer <SdlFRect > rects , int count )
→ int
Fill some number of rectangles on the current rendering target with the
drawing color at subpixel precision.
sdlRenderFlush (Pointer <SdlRenderer > renderer )
→ int
Force the rendering context to flush any pending commands to the underlying
rendering API.
sdlRenderGeometry (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <SdlVertex > vertices , int numVertices , Pointer <Int32 > indices , int numIndices )
→ int
Render a list of triangles, optionally using a texture and indices into the
vertex array Color and alpha modulation is done per vertex
(SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).
sdlRenderGeometryRaw (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture , Pointer <Float > xy , int xyStride , Pointer <SdlColor > color , int colorStride , Pointer <Float > uv , int uvStride , int numVertices , Pointer <NativeType > indices , int numIndices , int sizeIndices )
→ int
Render a list of triangles, optionally using a texture and indices into the
vertex arrays Color and alpha modulation is done per vertex
(SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).
sdlRenderGetClipRect (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ void
Get the clip rectangle for the current target.
sdlRenderGetD3D11Device (Pointer <SdlRenderer > renderer )
→ Pointer <ID3D11Device >
Get the D3D11 device associated with a renderer.
sdlRenderGetD3D12Device (Pointer <SdlRenderer > renderer )
→ Pointer <ID3D12Device >
Get the D3D12 device associated with a renderer.
sdlRenderGetD3D9Device (Pointer <SdlRenderer > renderer )
→ Pointer <IDirect3DDevice9 >
Get the D3D9 device associated with a renderer.
sdlRenderGetIntegerScale (Pointer <SdlRenderer > renderer )
→ bool
Get whether integer scales are forced for resolution-independent rendering.
sdlRenderGetLogicalSize (Pointer <SdlRenderer > renderer , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get device independent resolution for rendering.
sdlRenderGetMetalCommandEncoder (Pointer <SdlRenderer > renderer )
→ Pointer <NativeType >
Get the Metal command encoder for the current frame
sdlRenderGetMetalLayer (Pointer <SdlRenderer > renderer )
→ Pointer <NativeType >
Get the CAMetalLayer associated with the given Metal renderer.
sdlRenderGetScale (Pointer <SdlRenderer > renderer , Pointer <Float > scaleX , Pointer <Float > scaleY )
→ void
Get the drawing scale for the current target.
sdlRenderGetViewport (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ void
Get the drawing area for the current target.
sdlRenderGetWindow (Pointer <SdlRenderer > renderer )
→ Pointer <SdlWindow >
Get the window associated with a renderer.
sdlRenderIsClipEnabled (Pointer <SdlRenderer > renderer )
→ bool
Get whether clipping is enabled on the given renderer.
sdlRenderLogicalToWindow (Pointer <SdlRenderer > renderer , double logicalX , double logicalY , Pointer <Int32 > windowX , Pointer <Int32 > windowY )
→ void
Get real coordinates of point in window when given logical coordinates of
point in renderer.
sdlRenderPresent (Pointer <SdlRenderer > renderer )
→ void
Update the screen with any rendering performed since the previous call.
sdlRenderReadPixels (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect , int format , Pointer <NativeType > pixels , int pitch )
→ int
Read pixels from the current rendering target to an array of pixels.
sdlRenderSetClipRect (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ int
Set the clip rectangle for rendering on the specified target.
sdlRenderSetIntegerScale (Pointer <SdlRenderer > renderer , bool enable )
→ int
Set whether to force integer scales for resolution-independent rendering.
sdlRenderSetLogicalSize (Pointer <SdlRenderer > renderer , int w , int h )
→ int
Set a device independent resolution for rendering.
sdlRenderSetScale (Pointer <SdlRenderer > renderer , double scaleX , double scaleY )
→ int
Set the drawing scale for rendering on the current target.
sdlRenderSetViewport (Pointer <SdlRenderer > renderer , Pointer <SdlRect > rect )
→ int
Set the drawing area for rendering on the current target.
sdlRenderSetVSync (Pointer <SdlRenderer > renderer , int vsync )
→ int
Toggle VSync of the given renderer.
sdlRenderTargetSupported (Pointer <SdlRenderer > renderer )
→ bool
Determine whether a renderer supports the use of render targets.
sdlRenderWindowToLogical (Pointer <SdlRenderer > renderer , int windowX , int windowY , Pointer <Float > logicalX , Pointer <Float > logicalY )
→ void
Get logical coordinates of point in renderer when given real coordinates of
point in window.
sdlReportAssertion (Pointer <SdlAssertData > arg0 , String ? arg1 , String ? arg2 , Pointer <NativeType > arg3 )
→ int
this tells Clang's static analysis that we're a custom assert function,
and that the analyzer should assume the condition was always true past this
SDL_assert test. */
sdlResetAssertionReport ()
→ void
Clear the list of all assertion failures.
sdlResetHint (String ? name )
→ bool
Reset a hint to the default value.
sdlResetHints ()
→ void
Reset all hints to the default values.
sdlResetKeyboard ()
→ void
Clear the state of the keyboard
sdlRestoreWindow (Pointer <SdlWindow > window )
→ void
Restore the size and position of a minimized or maximized window.
sdlRound (double x )
→ double
extern DECLSPEC double SDLCALL SDL_round(double x)
sdlRoundf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_roundf(float x)
sdlRWclose (Pointer <SdlRWops > context )
→ int
Close and free an allocated SDL_RWops structure.
sdlRwFromConstMem (Pointer <NativeType > mem , int size )
→ Pointer <SdlRWops >
Use this function to prepare a read-only memory buffer for use with RWops.
sdlRwFromFile (String ? file , String ? mode )
→ Pointer <SdlRWops >
Use this function to create a new SDL_RWops structure for reading from
and/or writing to a named file.
sdlRwFromFp (Pointer <IntPtr > fp , bool autoclose )
→ Pointer <SdlRWops >
extern DECLSPEC SDL_RWops *SDLCALL SDL_RWFromFP(FILE * fp, SDL_bool autoclose)
sdlRwFromMem (Pointer <NativeType > mem , int size )
→ Pointer <SdlRWops >
Use this function to prepare a read-write memory buffer for use with
SDL_RWops.
sdlRWread (Pointer <SdlRWops > context , Pointer <NativeType > ptr , int size , int maxnum )
→ int
Read from a data source.
sdlRWseek (Pointer <SdlRWops > context , int offset , int whence )
→ int
Seek within an SDL_RWops data stream.
sdlRWsize (Pointer <SdlRWops > context )
→ int
Use this function to get the size of the data stream in an SDL_RWops.
sdlRWtell (Pointer <SdlRWops > context )
→ int
Determine the current read/write offset in an SDL_RWops data stream.
sdlRWwrite (Pointer <SdlRWops > context , Pointer <NativeType > ptr , int size , int num )
→ int
Write to an SDL_RWops data stream.
sdlSaveAllDollarTemplates (Pointer <SdlRWops > dst )
→ int
Save all currently loaded Dollar Gesture templates.
sdlSaveBmp (Pointer <SdlSurface > surface , String file )
→ int
const SDL_SaveBMP = (surface, file) \ SDL_SaveBMP_RW(surface, SDL_RWFromFile(file, 'wb'), 1);
sdlSaveBmpRw (Pointer <SdlSurface > surface , Pointer <SdlRWops > dst , int freedst )
→ int
Save a surface to a seekable SDL data stream in BMP format.
sdlSaveDollarTemplate (int gestureId , Pointer <SdlRWops > dst )
→ int
Save a currently loaded Dollar Gesture template.
sdlScalbn (double x , int n )
→ double
extern DECLSPEC double SDLCALL SDL_scalbn(double x, int n)
sdlScalbnf (double x , int n )
→ double
extern DECLSPEC float SDLCALL SDL_scalbnf(float x, int n)
sdlScancodeToKeycode (int x )
→ int
sdlSemPost (Pointer <SdlSem > sem )
→ int
Atomically increment a semaphore's value and wake waiting threads.
sdlSemTryWait (Pointer <SdlSem > sem )
→ int
See if a semaphore has a positive value and decrement it if it does.
sdlSemValue (Pointer <SdlSem > sem )
→ int
Get the current value of a semaphore.
sdlSemWait (Pointer <SdlSem > sem )
→ int
Wait until a semaphore has a positive value and then decrements it.
sdlSemWaitTimeout (Pointer <SdlSem > sem , int timeout )
→ int
Wait until a semaphore has a positive value and then decrements it.
sdlSensorClose (Pointer <SdlSensor > sensor )
→ void
Close a sensor previously opened with SDL_SensorOpen().
sdlSensorFromInstanceId (int instanceId )
→ Pointer <SdlSensor >
Return the SDL_Sensor associated with an instance id.
sdlSensorGetData (Pointer <SdlSensor > sensor , Pointer <Float > data , int numValues )
→ int
Get the current state of an opened sensor.
sdlSensorGetDataWithTimestamp (Pointer <SdlSensor > sensor , Pointer <Uint64 > timestamp , Pointer <Float > data , int numValues )
→ int
Get the current state of an opened sensor with the timestamp of the last
update.
sdlSensorGetDeviceInstanceId (int deviceIndex )
→ int
Get the instance ID of a sensor.
sdlSensorGetDeviceName (int deviceIndex )
→ String ?
Get the implementation dependent name of a sensor.
sdlSensorGetDeviceNonPortableType (int deviceIndex )
→ int
Get the platform dependent type of a sensor.
sdlSensorGetDeviceType (int deviceIndex )
→ int
Get the type of a sensor.
sdlSensorGetInstanceId (Pointer <SdlSensor > sensor )
→ int
Get the instance ID of a sensor.
sdlSensorGetName (Pointer <SdlSensor > sensor )
→ String ?
Get the implementation dependent name of a sensor
sdlSensorGetNonPortableType (Pointer <SdlSensor > sensor )
→ int
Get the platform dependent type of a sensor.
sdlSensorGetType (Pointer <SdlSensor > sensor )
→ int
Get the type of a sensor.
sdlSensorOpen (int deviceIndex )
→ Pointer <SdlSensor >
Open a sensor for use.
sdlSensorUpdate ()
→ void
Update the current state of the open sensors.
sdlSetAssertionHandler (Pointer <NativeFunction <SdlAssertionHandler > > handler , Pointer <NativeType > userdata )
→ void
Set an application-defined assertion handler.
sdlSetClipboardText (String ? text )
→ int
Put UTF-8 text into the clipboard.
sdlSetClipRect (Pointer <SdlSurface > surface , Pointer <SdlRect > rect )
→ bool
Set the clipping rectangle for a surface.
sdlSetColorKey (Pointer <SdlSurface > surface , int flag , int key )
→ int
Set the color key (transparent pixel) in a surface.
sdlSetCursor (Pointer <SdlCursor > cursor )
→ void
Set the active cursor.
sdlSetenv (String ? name , String ? value , int overwrite )
→ int
extern DECLSPEC int SDLCALL SDL_setenv(const char *name, const char *value, int overwrite)
sdlSetError (String ? fmt , Pointer <NativeType > arg1 )
→ int
Set the SDL error message for the current thread.
sdlSetEventFilter (Pointer <NativeFunction <SdlEventFilter > > filter , Pointer <NativeType > userdata )
→ void
Set up a filter to process all events before they change internal state and
are posted to the internal event queue.
sdlSetHint (String ? name , String ? value )
→ bool
Set a hint with normal priority.
sdlSetHintWithPriority (String ? name , String ? value , int priority )
→ bool
Set a hint with a specific priority.
sdlSetMainReady ()
→ void
Circumvent failure of SDL_Init() when not using SDL_main() as an entry
point.
sdlSetMemoryFunctions (Pointer <NativeFunction <SdlMallocFunc > > mallocFunc , Pointer <NativeFunction <SdlCallocFunc > > callocFunc , Pointer <NativeFunction <SdlReallocFunc > > reallocFunc , Pointer <NativeFunction <SdlFreeFunc > > freeFunc )
→ int
Replace SDL's memory allocation functions with a custom set
sdlSetModState (int modstate )
→ void
Set the current key modifier state for the keyboard.
sdlSetPaletteColors (Pointer <SdlPalette > palette , Pointer <SdlColor > colors , int firstcolor , int ncolors )
→ int
Set a range of colors in a palette.
sdlSetPixelFormatPalette (Pointer <SdlPixelFormat > format , Pointer <SdlPalette > palette )
→ int
Set the palette for a pixel format structure.
sdlSetPrimarySelectionText (String ? text )
→ int
Put UTF-8 text into the primary selection.
sdlSetRelativeMouseMode (bool enabled )
→ int
Set relative mouse mode.
sdlSetRenderDrawBlendMode (Pointer <SdlRenderer > renderer , int blendMode )
→ int
Set the blend mode used for drawing operations (Fill and Line).
sdlSetRenderDrawColor (Pointer <SdlRenderer > renderer , int r , int g , int b , int a )
→ int
Set the color used for drawing operations (Rect, Line and Clear).
sdlSetRenderTarget (Pointer <SdlRenderer > renderer , Pointer <SdlTexture > texture )
→ int
Set a texture as the current rendering target.
sdlSetSurfaceAlphaMod (Pointer <SdlSurface > surface , int alpha )
→ int
Set an additional alpha value used in blit operations.
sdlSetSurfaceBlendMode (Pointer <SdlSurface > surface , int blendMode )
→ int
Set the blend mode used for blit operations.
sdlSetSurfaceColorMod (Pointer <SdlSurface > surface , int r , int g , int b )
→ int
Set an additional color value multiplied into blit operations.
sdlSetSurfacePalette (Pointer <SdlSurface > surface , Pointer <SdlPalette > palette )
→ int
Set the palette used by a surface.
sdlSetSurfaceRle (Pointer <SdlSurface > surface , int flag )
→ int
Set the RLE acceleration hint for a surface.
sdlSetTextInputRect (Pointer <SdlRect > rect )
→ void
Set the rectangle used to type Unicode text inputs. Native input methods
will place a window with word suggestions near it, without covering the
text being inputted.
sdlSetTextureAlphaMod (Pointer <SdlTexture > texture , int alpha )
→ int
Set an additional alpha value multiplied into render copy operations.
sdlSetTextureBlendMode (Pointer <SdlTexture > texture , int blendMode )
→ int
Set the blend mode for a texture, used by SDL_RenderCopy().
sdlSetTextureColorMod (Pointer <SdlTexture > texture , int r , int g , int b )
→ int
Set an additional color value multiplied into render copy operations.
sdlSetTextureScaleMode (Pointer <SdlTexture > texture , int scaleMode )
→ int
Set the scale mode used for texture scale operations.
sdlSetTextureUserData (Pointer <SdlTexture > texture , Pointer <NativeType > userdata )
→ int
Associate a user-specified pointer with a texture.
sdlSetThreadPriority (int priority )
→ int
Set the priority for the current thread.
sdlSetWindowAlwaysOnTop (Pointer <SdlWindow > window , bool onTop )
→ void
Set the window to always be above the others.
sdlSetWindowBordered (Pointer <SdlWindow > window , bool bordered )
→ void
Set the border state of a window.
sdlSetWindowBrightness (Pointer <SdlWindow > window , double brightness )
→ int
Set the brightness (gamma multiplier) for a given window's display.
sdlSetWindowData (Pointer <SdlWindow > window , String ? name , Pointer <NativeType > userdata )
→ Pointer <NativeType >
Associate an arbitrary named pointer with a window.
sdlSetWindowDisplayMode (Pointer <SdlWindow > window , Pointer <SdlDisplayMode > mode )
→ int
Set the display mode to use when a window is visible at fullscreen.
sdlSetWindowFullscreen (Pointer <SdlWindow > window , int flags )
→ int
Set a window's fullscreen state.
sdlSetWindowGammaRamp (Pointer <SdlWindow > window , Pointer <Uint16 > red , Pointer <Uint16 > green , Pointer <Uint16 > blue )
→ int
Set the gamma ramp for the display that owns a given window.
sdlSetWindowGrab (Pointer <SdlWindow > window , bool grabbed )
→ void
Set a window's input grab mode.
sdlSetWindowHitTest (Pointer <SdlWindow > window , Pointer <NativeFunction <SdlHitTest > > callback , Pointer <NativeType > callbackData )
→ int
Provide a callback that decides if a window region has special properties.
sdlSetWindowIcon (Pointer <SdlWindow > window , Pointer <SdlSurface > icon )
→ void
Set the icon for a window.
sdlSetWindowInputFocus (Pointer <SdlWindow > window )
→ int
Explicitly set input focus to the window.
sdlSetWindowKeyboardGrab (Pointer <SdlWindow > window , bool grabbed )
→ void
Set a window's keyboard grab mode.
sdlSetWindowMaximumSize (Pointer <SdlWindow > window , int maxW , int maxH )
→ void
Set the maximum size of a window's client area.
sdlSetWindowMinimumSize (Pointer <SdlWindow > window , int minW , int minH )
→ void
Set the minimum size of a window's client area.
sdlSetWindowModalFor (Pointer <SdlWindow > modalWindow , Pointer <SdlWindow > parentWindow )
→ int
Set the window as a modal for another window.
sdlSetWindowMouseGrab (Pointer <SdlWindow > window , bool grabbed )
→ void
Set a window's mouse grab mode.
sdlSetWindowMouseRect (Pointer <SdlWindow > window , Pointer <SdlRect > rect )
→ int
Confines the cursor to the specified area of a window.
sdlSetWindowOpacity (Pointer <SdlWindow > window , double opacity )
→ int
Set the opacity for a window.
sdlSetWindowPosition (Pointer <SdlWindow > window , int x , int y )
→ void
Set the position of a window.
sdlSetWindowResizable (Pointer <SdlWindow > window , bool resizable )
→ void
Set the user-resizable state of a window.
sdlSetWindowShape (Pointer <SdlWindow > window , Pointer <SdlSurface > shape , Pointer <SdlWindowShapeMode > shapeMode )
→ int
Set the shape and parameters of a shaped window.
sdlSetWindowSize (Pointer <SdlWindow > window , int w , int h )
→ void
Set the size of a window's client area.
sdlSetWindowsMessageHook (Pointer <NativeFunction <SdlWindowsMessageHook > > callback , Pointer <NativeType > userdata )
→ void
Set a callback for every Windows message, run before TranslateMessage().
sdlSetWindowTitle (Pointer <SdlWindow > window , String ? title )
→ void
Set the title of a window.
sdlSetYuvConversionMode (int mode )
→ void
Set the YUV conversion mode
sdlShowCursor (int toggle )
→ int
Toggle whether or not the cursor is shown.
sdlShowMessageBox (Pointer <SdlMessageBoxData > messageboxdata , Pointer <Int32 > buttonid )
→ int
Create a modal message box.
sdlShowSimpleMessageBox (int flags , String ? title , String ? message , Pointer <SdlWindow > window )
→ int
Display a simple modal message box.
sdlShowWindow (Pointer <SdlWindow > window )
→ void
Show a window.
sdlSimdAlloc (int len )
→ Pointer <NativeType >
Allocate memory in a SIMD-friendly way.
sdlSimdFree (Pointer <NativeType > ptr )
→ void
Deallocate memory obtained from SDL_SIMDAlloc
sdlSimdGetAlignment ()
→ int
Report the alignment this system needs for SIMD allocations.
sdlSimdRealloc (Pointer <NativeType > mem , int len )
→ Pointer <NativeType >
Reallocate memory obtained from SDL_SIMDAlloc
sdlSin (double x )
→ double
extern DECLSPEC double SDLCALL SDL_sin(double x)
sdlSinf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_sinf(float x)
sdlSnprintf (Pointer <NativeType > arg0 , int maxlen , String ? fmt , Pointer <NativeType > arg3 )
→ int
extern DECLSPEC int SDLCALL SDL_snprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, ... ) SDL_PRINTF_VARARG_FUNC(3)
sdlSoftStretch (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform a fast, low quality, stretch blit between two surfaces of the same
format.
sdlSoftStretchLinear (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform bilinear scaling between two surfaces of the same format, 32BPP.
sdlSqrt (double x )
→ double
extern DECLSPEC double SDLCALL SDL_sqrt(double x)
sdlSqrtf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_sqrtf(float x)
sdlSscanf (String ? text , String ? fmt , Pointer <NativeType > arg2 )
→ int
extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, ...) SDL_SCANF_VARARG_FUNC(2)
sdlStartTextInput ()
→ void
Start accepting Unicode text input events.
sdlStopTextInput ()
→ void
Stop receiving any text input events.
sdlStrcasecmp (String ? str1 , String ? str2 )
→ int
extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2)
sdlStrcasestr (String ? haystack , String ? needle )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strcasestr(const char *haystack, const char *needle)
sdlStrchr (String ? str , int c )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strchr(const char *str, int c)
sdlStrcmp (String ? str1 , String ? str2 )
→ int
extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2)
sdlStrdup (String ? str )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strdup(const char *str)
sdlStrlcat (Pointer <NativeType > arg0 , String ? src , int maxlen )
→ int
extern DECLSPEC size_t SDLCALL SDL_strlcat(SDL_INOUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
sdlStrlcpy (Pointer <NativeType > arg0 , String ? src , int maxlen )
→ int
extern DECLSPEC size_t SDLCALL SDL_strlcpy(SDL_OUT_Z_CAP(maxlen) char *dst, const char *src, size_t maxlen)
sdlStrlen (String ? str )
→ int
extern DECLSPEC size_t SDLCALL SDL_strlen(const char *str)
sdlStrlwr (Pointer <Int8 > str )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strlwr(char *str)
sdlStrncasecmp (String ? str1 , String ? str2 , int len )
→ int
extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t len)
sdlStrncmp (String ? str1 , String ? str2 , int maxlen )
→ int
extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen)
sdlStrrchr (String ? str , int c )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strrchr(const char *str, int c)
sdlStrrev (Pointer <Int8 > str )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strrev(char *str)
sdlStrstr (String ? haystack , String ? needle )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strstr(const char *haystack, const char *needle)
sdlStrtod (String ? str , Pointer <Pointer <Int8 > > endp )
→ double
extern DECLSPEC double SDLCALL SDL_strtod(const char *str, char **endp)
sdlStrtokr (Pointer <Int8 > s1 , String ? s2 , Pointer <Pointer <Int8 > > saveptr )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strtokr(char *s1, const char *s2, char **saveptr)
sdlStrtol (String ? str , Pointer <Pointer <Int8 > > endp , int base )
→ int
extern DECLSPEC long SDLCALL SDL_strtol(const char *str, char **endp, int base)
sdlStrtoll (String ? str , Pointer <Pointer <Int8 > > endp , int base )
→ int
extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *str, char **endp, int base)
sdlStrtoul (String ? str , Pointer <Pointer <Int8 > > endp , int base )
→ int
extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *str, char **endp, int base)
sdlStrtoull (String ? str , Pointer <Pointer <Int8 > > endp , int base )
→ int
extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *str, char **endp, int base)
sdlStrupr (Pointer <Int8 > str )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_strupr(char *str)
sdlTan (double x )
→ double
extern DECLSPEC double SDLCALL SDL_tan(double x)
sdlTanf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_tanf(float x)
sdlThreadId ()
→ int
Get the thread identifier for the current thread.
sdlTlsCleanup ()
→ void
Cleanup all TLS data for this thread.
sdlTlsCreate ()
→ int
Create a piece of thread-local storage.
sdlTlsGet (int id )
→ Pointer <NativeType >
Get the current thread's value associated with a thread local storage ID.
sdlTlsSet (int id , Pointer <NativeType > value , Pointer <NativeType > deor )
→ int
Set the current thread's value associated with a thread local storage ID.
sdlTolower (int x )
→ int
extern DECLSPEC int SDLCALL SDL_tolower(int x)
sdlToupper (int x )
→ int
extern DECLSPEC int SDLCALL SDL_toupper(int x)
sdlTrunc (double x )
→ double
extern DECLSPEC double SDLCALL SDL_trunc(double x)
sdlTruncf (double x )
→ double
extern DECLSPEC float SDLCALL SDL_truncf(float x)
sdlTryLockMutex (Pointer <NativeType > arg0 , Pointer <NativeType > arg1 )
→ int
Try to lock a mutex without blocking.
sdlTtfVersion (Pointer <SdlVersion > x )
→ void
const SDL_TTF_VERSION = (X) \{ \ (X)->major = SDL_TTF_MAJOR_VERSION; \ (X)->minor = SDL_TTF_MINOR_VERSION; \ (X)->patch = SDL_TTF_PATCHLEVEL; \};
sdlTtfVersionAtleast (int x , int y , int z )
→ bool
const SDL_TTF_VERSION_ATLEAST = (X, Y, Z) \ (SDL_TTF_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z));
sdlUiKitRunApp (int argc , Pointer <Pointer <Int8 > > argv , Pointer <NativeFunction <SdlMainFunc > > mainFunction )
→ int
Initializes and launches an SDL application.
sdlUitoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_uitoa(unsigned int value, char *str, int radix)
sdlUlltoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_ulltoa(Uint64 value, char *str, int radix)
sdlUltoa (int value , Pointer <Int8 > str , int radix )
→ Pointer <Int8 >
extern DECLSPEC char *SDLCALL SDL_ultoa(unsigned long value, char *str, int radix)
sdlUnionFRect (Pointer <SdlFRect > a , Pointer <SdlFRect > b , Pointer <SdlFRect > result )
→ void
Calculate the union of two rectangles with float precision.
sdlUnionRect (Pointer <SdlRect > a , Pointer <SdlRect > b , Pointer <SdlRect > result )
→ void
Calculate the union of two rectangles.
sdlUnloadObject (Pointer <NativeType > handle )
→ void
Unload a shared object from memory.
sdlUnlockAudio ()
→ void
This function is a legacy means of unlocking the audio device.
sdlUnlockAudioDevice (int dev )
→ void
Use this function to unlock the audio callback function for a specified
device.
sdlUnlockJoysticks (Pointer <NativeType > arg0 )
→ void
Unlocking for multi-threaded access to the joystick API
sdlUnlockMutex (Pointer <NativeType > arg0 )
→ int
Unlock the mutex.
sdlUnlockSensors ()
→ void
extern DECLSPEC void SDLCALL SDL_UnlockSensors(void)
sdlUnlockSurface (Pointer <SdlSurface > surface )
→ void
Release a surface after directly accessing the pixels.
sdlUnlockTexture (Pointer <SdlTexture > texture )
→ void
Unlock a texture, uploading the changes to video memory, if needed.
sdlUnregisterApp ()
→ void
Deregister the win32 window class from an SDL_RegisterApp call.
sdlUpdateNvTexture (Pointer <SdlTexture > texture , Pointer <SdlRect > rect , Pointer <Uint8 > yplane , int ypitch , Pointer <Uint8 > uVplane , int uVpitch )
→ int
Update a rectangle within a planar NV12 or NV21 texture with new pixels.
sdlUpdateTexture (Pointer <SdlTexture > texture , Pointer <SdlRect > rect , Pointer <NativeType > pixels , int pitch )
→ int
Update the given texture rectangle with new pixel data.
sdlUpdateWindowSurface (Pointer <SdlWindow > window )
→ int
Copy the window surface to the screen.
sdlUpdateWindowSurfaceRects (Pointer <SdlWindow > window , Pointer <SdlRect > rects , int numrects )
→ int
Copy areas of the window surface to the screen.
sdlUpdateYuvTexture (Pointer <SdlTexture > texture , Pointer <SdlRect > rect , Pointer <Uint8 > yplane , int ypitch , Pointer <Uint8 > uplane , int upitch , Pointer <Uint8 > vplane , int vpitch )
→ int
Update a rectangle within a planar YV12 or IYUV texture with new pixel
data.
sdlUpperBlit (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform a fast blit from the source surface to the destination surface.
sdlUpperBlitScaled (Pointer <SdlSurface > src , Pointer <SdlRect > srcrect , Pointer <SdlSurface > dst , Pointer <SdlRect > dstrect )
→ int
Perform a scaled surface copy to a destination surface.
sdlUtf8strlcpy (Pointer <NativeType > arg0 , String ? src , int dstBytes )
→ int
extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(SDL_OUT_Z_CAP(dst_bytes) char *dst, const char *src, size_t dst_bytes)
sdlUtf8strlen (String ? str )
→ int
extern DECLSPEC size_t SDLCALL SDL_utf8strlen(const char *str)
sdlUtf8strnlen (String ? str , int bytes )
→ int
extern DECLSPEC size_t SDLCALL SDL_utf8strnlen(const char *str, size_t bytes)
sdlVasprintf (Pointer <Pointer <Int8 > > strp , String ? fmt , Pointer <NativeType > arg2 )
→ int
extern DECLSPEC int SDLCALL SDL_vasprintf(char **strp, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(2)
sdlVersion (Pointer <SdlVersion > x )
→ void
const SDL_VERSION = (x) \{ \ (x)->major = SDL_MAJOR_VERSION; \ (x)->minor = SDL_MINOR_VERSION; \ (x)->patch = SDL_PATCHLEVEL; \};
sdlVersionAtleast (int x , int y , int z )
→ bool
const SDL_VERSION_ATLEAST = (X, Y, Z) \ (SDL_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z));
sdlVersionnum (int x , int y , int z )
→ int
const SDL_VERSIONNUM = (X, Y, Z) \ ((X)*1000 + (Y)*100 + (Z));
sdlVideoInit (String ? driverName )
→ int
Initialize the video subsystem, optionally specifying a video driver.
sdlVideoQuit ()
→ void
Shut down the video subsystem, if initialized with SDL_VideoInit().
sdlVsnprintf (Pointer <NativeType > arg0 , int maxlen , String ? fmt , Pointer <NativeType > arg3 )
→ int
extern DECLSPEC int SDLCALL SDL_vsnprintf(SDL_OUT_Z_CAP(maxlen) char *text, size_t maxlen, SDL_PRINTF_FORMAT_STRING const char *fmt, va_list ap) SDL_PRINTF_VARARG_FUNCV(3)
sdlVsscanf (String ? text , String ? fmt , Pointer <NativeType > arg2 )
→ int
extern DECLSPEC int SDLCALL SDL_vsscanf(const char *text, SDL_SCANF_FORMAT_STRING const char *fmt, va_list ap) SDL_SCANF_VARARG_FUNCV(2)
sdlVulkanCreateSurface (Pointer <SdlWindow > window , Pointer <NativeType > instance , Pointer <NativeType > surface )
→ bool
Create a Vulkan rendering surface for a window.
sdlVulkanGetDrawableSize (Pointer <SdlWindow > window , Pointer <Int32 > w , Pointer <Int32 > h )
→ void
Get the size of the window's underlying drawable dimensions in pixels.
sdlVulkanGetInstanceExtensions (Pointer <SdlWindow > window , Pointer <Uint32 > pCount , Pointer <Pointer <Int8 > > pNames )
→ bool
Get the names of the Vulkan instance extensions needed to create a surface
with SDL_Vulkan_CreateSurface.
sdlVulkanGetVkGetInstanceProcAddr ()
→ Pointer <NativeType >
Get the address of the vkGetInstanceProcAddr
function.
sdlVulkanLoadLibrary (String ? path )
→ int
Dynamically load the Vulkan loader library.
sdlVulkanUnloadLibrary ()
→ void
Unload the Vulkan library previously loaded by SDL_Vulkan_LoadLibrary()
sdlWaitEvent (Pointer <SdlEvent > event )
→ int
Wait indefinitely for the next available event.
sdlWaitEventTimeout (Pointer <SdlEvent > event , int timeout )
→ int
Wait until the specified timeout (in milliseconds) for the next available
event.
sdlWaitThread (Pointer <SdlThread > thread , Pointer <Int32 > status )
→ void
Wait for a thread to finish.
sdlWarpMouseGlobal (int x , int y )
→ int
Move the mouse to the given position in global screen space.
sdlWarpMouseInWindow (Pointer <SdlWindow > window , int x , int y )
→ void
Move the mouse cursor to the given position within the window.
sdlWasInit (int flags )
→ int
Get a mask of the specified subsystems which are currently initialized.
sdlWcscasecmp (Pointer <Int16 > str1 , Pointer <Int16 > str2 )
→ int
extern DECLSPEC int SDLCALL SDL_wcscasecmp(const wchar_t *str1, const wchar_t *str2)
sdlWcscmp (Pointer <Int16 > str1 , Pointer <Int16 > str2 )
→ int
extern DECLSPEC int SDLCALL SDL_wcscmp(const wchar_t *str1, const wchar_t *str2)
sdlWcsdup (Pointer <Int16 > wstr )
→ Pointer <Int16 >
extern DECLSPEC wchar_t *SDLCALL SDL_wcsdup(const wchar_t *wstr)
sdlWcslcat (Pointer <NativeType > arg0 , Pointer <Int16 > src , int maxlen )
→ int
extern DECLSPEC size_t SDLCALL SDL_wcslcat(SDL_INOUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
sdlWcslcpy (Pointer <NativeType > arg0 , Pointer <Int16 > src , int maxlen )
→ int
extern DECLSPEC size_t SDLCALL SDL_wcslcpy(SDL_OUT_Z_CAP(maxlen) wchar_t *dst, const wchar_t *src, size_t maxlen)
sdlWcslen (Pointer <Int16 > wstr )
→ int
extern DECLSPEC size_t SDLCALL SDL_wcslen(const wchar_t *wstr)
sdlWcsncasecmp (Pointer <Int16 > str1 , Pointer <Int16 > str2 , int len )
→ int
extern DECLSPEC int SDLCALL SDL_wcsncasecmp(const wchar_t *str1, const wchar_t *str2, size_t len)
sdlWcsncmp (Pointer <Int16 > str1 , Pointer <Int16 > str2 , int maxlen )
→ int
extern DECLSPEC int SDLCALL SDL_wcsncmp(const wchar_t *str1, const wchar_t *str2, size_t maxlen)
sdlWcsstr (Pointer <Int16 > haystack , Pointer <Int16 > needle )
→ Pointer <Int16 >
extern DECLSPEC wchar_t *SDLCALL SDL_wcsstr(const wchar_t *haystack, const wchar_t *needle)
sdlWindowposCenteredDisplay (int x )
→ int
const SDL_WINDOWPOS_CENTERED_DISPLAY = (X) (SDL_WINDOWPOS_CENTERED_MASK|(X));
sdlWindowposIscentered (int x )
→ bool
const SDL_WINDOWPOS_ISCENTERED = (X) \ (((X)&0xFFFF0000) == SDL_WINDOWPOS_CENTERED_MASK);
sdlWindowposIsundefined (int x )
→ bool
const SDL_WINDOWPOS_ISUNDEFINED = (X) \ (((X)&0xFFFF0000) == SDL_WINDOWPOS_UNDEFINED_MASK);
sdlWindowposUndefinedDisplay (int x )
→ int
SDL_WINDOWPOS_UNDEFINED_DISPLAY = (X) (SDL_WINDOWPOS_UNDEFINED_MASK|(X));
sdlWinRtGetDeviceFamily ()
→ int
Detects the device family of WinRT platform at runtime.
sdlWinRtGetFsPathUnicode (int pathType )
→ Pointer <Int16 >
Retrieve a WinRT defined path on the local file system.
sdlWinRtGetFsPathUtf8 (int pathType )
→ String ?
Retrieve a WinRT defined path on the local file system.
sdlWinRtRunApp (Pointer <NativeFunction <SdlMainFunc > > mainFunction , Pointer <NativeType > reserved )
→ int
Initialize and launch an SDL/WinRT application.
sdlWriteBe16 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 16 bits in native format to a SDL_RWops as
big-endian data.
sdlWriteBe32 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 32 bits in native format to a SDL_RWops as
big-endian data.
sdlWriteBe64 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 64 bits in native format to a SDL_RWops as
big-endian data.
sdlWriteLe16 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 16 bits in native format to a SDL_RWops as
little-endian data.
sdlWriteLe32 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 32 bits in native format to a SDL_RWops as
little-endian data.
sdlWriteLe64 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write 64 bits in native format to a SDL_RWops as
little-endian data.
sdlWriteU8 (Pointer <SdlRWops > dst , int value )
→ int
Use this function to write a byte to an SDL_RWops.
ttfByteSwappedUnicode (bool swapped )
→ void
Tell SDL_ttf whether UNICODE text is generally byteswapped.
ttfCloseFont (Pointer <TtfFont > font )
→ void
Dispose of a previously-created font.
ttfFontAscent (Pointer <TtfFont > font )
→ int
Query the offset from the baseline to the top of a font.
ttfFontDescent (Pointer <TtfFont > font )
→ int
Query the offset from the baseline to the bottom of a font.
ttfFontFaceFamilyName (Pointer <TtfFont > font )
→ String ?
Query a font's family name.
ttfFontFaceIsFixedWidth (Pointer <TtfFont > font )
→ int
Query whether a font is fixed-width.
ttfFontFaces (Pointer <TtfFont > font )
→ int
Query the number of faces of a font.
ttfFontFaceStyleName (Pointer <TtfFont > font )
→ String ?
Query a font's style name.
ttfFontHeight (Pointer <TtfFont > font )
→ int
Query the total height of a font.
ttfFontLineSkip (Pointer <TtfFont > font )
→ int
Query the recommended spacing between lines of text for a font.
ttfGetError ()
→ String ?
const TTF_GetError = SDL_GetError;
ttfGetFontHinting (Pointer <TtfFont > font )
→ int
Query a font's current FreeType hinter setting.
ttfGetFontKerning (Pointer <TtfFont > font )
→ int
Query whether or not kerning is allowed for a font.
ttfGetFontKerningSizeGlyphs (Pointer <TtfFont > font , int previousCh , int ch )
→ int
Query the kerning size of two 16-bit glyphs.
ttfGetFontKerningSizeGlyphs32 (Pointer <TtfFont > font , int previousCh , int ch )
→ int
Query the kerning size of two 32-bit glyphs.
ttfGetFontOutline (Pointer <TtfFont > font )
→ int
Query a font's current outline.
ttfGetFontSdf (Pointer <TtfFont > font )
→ bool
Query whether Signed Distance Field rendering is enabled for a font.
ttfGetFontStyle (Pointer <TtfFont > font )
→ int
Query a font's current style.
ttfGetFontWrappedAlign (Pointer <TtfFont > font )
→ int
Query a font's current wrap alignment option.
ttfGetFreeTypeVersion (Pointer <Int32 > major , Pointer <Int32 > minor , Pointer <Int32 > patch )
→ void
Query the version of the FreeType library in use.
ttfGetHarfBuzzVersion (Pointer <Int32 > major , Pointer <Int32 > minor , Pointer <Int32 > patch )
→ void
Query the version of the HarfBuzz library in use.
ttfGlyphIsProvided (Pointer <TtfFont > font , int ch )
→ int
Check whether a glyph is provided by the font for a 16-bit codepoint.
ttfGlyphIsProvided32 (Pointer <TtfFont > font , int ch )
→ int
Check whether a glyph is provided by the font for a 32-bit codepoint.
ttfGlyphMetrics (Pointer <TtfFont > font , int ch , Pointer <Int32 > minx , Pointer <Int32 > maxx , Pointer <Int32 > miny , Pointer <Int32 > maxy , Pointer <Int32 > advance )
→ int
Query the metrics (dimensions) of a font's 16-bit glyph.
ttfGlyphMetrics32 (Pointer <TtfFont > font , int ch , Pointer <Int32 > minx , Pointer <Int32 > maxx , Pointer <Int32 > miny , Pointer <Int32 > maxy , Pointer <Int32 > advance )
→ int
Query the metrics (dimensions) of a font's 32-bit glyph.
ttfInit ()
→ int
Initialize SDL_ttf.
ttfLinkedVersion ()
→ Pointer <SdlVersion >
Query the version of SDL_ttf that the program is linked against.
ttfMeasureText (Pointer <TtfFont > font , String ? text , int measureWidth , Pointer <Int32 > extent , Pointer <Int32 > count )
→ int
Calculate how much of a Latin1 string will fit in a given width.
ttfMeasureUnicode (Pointer <TtfFont > font , Pointer <Uint16 > text , int measureWidth , Pointer <Int32 > extent , Pointer <Int32 > count )
→ int
Calculate how much of a UCS-2 string will fit in a given width.
ttfMeasureUtf8 (Pointer <TtfFont > font , String ? text , int measureWidth , Pointer <Int32 > extent , Pointer <Int32 > count )
→ int
Calculate how much of a UTF-8 string will fit in a given width.
ttfOpenFont (String ? file , int ptsize )
→ Pointer <TtfFont >
Create a font from a file, using a specified point size.
ttfOpenFontDpi (String ? file , int ptsize , int hdpi , int vdpi )
→ Pointer <TtfFont >
Create a font from a file, using target resolutions (in DPI).
ttfOpenFontDpirw (Pointer <SdlRWops > src , int freesrc , int ptsize , int hdpi , int vdpi )
→ Pointer <TtfFont >
Opens a font from an SDL_RWops with target resolutions (in DPI).
ttfOpenFontIndex (String ? file , int ptsize , int index )
→ Pointer <TtfFont >
Create a font from a file, using a specified face index.
ttfOpenFontIndexDpi (String ? file , int ptsize , int index , int hdpi , int vdpi )
→ Pointer <TtfFont >
Create a font from a file, using target resolutions (in DPI).
ttfOpenFontIndexDpirw (Pointer <SdlRWops > src , int freesrc , int ptsize , int index , int hdpi , int vdpi )
→ Pointer <TtfFont >
Opens a font from an SDL_RWops with target resolutions (in DPI).
ttfOpenFontIndexRw (Pointer <SdlRWops > src , int freesrc , int ptsize , int index )
→ Pointer <TtfFont >
Create a font from an SDL_RWops, using a specified face index.
ttfOpenFontRw (Pointer <SdlRWops > src , int freesrc , int ptsize )
→ Pointer <TtfFont >
Create a font from an SDL_RWops, using a specified point size.
ttfQuit ()
→ void
Deinitialize SDL_ttf.
ttfRenderGlyph32Blended (Pointer <TtfFont > font , int ch , SdlColor fg )
→ Pointer <SdlSurface >
Render a single 32-bit glyph at high quality to a new ARGB surface.
ttfRenderGlyph32Lcd (Pointer <TtfFont > font , int ch , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render a single 32-bit glyph at LCD subpixel quality to a new ARGB surface.
ttfRenderGlyph32Shaded (Pointer <TtfFont > font , int ch , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render a single 32-bit glyph at high quality to a new 8-bit surface.
ttfRenderGlyph32Solid (Pointer <TtfFont > font , int ch , SdlColor fg )
→ Pointer <SdlSurface >
Render a single 32-bit glyph at fast quality to a new 8-bit surface.
ttfRenderGlyphBlended (Pointer <TtfFont > font , int ch , SdlColor fg )
→ Pointer <SdlSurface >
Render a single 16-bit glyph at high quality to a new ARGB surface.
ttfRenderGlyphLcd (Pointer <TtfFont > font , int ch , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render a single 16-bit glyph at LCD subpixel quality to a new ARGB surface.
ttfRenderGlyphShaded (Pointer <TtfFont > font , int ch , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render a single 16-bit glyph at high quality to a new 8-bit surface.
ttfRenderGlyphSolid (Pointer <TtfFont > font , int ch , SdlColor fg )
→ Pointer <SdlSurface >
Render a single 16-bit glyph at fast quality to a new 8-bit surface.
ttfRenderText (Pointer <TtfFont > font , String text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
const TTF_RenderText = (font, text, fg, bg) \ TTF_RenderText_Shaded(font, text, fg, bg);
ttfRenderTextBlended (Pointer <TtfFont > font , String ? text , SdlColor fg )
→ Pointer <SdlSurface >
Render Latin1 text at high quality to a new ARGB surface.
ttfRenderTextBlendedWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped Latin1 text at high quality to a new ARGB surface.
ttfRenderTextLcd (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render Latin1 text at LCD subpixel quality to a new ARGB surface.
ttfRenderTextLcdWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped Latin1 text at LCD subpixel quality to a new ARGB
surface.
ttfRenderTextShaded (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render Latin1 text at high quality to a new 8-bit surface.
ttfRenderTextShadedWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped Latin1 text at high quality to a new 8-bit surface.
ttfRenderTextSolid (Pointer <TtfFont > font , String ? text , SdlColor fg )
→ Pointer <SdlSurface >
Render Latin1 text at fast quality to a new 8-bit surface.
ttfRenderTextSolidWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped Latin1 text at fast quality to a new 8-bit surface.
ttfRenderUnicode (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
const TTF_RenderUNICODE = (font, text, fg, bg) \ TTF_RenderUNICODE_Shaded(font, text, fg, bg);
ttfRenderUnicodeBlended (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg )
→ Pointer <SdlSurface >
Render UCS-2 text at high quality to a new ARGB surface.
ttfRenderUnicodeBlendedWrapped (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UCS-2 text at high quality to a new ARGB surface.
ttfRenderUnicodeLcd (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render UCS-2 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUnicodeLcdWrapped (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UCS-2 text at LCD subpixel quality to a new ARGB
surface.
ttfRenderUnicodeShaded (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render UCS-2 text at high quality to a new 8-bit surface.
ttfRenderUnicodeShadedWrapped (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UCS-2 text at high quality to a new 8-bit surface.
ttfRenderUnicodeSolid (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg )
→ Pointer <SdlSurface >
Render UCS-2 text at fast quality to a new 8-bit surface.
ttfRenderUnicodeSolidWrapped (Pointer <TtfFont > font , Pointer <Uint16 > text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UCS-2 text at fast quality to a new 8-bit surface.
ttfRenderUtf8 (Pointer <TtfFont > font , String text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
const TTF_RenderUTF8 = (font, text, fg, bg) \ TTF_RenderUTF8_Shaded(font, text, fg, bg);
ttfRenderUtf8Blended (Pointer <TtfFont > font , String ? text , SdlColor fg )
→ Pointer <SdlSurface >
Render UTF-8 text at high quality to a new ARGB surface.
ttfRenderUtf8BlendedWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UTF-8 text at high quality to a new ARGB surface.
ttfRenderUtf8Lcd (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render UTF-8 text at LCD subpixel quality to a new ARGB surface.
ttfRenderUtf8LcdWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UTF-8 text at LCD subpixel quality to a new ARGB
surface.
ttfRenderUtf8Shaded (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg )
→ Pointer <SdlSurface >
Render UTF-8 text at high quality to a new 8-bit surface.
ttfRenderUtf8ShadedWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , SdlColor bg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UTF-8 text at high quality to a new 8-bit surface.
ttfRenderUtf8Solid (Pointer <TtfFont > font , String ? text , SdlColor fg )
→ Pointer <SdlSurface >
Render UTF-8 text at fast quality to a new 8-bit surface.
ttfRenderUtf8SolidWrapped (Pointer <TtfFont > font , String ? text , SdlColor fg , int wrapLength )
→ Pointer <SdlSurface >
Render word-wrapped UTF-8 text at fast quality to a new 8-bit surface.
ttfSetError (String fmt , Pointer <NativeType > arg1 )
→ int
const TTF_SetError = SDL_SetError;
ttfSetFontDirection (Pointer <TtfFont > font , int direction )
→ int
Set direction to be used for text shaping by a font.
ttfSetFontHinting (Pointer <TtfFont > font , int hinting )
→ void
Set a font's current hinter setting.
ttfSetFontKerning (Pointer <TtfFont > font , int allowed )
→ void
Set if kerning is allowed for a font.
ttfSetFontOutline (Pointer <TtfFont > font , int outline )
→ void
Set a font's current outline.
ttfSetFontScriptName (Pointer <TtfFont > font , String ? script )
→ int
Set script to be used for text shaping by a font.
ttfSetFontSdf (Pointer <TtfFont > font , bool onOff )
→ int
Enable Signed Distance Field rendering for a font.
ttfSetFontSize (Pointer <TtfFont > font , int ptsize )
→ int
Set a font's size dynamically.
ttfSetFontSizeDpi (Pointer <TtfFont > font , int ptsize , int hdpi , int vdpi )
→ int
Set font size dynamically with target resolutions (in DPI).
ttfSetFontStyle (Pointer <TtfFont > font , int style )
→ void
Set a font's current style.
ttfSetFontWrappedAlign (Pointer <TtfFont > font , int align )
→ void
Set a font's current wrap alignment option.
ttfSizeText (Pointer <TtfFont > font , String ? text , Pointer <Int32 > w , Pointer <Int32 > h )
→ int
Calculate the dimensions of a rendered string of Latin1 text.
ttfSizeUnicode (Pointer <TtfFont > font , Pointer <Uint16 > text , Pointer <Int32 > w , Pointer <Int32 > h )
→ int
Calculate the dimensions of a rendered string of UCS-2 text.
ttfSizeUtf8 (Pointer <TtfFont > font , String ? text , Pointer <Int32 > w , Pointer <Int32 > h )
→ int
Calculate the dimensions of a rendered string of UTF-8 text.
ttfVersion (Pointer <SdlVersion > x )
→ void
const TTF_VERSION = (X) SDL_TTF_VERSION(X);
ttfWasInit ()
→ int
Check if SDL_ttf is initialized.
Typedefs
MixEffectDoneT
= Void Function(Int32 , Pointer <NativeType > )
MixEffectDoneTDart
= void Function(int , Pointer <NativeType > )
MixEffectFuncT
= Void Function(Int32 , Pointer <NativeType > , Int32 , Pointer <NativeType > )
MixEffectFuncTDart
= void Function(int , Pointer <NativeType > , int , Pointer <NativeType > )
PfnSdlCurrentBeginThread
= Pointer <NativeType > Function(Pointer <NativeType > )
PfnSdlCurrentBeginThreadDart
= Pointer <NativeType > Function(Pointer <NativeType > )
PfnSdlCurrentEndThread
= Void Function(Pointer <NativeType > )
PfnSdlCurrentEndThreadDart
= void Function(Pointer <NativeType > )
SdlAssertionHandler
= Int32 Function(Pointer <SdlAssertData > , Pointer <NativeType > )
SdlAssertionHandlerDart
= int Function(Pointer <SdlAssertData > , Pointer <NativeType > )
SdlAudioCallback
= Void Function(Pointer <NativeType > , Pointer <Uint8 > , Int32 )
SdlAudioCallbackDart
= void Function(Pointer <NativeType > , Pointer <Uint8 > , int )
SdlAudioFilter
= Void Function(Pointer <SdlAudioCvt > , Uint16 )
SdlAudioFilterDart
= void Function(Pointer <SdlAudioCvt > , int )
SdlBlit
= Int32 Function(Pointer <SdlSurface > , Pointer <SdlRect > , Pointer <SdlSurface > , Pointer <SdlRect > )
SdlBlitDart
= int Function(Pointer <SdlSurface > , Pointer <SdlRect > , Pointer <SdlSurface > , Pointer <SdlRect > )
SdlCallocFunc
= Pointer <NativeType > Function(Uint32 , Uint32 )
SdlCallocFuncDart
= Pointer <NativeType > Function(int , int )
SdlEventFilter
= Int32 Function(Pointer <NativeType > , Pointer <SdlEvent > )
SdlEventFilterDart
= int Function(Pointer <NativeType > , Pointer <SdlEvent > )
SdlFreeFunc
= Void Function(Pointer <NativeType > )
SdlFreeFuncDart
= void Function(Pointer <NativeType > )
SDLglproc
= Pointer <NativeFunction <Void Function() > >
SDLglprocDart
= void Function()
SdlHintCallback
= Void Function(Pointer <NativeType > , Pointer <Utf8 > , Pointer <Utf8 > , Pointer <Utf8 > )
SdlHintCallbackDart
= void Function(Pointer <NativeType > , Pointer <Utf8 > , Pointer <Utf8 > , Pointer <Utf8 > )
SdlHitTest
= Int32 Function(Pointer <SdlWindow > , Pointer <SdlPoint > , Pointer <NativeType > )
SdlHitTestDart
= int Function(Pointer <SdlWindow > , Pointer <SdlPoint > , Pointer <NativeType > )
SdlKernelMemoryBarrierFunc
= Void Function()
SdlKernelMemoryBarrierFuncDart
= void Function()
SdlLogOutputFunction
= Void Function(Pointer <NativeType > , Int32 , Int32 , Pointer <Utf8 > )
SdlLogOutputFunctionDart
= void Function(Pointer <NativeType > , int , int , Pointer <Utf8 > )
SdlMainFunc
= Int32 Function(Int32 , Pointer <Pointer <Int8 > > )
SdlMainFuncDart
= int Function(int , Pointer <Pointer <Int8 > > )
SdlMallocFunc
= Pointer <NativeType > Function(Uint32 )
SdlMallocFuncDart
= Pointer <NativeType > Function(int )
SdlReallocFunc
= Pointer <NativeType > Function(Pointer <NativeType > , Uint32 )
SdlReallocFuncDart
= Pointer <NativeType > Function(Pointer <NativeType > , int )
SdlThreadFunction
= Int32 Function(Pointer <NativeType > )
SdlThreadFunctionDart
= int Function(Pointer <NativeType > )
SdlTimerCallback
= Uint32 Function(Uint32 , Pointer <NativeType > )
SdlTimerCallbackDart
= int Function(int , Pointer <NativeType > )
SdlWindowsMessageHook
= Void Function(Pointer <NativeType > , Pointer <NativeType > , Uint32 , Uint64 , Int64 )
SdlWindowsMessageHookDart
= void Function(Pointer <NativeType > , Pointer <NativeType > , int , int , int )