Class Sdl
- Namespace
- Alis.Core.Graphic.Sdl2
- Assembly
- Alis.dll
The sdl class
public static class SdlInheritance
Inherited Members
Fields
AndroidExternalStorageRead
The sdl android external storage read
public const int AndroidExternalStorageRead = 1Field Value
AndroidExternalStorageWrite
The sdl android external storage write
public const int AndroidExternalStorageWrite = 2Field Value
AudioF32
The audio f32lsb
public const ushort AudioF32 = 33056Field Value
AudioF32Lsb
The audio f32lsb
public const ushort AudioF32Lsb = 33056Field Value
AudioF32Msb
The audio f32msb
public const ushort AudioF32Msb = 37152Field Value
AudioMaskBitSize
The sdl audio mask bit size
public const ushort AudioMaskBitSize = 255Field Value
AudioMaskDatatype
The sdl audio mask datatype
public const ushort AudioMaskDatatype = 256Field Value
AudioMaskEndian
The sdl audio mask endian
public const ushort AudioMaskEndian = 4096Field Value
AudioMaskSigned
The sdl audio mask signed
public const ushort AudioMaskSigned = 32768Field Value
AudioS16
The audio s16lsb
public const ushort AudioS16 = 32784Field Value
AudioS16Lsb
The audio s16lsb
public const ushort AudioS16Lsb = 32784Field Value
AudioS16Msb
The audio s16msb
public const ushort AudioS16Msb = 36880Field Value
AudioS32
The audio s32lsb
public const ushort AudioS32 = 32800Field Value
AudioS32Lsb
The audio s32lsb
public const ushort AudioS32Lsb = 32800Field Value
AudioS32Msb
The audio s32msb
public const ushort AudioS32Msb = 36896Field Value
AudioS8
The audio s8
public const ushort AudioS8 = 32776Field Value
AudioU16
The audio u16lsb
public const ushort AudioU16 = 16Field Value
AudioU16Lsb
The audio u16lsb
public const ushort AudioU16Lsb = 16Field Value
AudioU16Msb
The audio u16msb
public const ushort AudioU16Msb = 4112Field Value
AudioU8
The audio u8
public const ushort AudioU8 = 8Field Value
ButtonLeft
The sdl button left
public const uint ButtonLeft = 1Field Value
ButtonMiddle
The sdl button middle
public const uint ButtonMiddle = 2Field Value
ButtonRight
The sdl button right
public const uint ButtonRight = 3Field Value
ButtonX1
The sdl button x1
public const uint ButtonX1 = 4Field Value
ButtonX2
The sdl button x2
public const uint ButtonX2 = 5Field Value
Disable
The sdl disable
public const int Disable = 0Field Value
Enable
The sdl enable
public const int Enable = 1Field Value
GlAudioF32Sys
The audio f32msb
public static readonly ushort GlAudioF32SysField Value
GlAudioS16Sys
The audio s16msb
public static readonly ushort GlAudioS16SysField Value
GlAudioS32Sys
The audio s32msb
public static readonly ushort GlAudioS32SysField Value
GlAudioU16Sys
The audio u16msb
public static readonly ushort GlAudioU16SysField Value
GlButtonLMask
The sdl button left
public static readonly uint GlButtonLMaskField Value
GlButtonMMask
The sdl button middle
public static readonly uint GlButtonMMaskField Value
GlButtonRMask
The sdl button right
public static readonly uint GlButtonRMaskField Value
GlButtonX1Mask
The sdl button x1
public static readonly uint GlButtonX1MaskField Value
GlButtonX2Mask
The sdl button x2
public static readonly uint GlButtonX2MaskField Value
GlFormatXBgr1555
The sdl packed layout 1555
public static readonly uint GlFormatXBgr1555Field Value
GlFormatXBgr444
The sdl packed layout 4444
public static readonly uint GlFormatXBgr444Field Value
GlFormatXBgr888
The sdl packed layout 8888
public static readonly uint GlFormatXBgr888Field Value
GlFormatXRgb1555
The sdl packed layout 1555
public static readonly uint GlFormatXRgb1555Field Value
GlFormatXRgb444
The sdl packed layout 4444
public static readonly uint GlFormatXRgb444Field Value
GlFormatXRgb888
The sdl packed layout 8888
public static readonly uint GlFormatXRgb888Field Value
Ignore
The sdl ignore
public const int Ignore = 0Field Value
KScancodeMask
The sdl scancode mask
public const int KScancodeMask = 1073741824Field Value
MixMaxVolume
The sdl mix max volume
public const int MixMaxVolume = 128Field Value
PixelFormatABgr1555
The sdl packed layout 1555
public static readonly uint PixelFormatABgr1555Field Value
PixelFormatABgr4444
The sdl packed layout 4444
public static readonly uint PixelFormatABgr4444Field Value
PixelFormatABgr8888
The sdl packed layout 8888
public static readonly uint PixelFormatABgr8888Field Value
PixelFormatArgb1555
The sdl packed layout 1555
public static readonly uint PixelFormatArgb1555Field Value
PixelFormatArgb2101010
The sdl packed layout 2101010
public static readonly uint PixelFormatArgb2101010Field Value
PixelFormatArgb4444
The sdl packed layout 4444
public static readonly uint PixelFormatArgb4444Field Value
PixelFormatArgb8888
The sdl packed layout 8888
public static readonly uint PixelFormatArgb8888Field Value
PixelFormatB8888
The sdl packed layout 8888
public static readonly uint PixelFormatB8888Field Value
PixelFormatBGra4444
The sdl packed layout 4444
public static readonly uint PixelFormatBGra4444Field Value
PixelFormatBGra5551
The sdl packed layout 5551
public static readonly uint PixelFormatBGra5551Field Value
PixelFormatBGrx8888
The sdl packed layout 8888
public static readonly uint PixelFormatBGrx8888Field Value
PixelFormatBgr24
The sdl array order bgr
public static readonly uint PixelFormatBgr24Field Value
PixelFormatBgr444
The sdl pixel format x bgr 444
public static readonly uint PixelFormatBgr444Field Value
PixelFormatBgr555
The sdl pixel format xbgr1555
public static readonly uint PixelFormatBgr555Field Value
PixelFormatBgr565
The sdl packed layout 565
public static readonly uint PixelFormatBgr565Field Value
PixelFormatBgr888
The sdl pixel format x bgr 888
public static readonly uint PixelFormatBgr888Field Value
PixelFormatIndex1Lsb
The sdl bit map order 4321
public static readonly uint PixelFormatIndex1LsbField Value
PixelFormatIndex1Msb
The sdl bit map order 1234
public static readonly uint PixelFormatIndex1MsbField Value
PixelFormatIndex4Lsb
The sdl bit map order 4321
public static readonly uint PixelFormatIndex4LsbField Value
PixelFormatIndex4Msb
The sdl bit map order 1234
public static readonly uint PixelFormatIndex4MsbField Value
PixelFormatIndex8
The sdl pixel TypePixel index8
public static readonly uint PixelFormatIndex8Field Value
PixelFormatIy
The sdl define pixel four cc
public static readonly uint PixelFormatIyField Value
PixelFormatRgb24
The sdl array order rgb
public static readonly uint PixelFormatRgb24Field Value
PixelFormatRgb332
The sdl packed layout 332
public static readonly uint PixelFormatRgb332Field Value
PixelFormatRgb444
The sdl pixel format x rgb 444
public static readonly uint PixelFormatRgb444Field Value
PixelFormatRgb555
The sdl pixel format xrgb1555
public static readonly uint PixelFormatRgb555Field Value
PixelFormatRgb565
The sdl packed layout 565
public static readonly uint PixelFormatRgb565Field Value
PixelFormatRgb888
The sdl pixel format x rgb 888
public static readonly uint PixelFormatRgb888Field Value
PixelFormatRgbX8888
The sdl packed layout 8888
public static readonly uint PixelFormatRgbX8888Field Value
PixelFormatRgba4444
The sdl packed layout 4444
public static readonly uint PixelFormatRgba4444Field Value
PixelFormatRgba5551
The sdl packed layout 5551
public static readonly uint PixelFormatRgba5551Field Value
PixelFormatRgba8888
The sdl packed layout 8888
public static readonly uint PixelFormatRgba8888Field Value
PixelFormatUnknown
The sdl pixel format unknown
public static readonly uint PixelFormatUnknownField Value
PixelFormatYv12
The sdl define pixel four cc
public static readonly uint PixelFormatYv12Field Value
Query
The sdl query
public const int Query = -1Field Value
TextEditingEventTextSize
The sdl text editing event text size
public const int TextEditingEventTextSize = 32Field Value
TextInputEventTextSize
The sdl text input event text size
public const int TextInputEventTextSize = 32Field Value
Methods
AddEventWatch(SdlEventFilter, IntPtr)
Adds the event watch using the specified filter
public static void AddEventWatch(SdlEventFilter filter, IntPtr userdata)Parameters
filterSdlEventFilter-
The filter
userdataIntPtr-
The userdata
BindTexture(IntPtr, out float, out float)
Gls the bind texture using the specified texture
public static int BindTexture(IntPtr texture, out float texW, out float texH)Parameters
Returns
- int
-
The int
BlitSurface(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Blit the surface using the specified src
public static int BlitSurface(IntPtr src, ref RectangleI srcRect, IntPtr dst, ref RectangleI dstRect)Parameters
srcIntPtr-
The src
srcRectRectangleI-
The src rect
dstIntPtr-
The dst
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
BlitSurface(IntPtr, IntPtr, IntPtr, ref RectangleI)
Blit the surface using the specified src
public static int BlitSurface(IntPtr src, IntPtr srcRect, IntPtr dst, ref RectangleI dstRect)Parameters
srcIntPtr-
The src
srcRectIntPtr-
The src rect
dstIntPtr-
The dst
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
BlitSurface(IntPtr, ref RectangleI, IntPtr, IntPtr)
Blit the surface using the specified src
public static int BlitSurface(IntPtr src, ref RectangleI srcRect, IntPtr dst, IntPtr dstRect)Parameters
srcIntPtr-
The src
srcRectRectangleI-
The src rect
dstIntPtr-
The dst
dstRectIntPtr-
The dst rect
Returns
- int
-
The int
BlitSurface(IntPtr, IntPtr, IntPtr, IntPtr)
Blit the surface using the specified src
public static int BlitSurface(IntPtr src, IntPtr srcRect, IntPtr dst, IntPtr dstRect)Parameters
Returns
- int
-
The int
Button(uint)
Sdl the button using the specified x
public static uint Button(uint x)Parameters
xuint-
The
Returns
- uint
-
The uint
CalculateGammaRamp(float, ushort[])
Calculates the gamma ramp using the specified gamma
public static void CalculateGammaRamp(float gamma, ushort[] ramp)Parameters
CaptureMouse(bool)
Captures the mouse using the specified enabled
public static int CaptureMouse(bool enabled)Parameters
enabledbool-
The enabled
Returns
- int
-
The int
ClearHints()
Clears the hints
public static void ClearHints()CloseAudioDevice(uint)
Closes the audio device using the specified dev
public static void CloseAudioDevice(uint dev)Parameters
devuint-
The dev
ComposeCustomBlendMode(BlendFactor, BlendFactor, BlendOperation, BlendFactor, BlendFactor, BlendOperation)
Composes the custom blend mode using the specified src color factor
public static BlendModes ComposeCustomBlendMode(BlendFactor srcColorFactor, BlendFactor dstColorFactor, BlendOperation colorOperation, BlendFactor srcAlphaFactor, BlendFactor dstAlphaFactor, BlendOperation alphaOperation)Parameters
srcColorFactorBlendFactor-
The src color factor
dstColorFactorBlendFactor-
The dst color factor
colorOperationBlendOperation-
The color operation
srcAlphaFactorBlendFactor-
The src alpha factor
dstAlphaFactorBlendFactor-
The dst alpha factor
alphaOperationBlendOperation-
The alpha operation
Returns
- BlendModes
-
The sdl blend mode
ConvertSurface(IntPtr, IntPtr, uint)
Converts the surface using the specified src
public static IntPtr ConvertSurface(IntPtr src, IntPtr fmt, uint flags)Parameters
Returns
- IntPtr
-
The int ptr
CreateColorCursor(IntPtr, int, int)
Creates the color cursor using the specified surface
public static IntPtr CreateColorCursor(IntPtr surface, int hotX, int hotY)Parameters
Returns
- IntPtr
-
The int ptr
CreateContext(IntPtr)
Gls the create context using the specified window
public static IntPtr CreateContext(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- IntPtr
-
The int ptr
CreateCursor(IntPtr, IntPtr, int, int, int, int)
Creates the cursor using the specified data
public static IntPtr CreateCursor(IntPtr data, IntPtr mask, int w, int h, int hotX, int hotY)Parameters
Returns
- IntPtr
-
The int ptr
CreateRenderer(IntPtr, int, Renderers)
Creates the renderer using the specified window
public static IntPtr CreateRenderer(IntPtr window, int index, Renderers flags)Parameters
Returns
- IntPtr
-
The int ptr
CreateRgbSurfaceWithFormat(uint, int, int, int, uint)
Creates the rgb surface with format using the specified flags
public static IntPtr CreateRgbSurfaceWithFormat(uint flags, int width, int height, int depth, uint format)Parameters
flagsuint-
The flags
widthint-
The width
heightint-
The height
depthint-
The depth
formatuint-
The format
Returns
- IntPtr
-
The int ptr
CreateSoftwareRenderer(IntPtr)
Creates the software renderer using the specified surface
public static IntPtr CreateSoftwareRenderer(IntPtr surface)Parameters
surfaceIntPtr-
The surface
Returns
- IntPtr
-
The int ptr
CreateSystemCursor(SystemCursor)
Creates the system cursor using the specified id
public static IntPtr CreateSystemCursor(SystemCursor id)Parameters
idSystemCursor-
The id
Returns
- IntPtr
-
The int ptr
CreateTexture(IntPtr, uint, int, int, int)
Creates the texture using the specified renderer
public static IntPtr CreateTexture(IntPtr renderer, uint format, int access, int w, int h)Parameters
Returns
- IntPtr
-
The int ptr
CreateTextureFromSurface(IntPtr, IntPtr)
Creates the texture from surface using the specified renderer
public static IntPtr CreateTextureFromSurface(IntPtr renderer, IntPtr surface)Parameters
Returns
- IntPtr
-
The int ptr
CreateWindow(string, int, int, int, int, WindowSettings)
Sdl the create window using the specified title
public static IntPtr CreateWindow(string title, int x, int y, int w, int h, WindowSettings flags)Parameters
Returns
- IntPtr
-
The int ptr
CreateWindowAndRenderer(int, int, WindowSettings, out IntPtr, out IntPtr)
Sdl the create window and renderer using the specified width
public static int CreateWindowAndRenderer(int width, int height, WindowSettings windowFlags, out IntPtr window, out IntPtr renderer)Parameters
widthint-
The width
heightint-
The height
windowFlagsWindowSettings-
The window flags
windowIntPtr-
The window
rendererIntPtr-
The renderer
Returns
- int
-
The int
DelEventWatch(SdlEventFilter, IntPtr)
Del the event watch using the specified filter
public static void DelEventWatch(SdlEventFilter filter, IntPtr userdata)Parameters
filterSdlEventFilter-
The filter
userdataIntPtr-
The userdata
DeleteContext(IntPtr)
Gls the delete context using the specified context
public static void DeleteContext(IntPtr context)Parameters
contextIntPtr-
The context
DestroyRenderer(IntPtr)
Destroys the renderer using the specified renderer
public static void DestroyRenderer(IntPtr renderer)Parameters
rendererIntPtr-
The renderer
DestroyTexture(IntPtr)
Destroys the texture using the specified texture
public static void DestroyTexture(IntPtr texture)Parameters
textureIntPtr-
The texture
DestroyWindow(IntPtr)
Sdl the destroy window using the specified window
public static void DestroyWindow(IntPtr window)Parameters
windowIntPtr-
The window
ExtensionSupported(string)
Sdl the gl extension supported using the specified extension
public static bool ExtensionSupported(string extension)Parameters
extensionstring-
The extension
Returns
- bool
-
The sdl bool
FillRect(IntPtr, ref RectangleI, uint)
Fills the rect using the specified dst
public static int FillRect(IntPtr dst, ref RectangleI rect, uint color)Parameters
dstIntPtr-
The dst
rectRectangleI-
The rect
coloruint-
The color
Returns
- int
-
The int
FillRect(IntPtr, IntPtr, uint)
Fills the rect using the specified dst
public static int FillRect(IntPtr dst, IntPtr rect, uint color)Parameters
Returns
- int
-
The int
FillRects(IntPtr, RectangleI[], int, uint)
Fills the rects using the specified dst
public static int FillRects(IntPtr dst, RectangleI[] rects, int count, uint color)Parameters
dstIntPtr-
The dst
rectsRectangleI[]-
The rects
countint-
The count
coloruint-
The color
Returns
- int
-
The int
FlushEvent(EventType)
Flushes the event using the specified type
public static void FlushEvent(EventType type)Parameters
typeEventType-
The type
FormatEnumToMasks(uint, out int, out uint, out uint, out uint, out uint)
Pixels the format enum to masks using the specified format
public static bool FormatEnumToMasks(uint format, out int bpp, out uint rMask, out uint gMask, out uint bMask, out uint aMask)Parameters
formatuint-
The format
bppint-
The bpp
rMaskuint-
The mask
gMaskuint-
The mask
bMaskuint-
The mask
aMaskuint-
The mask
Returns
- bool
-
The sdl bool
Fourcc(byte, byte, byte, byte)
Sdl the fourcc using the specified a
public static uint Fourcc(byte a, byte b, byte c, byte d)Parameters
Returns
- uint
-
The uint
FreeCursor(IntPtr)
Frees the cursor using the specified cursor
public static void FreeCursor(IntPtr cursor)Parameters
cursorIntPtr-
The cursor
GameControllerAddMapping(string)
Sdl the game controller add mapping using the specified mapping string
public static int GameControllerAddMapping(string mappingString)Parameters
mappingStringstring-
The mapping string
Returns
- int
-
The result
GameControllerAddMappingsFromFile(string)
Sdl the game controller add mappings from file using the specified file
public static int GameControllerAddMappingsFromFile(string file)Parameters
filestring-
The file
Returns
- int
-
The int
GameControllerClose(IntPtr)
Games the controller close using the specified game controller
public static void GameControllerClose(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
GameControllerEventState(int)
Games the controller event state using the specified state
public static int GameControllerEventState(int state)Parameters
stateint-
The state
Returns
- int
-
The int
GameControllerFromInstanceId(int)
Internals the sdl game controller from instance id using the specified joy id
public static IntPtr GameControllerFromInstanceId(int joyId)Parameters
joyIdint-
The joy id
Returns
- IntPtr
-
The int ptr
GameControllerGetAttached(IntPtr)
Games the controller get attached using the specified game controller
public static bool GameControllerGetAttached(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- bool
-
The sdl bool
GameControllerGetAxis(IntPtr, GameControllerAxis)
Games the controller get axis using the specified game controller
public static short GameControllerGetAxis(IntPtr gameController, GameControllerAxis axis)Parameters
gameControllerIntPtr-
The game controller
axisGameControllerAxis-
The axis
Returns
- short
-
The short
GameControllerGetAxisFromString(string)
Sdl the game controller get axis from string using the specified pch string
public static GameControllerAxis GameControllerGetAxisFromString(string pchString)Parameters
pchStringstring-
The pch string
Returns
- GameControllerAxis
-
The sdl game controller axis
GameControllerGetBindForAxis(IntPtr, GameControllerAxis)
Sdl the game controller get bind for axis using the specified game controller
public static GameControllerButtonBind GameControllerGetBindForAxis(IntPtr gameController, GameControllerAxis axis)Parameters
gameControllerIntPtr-
The game controller
axisGameControllerAxis-
The axis
Returns
- GameControllerButtonBind
-
The result
GameControllerGetBindForButton(IntPtr, GameControllerButton)
Sdl the game controller get bind for button using the specified game controller
public static GameControllerButtonBind GameControllerGetBindForButton(IntPtr gameController, GameControllerButton button)Parameters
gameControllerIntPtr-
The game controller
buttonGameControllerButton-
The button
Returns
- GameControllerButtonBind
-
The result
GameControllerGetButton(IntPtr, GameControllerButton)
Games the controller get button using the specified game controller
public static byte GameControllerGetButton(IntPtr gameController, GameControllerButton button)Parameters
gameControllerIntPtr-
The game controller
buttonGameControllerButton-
The button
Returns
- byte
-
The byte
GameControllerGetButtonFromString(string)
Sdl the game controller get button from string using the specified pch string
public static GameControllerButton GameControllerGetButtonFromString(string pchString)Parameters
pchStringstring-
The pch string
Returns
- GameControllerButton
-
The sdl game controller button
GameControllerGetJoystick(IntPtr)
Games the controller get joystick using the specified game controller
public static IntPtr GameControllerGetJoystick(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- IntPtr
-
The int ptr
GameControllerGetProduct(IntPtr)
Games the controller get product using the specified game controller
public static ushort GameControllerGetProduct(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- ushort
-
The ushort
GameControllerGetProductVersion(IntPtr)
Games the controller get product version using the specified game controller
public static ushort GameControllerGetProductVersion(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- ushort
-
The ushort
GameControllerGetStringForAxis(GameControllerAxis)
Sdl the game controller get string for axis using the specified axis
public static string GameControllerGetStringForAxis(GameControllerAxis axis)Parameters
axisGameControllerAxis-
The axis
Returns
- string
-
The string
GameControllerGetStringForButton(GameControllerButton)
Sdl the game controller get string for button using the specified button
public static string GameControllerGetStringForButton(GameControllerButton button)Parameters
buttonGameControllerButton-
The button
Returns
- string
-
The string
GameControllerGetVendor(IntPtr)
Games the controller get vendor using the specified game controller
public static ushort GameControllerGetVendor(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- ushort
-
The ushort
GameControllerMapping(IntPtr)
Sdl the game controller mapping using the specified game controller
public static string GameControllerMapping(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- string
-
The string
GameControllerMappingForDeviceIndex(int)
Sdl the game controller mapping for device index using the specified joystick index
public static string GameControllerMappingForDeviceIndex(int joystickIndex)Parameters
joystickIndexint-
The joystick index
Returns
- string
-
The string
GameControllerMappingForGuid(Guid)
Sdl the game controller mapping for guid using the specified guid
public static string GameControllerMappingForGuid(Guid guid)Parameters
guidGuid-
The guid
Returns
- string
-
The string
GameControllerMappingForIndex(int)
Sdl the game controller mapping for index using the specified mapping index
public static string GameControllerMappingForIndex(int mappingIndex)Parameters
mappingIndexint-
The mapping index
Returns
- string
-
The string
GameControllerName(IntPtr)
Sdl the game controller name using the specified game controller
public static string GameControllerName(IntPtr gameController)Parameters
gameControllerIntPtr-
The game controller
Returns
- string
-
The string
GameControllerNameForIndex(int)
Sdl the game controller name for index using the specified joystick index
public static string GameControllerNameForIndex(int joystickIndex)Parameters
joystickIndexint-
The joystick index
Returns
- string
-
The string
GameControllerNumMappings()
Games the controller num mappings
public static int GameControllerNumMappings()Returns
- int
-
The int
GameControllerOpen(int)
Games the controller open using the specified joystick index
public static IntPtr GameControllerOpen(int joystickIndex)Parameters
joystickIndexint-
The joystick index
Returns
- IntPtr
-
The int ptr
GameControllerRumble(IntPtr, ushort, ushort, uint)
Games the controller rumble using the specified game controller
public static int GameControllerRumble(IntPtr gameController, ushort lowFrequencyRumble, ushort highFrequencyRumble, uint durationMs)Parameters
gameControllerIntPtr-
The game controller
lowFrequencyRumbleushort-
The low frequency rumble
highFrequencyRumbleushort-
The high frequency rumble
durationMsuint-
The duration ms
Returns
- int
-
The int
GameControllerUpdate()
Games the controller update
public static void GameControllerUpdate()GetAttribute(Attr, out int)
Gls the get attribute using the specified attr
public static int GetAttribute(Attr attr, out int value)Parameters
Returns
- int
-
The int
GetAudioDeviceName(int, int)
Sdl the get audio device name using the specified index
public static string GetAudioDeviceName(int index, int isCapture)Parameters
Returns
- string
-
The string
GetAudioDeviceStatus(uint)
Gets the audio device status using the specified dev
public static AudioStatus GetAudioDeviceStatus(uint dev)Parameters
devuint-
The dev
Returns
- AudioStatus
-
The sdl audio status
GetAudioDriver(int)
Sdl the get audio driver using the specified index
public static string GetAudioDriver(int index)Parameters
indexint-
The index
Returns
- string
-
The string
GetClipRect(IntPtr, out RectangleI)
Gets the clip rect using the specified surface
public static void GetClipRect(IntPtr surface, out RectangleI rect)Parameters
surfaceIntPtr-
The surface
rectRectangleI-
The rect
GetClipboardText()
Sdl the get clipboard text
public static string GetClipboardText()Returns
- string
-
The string
GetClosestDisplayMode(int, ref DisplayMode, out DisplayMode)
Sdl the get closest display mode using the specified display index
public static IntPtr GetClosestDisplayMode(int displayIndex, ref DisplayMode mode, out DisplayMode closest)Parameters
displayIndexint-
The display index
modeDisplayMode-
The mode
closestDisplayMode-
The closest
Returns
- IntPtr
-
The int ptr
GetColorKey(IntPtr, out uint)
Gets the color key using the specified surface
public static int GetColorKey(IntPtr surface, out uint key)Parameters
Returns
- int
-
The int
GetCurrentAudioDriver()
Sdl the get current audio driver
public static string GetCurrentAudioDriver()Returns
- string
-
The string
GetCurrentContext()
Gls the get current context
public static IntPtr GetCurrentContext()Returns
- IntPtr
-
The int ptr
GetCurrentDisplayMode(int, out DisplayMode)
Sdl the get current display mode using the specified display index
public static int GetCurrentDisplayMode(int displayIndex, out DisplayMode mode)Parameters
displayIndexint-
The display index
modeDisplayMode-
The mode
Returns
- int
-
The int
GetCurrentVideoDriver()
Sdl the get current video driver
public static string GetCurrentVideoDriver()Returns
- string
-
The string
GetCurrentWindow()
Gls the get current window
public static IntPtr GetCurrentWindow()Returns
- IntPtr
-
The int ptr
GetCursor()
Gets the cursor
public static IntPtr GetCursor()Returns
- IntPtr
-
The int ptr
GetDesktopDisplayMode(int, out DisplayMode)
Gets the desktop display mode using the specified display index
public static int GetDesktopDisplayMode(int displayIndex, out DisplayMode mode)Parameters
displayIndexint-
The display index
modeDisplayMode-
The mode
Returns
- int
-
The int
GetDisplayBounds(int, out RectangleI)
Gets the display bounds using the specified display index
public static int GetDisplayBounds(int displayIndex, out RectangleI rect)Parameters
displayIndexint-
The display index
rectRectangleI-
The rect
Returns
- int
-
The int
GetDisplayDpi(int, out float, out float, out float)
Gets the display dpi using the specified display index
public static int GetDisplayDpi(int displayIndex, out float dDpi, out float hDpi, out float vDpi)Parameters
Returns
- int
-
The int
GetDisplayMode(int, int, out DisplayMode)
Gets the display mode using the specified display index
public static int GetDisplayMode(int displayIndex, int modeIndex, out DisplayMode mode)Parameters
displayIndexint-
The display index
modeIndexint-
The mode index
modeDisplayMode-
The mode
Returns
- int
-
The int
GetDisplayName(int)
Sdl the get display name using the specified index
public static string GetDisplayName(int index)Parameters
indexint-
The index
Returns
- string
-
The string
GetDisplayUsableBounds(int, out RectangleI)
Gets the display usable bounds using the specified display index
public static int GetDisplayUsableBounds(int displayIndex, out RectangleI rect)Parameters
displayIndexint-
The display index
rectRectangleI-
The rect
Returns
- int
-
The int
GetDrawableSize(IntPtr, out int, out int)
Gls the get drawable size using the specified window
public static void GetDrawableSize(IntPtr window, out int w, out int h)Parameters
GetError()
Sdl the get error
public static string GetError()Returns
- string
-
The string
GetEventState(EventType)
Sdl the get event state using the specified type
public static byte GetEventState(EventType type)Parameters
typeEventType-
The type
Returns
- byte
-
The byte
GetGlCompiledVersion()
The sdl patch level
public static int GetGlCompiledVersion()Returns
GetGlobalMouseStateOutXAndOutY(out int, out int)
Gets the global mouse state using the specified x
public static uint GetGlobalMouseStateOutXAndOutY(out int x, out int y)Parameters
Returns
- uint
-
The uint
GetGlobalMouseStateXAndY(IntPtr, IntPtr)
Gets the global mouse state using the specified x
public static uint GetGlobalMouseStateXAndY(IntPtr x, IntPtr y)Parameters
Returns
- uint
-
The uint
GetGrabbedWindow()
Gets the grabbed window
public static IntPtr GetGrabbedWindow()Returns
- IntPtr
-
The int ptr
GetHint(string)
Sdl the get hint using the specified name
public static string GetHint(string name)Parameters
namestring-
The name
Returns
- string
-
The string
GetHintBoolean(string, bool)
Sdl the get hint boolean using the specified name
public static bool GetHintBoolean(string name, bool defaultValue)Parameters
Returns
- bool
-
The sdl bool
GetKeyFromName(string)
Sdl the get key from name using the specified name
public static KeyCodes GetKeyFromName(string name)Parameters
namestring-
The name
Returns
- KeyCodes
-
The sdl keycode
GetKeyFromScancode(SdlScancode)
Gets the key from scancode using the specified scancode
public static KeyCodes GetKeyFromScancode(SdlScancode scancode)Parameters
scancodeSdlScancode-
The scancode
Returns
- KeyCodes
-
The sdl keycode
GetKeyboardFocus()
Gets the keyboard focus
public static IntPtr GetKeyboardFocus()Returns
- IntPtr
-
The int ptr
GetKeyboardState(out int)
Gets the keyboard state using the specified num keys
public static IntPtr GetKeyboardState(out int numKeys)Parameters
numKeysint-
The num keys
Returns
- IntPtr
-
The int ptr
GetModState()
Gets the mod state
public static KeyMods GetModState()Returns
- KeyMods
-
The sdl key mod
GetMouseFocus()
Gets the mouse focus
public static IntPtr GetMouseFocus()Returns
- IntPtr
-
The int ptr
GetMouseStateOutXAndY(out int, out int)
Gets the mouse state using the specified x
public static uint GetMouseStateOutXAndY(out int x, out int y)Parameters
Returns
- uint
-
The uint
GetMouseStateToXAndY(IntPtr, IntPtr)
Gets the mouse state using the specified x
public static uint GetMouseStateToXAndY(IntPtr x, IntPtr y)Parameters
Returns
- uint
-
The uint
GetMouseStateXAndYOut(IntPtr, out int)
Gets the mouse state using the specified x
public static uint GetMouseStateXAndYOut(IntPtr x, out int y)Parameters
Returns
- uint
-
The uint
GetMouseStateXOutAndY(out int, IntPtr)
Gets the mouse state using the specified x
public static uint GetMouseStateXOutAndY(out int x, IntPtr y)Parameters
Returns
- uint
-
The uint
GetNumAudioDevices(int)
Gets the num audio devices using the specified is capture
public static int GetNumAudioDevices(int isCapture)Parameters
isCaptureint-
The is capture
Returns
- int
-
The int
GetNumAudioDrivers()
Gets the num audio drivers
public static int GetNumAudioDrivers()Returns
- int
-
The int
GetNumDisplayModes(int)
Gets the num display modes using the specified display index
public static int GetNumDisplayModes(int displayIndex)Parameters
displayIndexint-
The display index
Returns
- int
-
The int
GetNumRenderDrivers()
Gets the num render drivers
public static int GetNumRenderDrivers()Returns
- int
-
The int
GetNumTouchFingers(long)
Gets the num touch fingers using the specified touch id
public static int GetNumTouchFingers(long touchId)Parameters
touchIdlong-
The touch id
Returns
- int
-
The int
GetNumVideoDisplays()
Gets the num video displays
public static int GetNumVideoDisplays()Returns
- int
-
The int
GetNumVideoDrivers()
Gets the num video drivers
public static int GetNumVideoDrivers()Returns
- int
-
The int
GetPerformanceCounter()
Gets the performance counter
public static ulong GetPerformanceCounter()Returns
- ulong
-
The ulong
GetPerformanceFrequency()
Internals the sdl get performance frequency
public static ulong GetPerformanceFrequency()Returns
- ulong
-
The ulong
GetPixelFormatName(uint)
Sdl the get pixel format name using the specified format
public static string GetPixelFormatName(uint format)Parameters
formatuint-
The format
Returns
- string
-
The string
GetProcAddress(string)
Sdl the gl get proc address using the specified proc
public static IntPtr GetProcAddress(string proc)Parameters
procstring-
The proc
Returns
- IntPtr
-
The int ptr
GetRelativeMouseMode()
Gets the relative mouse mode
public static bool GetRelativeMouseMode()Returns
- bool
-
The sdl bool
GetRelativeMouseState(out int, out int)
Gets the relative mouse state using the specified x
public static uint GetRelativeMouseState(out int x, out int y)Parameters
Returns
- uint
-
The uint
GetRenderDrawBlendMode(IntPtr, out BlendModes)
Gets the render draw blend mode using the specified renderer
public static int GetRenderDrawBlendMode(IntPtr renderer, out BlendModes blendMode)Parameters
rendererIntPtr-
The renderer
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
GetRenderDrawColor(IntPtr, out byte, out byte, out byte, out byte)
Gets the render draw color using the specified renderer
public static int GetRenderDrawColor(IntPtr renderer, out byte r, out byte g, out byte b, out byte a)Parameters
Returns
- int
-
The int
GetRenderDriverInfo(int, out RendererInfo)
Gets the render driver info using the specified index
public static int GetRenderDriverInfo(int index, out RendererInfo info)Parameters
indexint-
The index
infoRendererInfo-
The info
Returns
- int
-
The int
GetRenderer(IntPtr)
Gets the renderer using the specified window
public static IntPtr GetRenderer(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- IntPtr
-
The int ptr
GetRendererInfo(IntPtr, out RendererInfo)
Gets the renderer info using the specified renderer
public static int GetRendererInfo(IntPtr renderer, out RendererInfo info)Parameters
rendererIntPtr-
The renderer
infoRendererInfo-
The info
Returns
- int
-
The int
GetRendererOutputSize(IntPtr, out int, out int)
Gets the renderer output size using the specified renderer
public static int GetRendererOutputSize(IntPtr renderer, out int w, out int h)Parameters
Returns
- int
-
The int
GetScancodeFromKey(KeyCodes)
Gets the scancode from key using the specified key
public static SdlScancode GetScancodeFromKey(KeyCodes key)Parameters
keyKeyCodes-
The key
Returns
- SdlScancode
-
The sdl scancode
GetScancodeFromName(string)
Sdl the get scancode from name using the specified name
public static SdlScancode GetScancodeFromName(string name)Parameters
namestring-
The name
Returns
- SdlScancode
-
The sdl scancode
GetScancodeName(SdlScancode)
Sdl the get scancode name using the specified scancode
public static string GetScancodeName(SdlScancode scancode)Parameters
scancodeSdlScancode-
The scancode
Returns
- string
-
The string
GetSurfaceAlphaMod(IntPtr, out byte)
Gets the surface alpha mod using the specified surface
public static int GetSurfaceAlphaMod(IntPtr surface, out byte alpha)Parameters
Returns
- int
-
The int
GetSurfaceBlendMode(IntPtr, out BlendModes)
Gets the surface blend mode using the specified surface
public static int GetSurfaceBlendMode(IntPtr surface, out BlendModes blendMode)Parameters
surfaceIntPtr-
The surface
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
GetSurfaceColorMod(IntPtr, out byte, out byte, out byte)
Gets the surface color mod using the specified surface
public static int GetSurfaceColorMod(IntPtr surface, out byte r, out byte g, out byte b)Parameters
Returns
- int
-
The int
GetSwapInterval()
Gls the get swap interval
public static int GetSwapInterval()Returns
- int
-
The int
GetTextureAlphaMod(IntPtr, out byte)
Gets the texture alpha mod using the specified texture
public static int GetTextureAlphaMod(IntPtr texture, out byte alpha)Parameters
Returns
- int
-
The int
GetTextureBlendMode(IntPtr, out BlendModes)
Gets the texture blend mode using the specified texture
public static int GetTextureBlendMode(IntPtr texture, out BlendModes blendMode)Parameters
textureIntPtr-
The texture
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
GetTextureColorMod(IntPtr, out byte, out byte, out byte)
Gets the texture color mod using the specified texture
public static int GetTextureColorMod(IntPtr texture, out byte r, out byte g, out byte b)Parameters
Returns
- int
-
The int
GetTouchDevice(int)
Gets the touch device using the specified index
public static long GetTouchDevice(int index)Parameters
indexint-
The index
Returns
- long
-
The long
GetTouchDeviceType(long)
Gets the touch device type using the specified touch id
public static TouchDeviceType GetTouchDeviceType(long touchId)Parameters
touchIdlong-
The touch id
Returns
- TouchDeviceType
-
The sdl touch device type
GetTouchFinger(long, int)
Gets the touch finger using the specified touch id
public static IntPtr GetTouchFinger(long touchId, int index)Parameters
Returns
- IntPtr
-
The int ptr
GetVersion()
Sdl the get version using the specified ver
public static Version GetVersion()Returns
GetVideoDriver(int)
Sdl the get video driver using the specified index
public static string GetVideoDriver(int index)Parameters
indexint-
The index
Returns
- string
-
The string
GetWindowBordersSize(IntPtr, out int, out int, out int, out int)
Gets the window borders size using the specified window
public static int GetWindowBordersSize(IntPtr window, out int top, out int left, out int bottom, out int right)Parameters
windowIntPtr-
The window
topint-
The top
leftint-
The left
bottomint-
The bottom
rightint-
The right
Returns
- int
-
The int
GetWindowBrightness(IntPtr)
Gets the window brightness using the specified window
public static float GetWindowBrightness(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- float
-
The float
GetWindowData(IntPtr, string)
Sdl the get window data using the specified window
public static IntPtr GetWindowData(IntPtr window, string name)Parameters
Returns
- IntPtr
-
The int ptr
GetWindowDisplayIndex(IntPtr)
Gets the window display index using the specified window
public static int GetWindowDisplayIndex(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- int
-
The int
GetWindowDisplayMode(IntPtr, out DisplayMode)
Gets the window display mode using the specified window
public static int GetWindowDisplayMode(IntPtr window, out DisplayMode mode)Parameters
windowIntPtr-
The window
modeDisplayMode-
The mode
Returns
- int
-
The int
GetWindowFlags(IntPtr)
Gets the window flags using the specified window
public static uint GetWindowFlags(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- uint
-
The uint
GetWindowFromId(uint)
Gets the window from id using the specified id
public static IntPtr GetWindowFromId(uint id)Parameters
iduint-
The id
Returns
- IntPtr
-
The int ptr
GetWindowGammaRamp(IntPtr, ushort[], ushort[], ushort[])
Gets the window gamma ramp using the specified window
public static int GetWindowGammaRamp(IntPtr window, ushort[] red, ushort[] green, ushort[] blue)Parameters
Returns
- int
-
The int
GetWindowGrab(IntPtr)
Gets the window grab using the specified window
public static bool GetWindowGrab(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- bool
-
The sdl bool
GetWindowId(IntPtr)
Gets the window id using the specified window
public static uint GetWindowId(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- uint
-
The uint
GetWindowMaximumSize(IntPtr, out int, out int)
Gets the window maximum size using the specified window
public static void GetWindowMaximumSize(IntPtr window, out int maxW, out int maxH)Parameters
GetWindowMinimumSize(IntPtr, out int, out int)
Gets the window minimum size using the specified window
public static void GetWindowMinimumSize(IntPtr window, out int minW, out int minH)Parameters
GetWindowOpacity(IntPtr, out float)
Gets the window opacity using the specified window
public static int GetWindowOpacity(IntPtr window, out float outOpacity)Parameters
Returns
- int
-
The int
GetWindowPixelFormat(IntPtr)
Gets the window pixel format using the specified window
public static uint GetWindowPixelFormat(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- uint
-
The uint
GetWindowPosition(IntPtr, out int, out int)
Gets the window position using the specified window
public static void GetWindowPosition(IntPtr window, out int x, out int y)Parameters
GetWindowSize(IntPtr)
simple
public static Vector2 GetWindowSize(IntPtr window)Parameters
windowIntPtr
Returns
GetWindowSurface(IntPtr)
Gets the window surface using the specified window
public static IntPtr GetWindowSurface(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- IntPtr
-
The int ptr
GetWindowTitle(IntPtr)
Sdl the get window title using the specified window
public static string GetWindowTitle(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- string
-
The string
HasClipboardText()
Has the clipboard text
public static bool HasClipboardText()Returns
- bool
-
The sdl bool
HasColorKey(IntPtr)
Has the color key using the specified surface
public static bool HasColorKey(IntPtr surface)Parameters
surfaceIntPtr-
The surface
Returns
- bool
-
The sdl bool
HasEvent(EventType)
Has the event using the specified type
public static bool HasEvent(EventType type)Parameters
typeEventType-
The type
Returns
- bool
-
The sdl bool
HasEvents(EventType, EventType)
Has the events using the specified min type
public static bool HasEvents(EventType minType, EventType maxType)Parameters
Returns
- bool
-
The sdl bool
HasScreenKeyboardSupport()
Has the screen keyboard support
public static bool HasScreenKeyboardSupport()Returns
- bool
-
The sdl bool
HideWindow(IntPtr)
Hides the window using the specified window
public static void HideWindow(IntPtr window)Parameters
windowIntPtr-
The window
Init(InitSettings)
Sdl the init using the specified flags
public static int Init(InitSettings flags)Parameters
flagsInitSettings-
The flags
Returns
- int
-
The int
IsGameController(int)
Is the game controller using the specified joystick index
public static bool IsGameController(int joystickIndex)Parameters
joystickIndexint-
The joystick index
Returns
- bool
-
The sdl bool
IsScreenKeyboardShown(IntPtr)
Is the screen keyboard shown using the specified window
public static bool IsScreenKeyboardShown(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- bool
-
The sdl bool
IsTextInputActive()
Is the text input active
public static bool IsTextInputActive()Returns
- bool
-
The sdl bool
JoystickClose(IntPtr)
Joysticks the close using the specified joystick
public static void JoystickClose(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
JoystickCurrentPowerLevel(IntPtr)
Joysticks the current power level using the specified joystick
public static JoystickPowerLevel JoystickCurrentPowerLevel(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- JoystickPowerLevel
-
The sdl joystick power level
JoystickEventState(int)
Joysticks the event state using the specified state
public static int JoystickEventState(int state)Parameters
stateint-
The state
Returns
- int
-
The int
JoystickFromInstanceId(int)
Joysticks the from instance id using the specified instance id
public static IntPtr JoystickFromInstanceId(int instanceId)Parameters
instanceIdint-
The instance id
Returns
- IntPtr
-
The int ptr
JoystickGetAttached(IntPtr)
Joysticks the get attached using the specified joystick
public static bool JoystickGetAttached(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- bool
-
The sdl bool
JoystickGetAxis(IntPtr, int)
Joysticks the get axis using the specified joystick
public static short JoystickGetAxis(IntPtr joystick, int axis)Parameters
Returns
- short
-
The short
JoystickGetAxisInitialState(IntPtr, int, out ushort)
Joysticks the get axis initial state using the specified joystick
public static bool JoystickGetAxisInitialState(IntPtr joystick, int axis, out ushort state)Parameters
Returns
- bool
-
The sdl bool
JoystickGetBall(IntPtr, int, out int, out int)
Joysticks the get ball using the specified joystick
public static int JoystickGetBall(IntPtr joystick, int ball, out int dx, out int dy)Parameters
Returns
- int
-
The int
JoystickGetButton(IntPtr, int)
Joysticks the get button using the specified joystick
public static byte JoystickGetButton(IntPtr joystick, int button)Parameters
Returns
- byte
-
The byte
JoystickGetDeviceGuid(int)
Joysticks the get device guid using the specified device index
public static Guid JoystickGetDeviceGuid(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- Guid
-
The guid
JoystickGetDeviceInstanceId(int)
Joysticks the get device instance id using the specified device index
public static int JoystickGetDeviceInstanceId(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- int
-
The int
JoystickGetDeviceProduct(int)
Joysticks the get device product using the specified device index
public static ushort JoystickGetDeviceProduct(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- ushort
-
The ushort
JoystickGetDeviceProductVersion(int)
Joysticks the get device product version using the specified device index
public static ushort JoystickGetDeviceProductVersion(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- ushort
-
The ushort
JoystickGetDeviceType(int)
Joysticks the get device type using the specified device index
public static JoystickType JoystickGetDeviceType(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- JoystickType
-
The sdl joystick type
JoystickGetDeviceVendor(int)
Joysticks the get device vendor using the specified device index
public static ushort JoystickGetDeviceVendor(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- ushort
-
The ushort
JoystickGetGuid(IntPtr)
Joysticks the get guid using the specified joystick
public static Guid JoystickGetGuid(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- Guid
-
The guid
JoystickGetGuidFromString(string)
Sdl the joystick get guid from string using the specified pch guid
public static Guid JoystickGetGuidFromString(string pchGuid)Parameters
pchGuidstring-
The pch guid
Returns
- Guid
-
The guid
JoystickGetGuidString(Guid, byte[], int)
Joysticks the get guid string using the specified guid
public static void JoystickGetGuidString(Guid guid, byte[] pszGuid, int cbGuid)Parameters
JoystickGetHat(IntPtr, int)
Joysticks the get hat using the specified joystick
public static byte JoystickGetHat(IntPtr joystick, int hat)Parameters
Returns
- byte
-
The byte
JoystickGetProduct(IntPtr)
Joysticks the get product using the specified joystick
public static ushort JoystickGetProduct(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- ushort
-
The ushort
JoystickGetProductVersion(IntPtr)
Joysticks the get product version using the specified joystick
public static ushort JoystickGetProductVersion(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- ushort
-
The ushort
JoystickGetType(IntPtr)
Joysticks the get type using the specified joystick
public static JoystickType JoystickGetType(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- JoystickType
-
The sdl joystick type
JoystickGetVendor(IntPtr)
Joysticks the get vendor using the specified joystick
public static ushort JoystickGetVendor(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- ushort
-
The ushort
JoystickInstanceId(IntPtr)
Joysticks the instance id using the specified joystick
public static int JoystickInstanceId(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickIsHaptic(IntPtr)
Joysticks the is haptic using the specified joystick
public static int JoystickIsHaptic(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickName(IntPtr)
Sdl the joystick name using the specified joystick
public static string JoystickName(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- string
-
The string
JoystickNameForIndex(int)
Sdl the joystick name for index using the specified device index
public static string JoystickNameForIndex(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- string
-
The string
JoystickNumAxes(IntPtr)
Joysticks the num axes using the specified joystick
public static int JoystickNumAxes(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickNumBalls(IntPtr)
Joysticks the num balls using the specified joystick
public static int JoystickNumBalls(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickNumButtons(IntPtr)
Joysticks the num buttons using the specified joystick
public static int JoystickNumButtons(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickNumHats(IntPtr)
Joysticks the num hats using the specified joystick
public static int JoystickNumHats(IntPtr joystick)Parameters
joystickIntPtr-
The joystick
Returns
- int
-
The int
JoystickOpen(int)
Joysticks the open using the specified device index
public static IntPtr JoystickOpen(int deviceIndex)Parameters
deviceIndexint-
The device index
Returns
- IntPtr
-
The int ptr
JoystickRumble(IntPtr, ushort, ushort, uint)
Joysticks the rumble using the specified joystick
public static int JoystickRumble(IntPtr joystick, ushort lowFrequencyRumble, ushort highFrequencyRumble, uint durationMs)Parameters
joystickIntPtr-
The joystick
lowFrequencyRumbleushort-
The low frequency rumble
highFrequencyRumbleushort-
The high frequency rumble
durationMsuint-
The duration ms
Returns
- int
-
The int
JoystickUpdate()
Joysticks the update
public static void JoystickUpdate()LoadBmp(string)
Sdl the load bmp using the specified file
public static IntPtr LoadBmp(string file)Parameters
filestring-
The file
Returns
- IntPtr
-
The int ptr
LoadFile(string, out IntPtr)
Sdl the load file using the specified file
public static IntPtr LoadFile(string file, out IntPtr dataSize)Parameters
Returns
- IntPtr
-
The result
LoadWav(string, out AudioSpec, out IntPtr, out uint)
Sdl the load wav using the specified file
public static IntPtr LoadWav(string file, out AudioSpec spec, out IntPtr audioBuf, out uint audioLen)Parameters
filestring-
The file
specAudioSpec-
The spec
audioBufIntPtr-
The audio buf
audioLenuint-
The audio len
Returns
- IntPtr
-
The int ptr
LockAudioDevice(uint)
Locks the audio device using the specified dev
public static void LockAudioDevice(uint dev)Parameters
devuint-
The dev
LockJoysticks()
Locks the joysticks
public static void LockJoysticks()LockTexture(IntPtr, ref RectangleI, out IntPtr, out int)
Locks the texture using the specified texture
public static int LockTexture(IntPtr texture, ref RectangleI rect, out IntPtr pixels, out int pitch)Parameters
textureIntPtr-
The texture
rectRectangleI-
The rect
pixelsIntPtr-
The pixels
pitchint-
The pitch
Returns
- int
-
The int
MakeCurrent(IntPtr, IntPtr)
Gls the make current using the specified window
public static int MakeCurrent(IntPtr window, IntPtr context)Parameters
Returns
- int
-
The int
MaximizeWindow(IntPtr)
Maximizes the window using the specified window
public static void MaximizeWindow(IntPtr window)Parameters
windowIntPtr-
The window
MinimizeWindow(IntPtr)
Minimizes the window using the specified window
public static void MinimizeWindow(IntPtr window)Parameters
windowIntPtr-
The window
MixAudio(byte[], byte[], uint, int)
Mixes the audio using the specified dst
public static void MixAudio(byte[] dst, byte[] src, uint len, int volume)Parameters
MixAudioFormat(IntPtr, IntPtr, ushort, uint, int)
Mixes the audio format using the specified dst
public static void MixAudioFormat(IntPtr dst, IntPtr src, ushort format, uint len, int volume)Parameters
dstIntPtr-
The dst
srcIntPtr-
The src
formatushort-
The format
lenuint-
The len
volumeint-
The volume
MixAudioFormat(byte[], byte[], ushort, uint, int)
Mixes the audio format using the specified dst
public static void MixAudioFormat(byte[] dst, byte[] src, ushort format, uint len, int volume)Parameters
dstbyte[]-
The dst
srcbyte[]-
The src
formatushort-
The format
lenuint-
The len
volumeint-
The volume
MouseIsHaptic()
Mouses the is haptic
public static int MouseIsHaptic()Returns
- int
-
The int
NumHaptics()
Nums the haptics
public static int NumHaptics()Returns
- int
-
The int
NumJoysticks()
Nums the joysticks
public static int NumJoysticks()Returns
- int
-
The int
OpenAudioDevice(IntPtr, int, ref AudioSpec, out AudioSpec, int)
Sdl the open audio device using the specified device
public static uint OpenAudioDevice(IntPtr device, int isCapture, ref AudioSpec desired, out AudioSpec obtained, int allowedChanges)Parameters
deviceIntPtr-
The device
isCaptureint-
The is capture
desiredAudioSpec-
The desired
obtainedAudioSpec-
The obtained
allowedChangesint-
The allowed changes
Returns
- uint
-
The uint
PeepEvents(Event[], int, EventAction, EventType, EventType)
Peeps the events using the specified events
public static int PeepEvents(Event[] events, int numEvents, EventAction action, EventType minType, EventType maxType)Parameters
eventsEvent[]-
The events
numEventsint-
The num events
actionEventAction-
The action
minTypeEventType-
The min type
maxTypeEventType-
The max type
Returns
- int
-
The int
PollEvent(out Event)
Polls the event using the specified sdl event
public static int PollEvent(out Event sdlEvent)Parameters
sdlEventEvent-
The sdl event
Returns
- int
-
The int
PushEvent(ref Event)
Pushes the event using the specified sdl event
public static int PushEvent(ref Event sdlEvent)Parameters
sdlEventEvent-
The sdl event
Returns
- int
-
The int
QueryTexture(IntPtr, out uint, out int, out int, out int)
Queries the texture using the specified texture
public static int QueryTexture(IntPtr texture, out uint format, out int access, out int w, out int h)Parameters
Returns
- int
-
The int
QueueAudio(int, byte[], uint)
Queues the audio using the specified device id
public static void QueueAudio(int deviceId, byte[] audioData, uint wavLength)Parameters
Quit()
Sdl the quit
public static void Quit()RaiseWindow(IntPtr)
Raises the window using the specified window
public static void RaiseWindow(IntPtr window)Parameters
windowIntPtr-
The window
RegisterEvents(int)
Registers the events using the specified num events
public static uint RegisterEvents(int numEvents)Parameters
numEventsint-
The num events
Returns
- uint
-
The uint
RenderClear(IntPtr)
Renders the clear using the specified renderer
public static int RenderClear(IntPtr renderer)Parameters
rendererIntPtr-
The renderer
Returns
- int
-
The int
RenderCopy(IntPtr, IntPtr, ref RectangleI, ref RectangleI)
Renders the copy using the specified renderer
public static int RenderCopy(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleI dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
RenderCopy(IntPtr, IntPtr, IntPtr, ref RectangleI)
Renders the copy using the specified renderer
public static int RenderCopy(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleI dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
RenderCopy(IntPtr, IntPtr, ref RectangleI, IntPtr)
Renders the copy using the specified renderer
public static int RenderCopy(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
Returns
- int
-
The int
RenderCopy(IntPtr, IntPtr, IntPtr, IntPtr)
Renders the copy using the specified renderer
public static int RenderCopy(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleI, double, ref PointI, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleI dstRect, double angle, ref PointI center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectRectangleI-
The dst rect
angledouble-
The angle
centerPointI-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleI, double, ref PointI, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleI dstRect, double angle, ref PointI center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectRectangleI-
The dst rect
angledouble-
The angle
centerPointI-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, ref RectangleI, IntPtr, double, ref PointI, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect, double angle, ref PointI center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerPointI-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleI, double, IntPtr, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleI dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectRectangleI-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, IntPtr, IntPtr, double, ref PointI, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect, double angle, ref PointI center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerPointI-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleI, double, IntPtr, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleI dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectRectangleI-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, ref RectangleI, IntPtr, double, IntPtr, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, IntPtr, IntPtr, double, IntPtr, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleF, double, ref PointF, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleF dst, double angle, ref PointF center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectangleF-
The dst rect
angledouble-
The angle
centerPointF-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleF, double, ref PointF, RendererFlips)
Renders the copy ex using the specified renderer
public static int RenderCopyEx(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleF dst, double angle, ref PointF center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectangleF-
The dst rect
angledouble-
The angle
centerPointF-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, ref RectangleI, IntPtr, double, ref PointF, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect, double angle, ref PointF center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerPointF-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, ref RectangleI, ref RectangleF, double, IntPtr, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleF dst, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectangleF-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, IntPtr, IntPtr, double, ref PointF, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect, double angle, ref PointF center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerPointF-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, IntPtr, ref RectangleF, double, IntPtr, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleF dst, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectangleF-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, ref RectangleI, IntPtr, double, IntPtr, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyExF(IntPtr, IntPtr, IntPtr, IntPtr, double, IntPtr, RendererFlips)
Renders the copy ex f using the specified renderer
public static int RenderCopyExF(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect, double angle, IntPtr center, RendererFlips flips)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
angledouble-
The angle
centerIntPtr-
The center
flipsRendererFlips-
The flip
Returns
- int
-
The int
RenderCopyF(IntPtr, IntPtr, ref RectangleI, ref RectangleF)
Renders the copy f using the specified renderer
public static int RenderCopyF(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, ref RectangleF dst)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectangleF-
The dst rect
Returns
- int
-
The int
RenderCopyF(IntPtr, IntPtr, IntPtr, ref RectangleF)
Renders the copy f using the specified renderer
public static int RenderCopyF(IntPtr renderer, IntPtr texture, IntPtr srcRect, ref RectangleF dst)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectangleF-
The dst rect
Returns
- int
-
The int
RenderCopyF(IntPtr, IntPtr, ref RectangleI, IntPtr)
Renders the copy f using the specified renderer
public static int RenderCopyF(IntPtr renderer, IntPtr texture, ref RectangleI srcRect, IntPtr dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectRectangleI-
The src rect
dstRectIntPtr-
The dst rect
Returns
- int
-
The int
RenderCopyF(IntPtr, IntPtr, IntPtr, IntPtr)
Renders the copy f using the specified renderer
public static int RenderCopyF(IntPtr renderer, IntPtr texture, IntPtr srcRect, IntPtr dstRect)Parameters
rendererIntPtr-
The renderer
textureIntPtr-
The texture
srcRectIntPtr-
The src rect
dstRectIntPtr-
The dst rect
Returns
- int
-
The int
RenderDrawLine(IntPtr, int, int, int, int)
Renders the draw line using the specified renderer
public static int RenderDrawLine(IntPtr renderer, int x1, int y1, int x2, int y2)Parameters
Returns
- int
-
The int
RenderDrawLineF(IntPtr, float, float, float, float)
Renders the draw line f using the specified renderer
public static int RenderDrawLineF(IntPtr renderer, float x1, float y1, float x2, float y2)Parameters
Returns
- int
-
The int
RenderDrawLines(IntPtr, PointI[], int)
Renders the draw lines using the specified renderer
public static int RenderDrawLines(IntPtr renderer, PointI[] points, int count)Parameters
Returns
- int
-
The int
RenderDrawLinesF(IntPtr, PointF[], int)
Renders the draw lines f using the specified renderer
public static int RenderDrawLinesF(IntPtr renderer, PointF[] points, int count)Parameters
Returns
- int
-
The int
RenderDrawPoint(IntPtr, int, int)
Renders the draw point using the specified renderer
public static int RenderDrawPoint(IntPtr renderer, int x, int y)Parameters
Returns
- int
-
The int
RenderDrawPointF(IntPtr, float, float)
Renders the draw point f using the specified renderer
public static int RenderDrawPointF(IntPtr renderer, float x, float y)Parameters
Returns
- int
-
The int
RenderDrawPoints(IntPtr, PointI[], int)
Renders the draw points using the specified renderer
public static int RenderDrawPoints(IntPtr renderer, PointI[] points, int count)Parameters
Returns
- int
-
The int
RenderDrawPointsF(IntPtr, PointF[], int)
Renders the draw points f using the specified renderer
public static int RenderDrawPointsF(IntPtr renderer, PointF[] points, int count)Parameters
Returns
- int
-
The int
RenderDrawRect(IntPtr, ref RectangleI)
Renders the draw rect using the specified renderer
public static int RenderDrawRect(IntPtr renderer, ref RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
Returns
- int
-
The int
RenderDrawRect(IntPtr, IntPtr)
Renders the draw rect using the specified renderer
public static int RenderDrawRect(IntPtr renderer, IntPtr rect)Parameters
Returns
- int
-
The int
RenderDrawRectF(IntPtr, ref RectangleF)
Renders the draw rect f using the specified renderer
public static int RenderDrawRectF(IntPtr renderer, ref RectangleF rect)Parameters
rendererIntPtr-
The renderer
rectRectangleF-
The rect
Returns
- int
-
The int
RenderDrawRectF(IntPtr, IntPtr)
Renders the draw rect f using the specified renderer
public static int RenderDrawRectF(IntPtr renderer, IntPtr rect)Parameters
Returns
- int
-
The int
RenderDrawRects(IntPtr, RectangleI[], int)
Renders the draw rects using the specified renderer
public static int RenderDrawRects(IntPtr renderer, RectangleI[] rects, int count)Parameters
rendererIntPtr-
The renderer
rectsRectangleI[]-
The rects
countint-
The count
Returns
- int
-
The int
RenderDrawRectsF(IntPtr, RectangleF[], int)
Renders the draw rects f using the specified renderer
public static int RenderDrawRectsF(IntPtr renderer, RectangleF[] rects, int count)Parameters
rendererIntPtr-
The renderer
rectsRectangleF[]-
The rects
countint-
The count
Returns
- int
-
The int
RenderFillRect(IntPtr, ref RectangleI)
Renders the fill rect using the specified renderer
public static int RenderFillRect(IntPtr renderer, ref RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
Returns
- int
-
The int
RenderFillRect(IntPtr, IntPtr)
Renders the fill rect using the specified renderer
public static int RenderFillRect(IntPtr renderer, IntPtr rect)Parameters
Returns
- int
-
The int
RenderFillRectF(IntPtr, RectangleF)
Renders the fill rect f using the specified renderer
public static int RenderFillRectF(IntPtr renderer, RectangleF rect)Parameters
rendererIntPtr-
The renderer
rectRectangleF-
The rect
Returns
- int
-
The int
RenderFillRectF(IntPtr, IntPtr)
Renders the fill rect f using the specified renderer
public static int RenderFillRectF(IntPtr renderer, IntPtr rect)Parameters
Returns
- int
-
The int
RenderFillRects(IntPtr, RectangleI[], int)
Renders the fill rects using the specified renderer
public static int RenderFillRects(IntPtr renderer, RectangleI[] rects, int count)Parameters
rendererIntPtr-
The renderer
rectsRectangleI[]-
The rects
countint-
The count
Returns
- int
-
The int
RenderFillRectsF(IntPtr, RectangleF[], int)
Renders the fill rects f using the specified renderer
public static int RenderFillRectsF(IntPtr renderer, RectangleF[] rects, int count)Parameters
rendererIntPtr-
The renderer
rectsRectangleF[]-
The rects
countint-
The count
Returns
- int
-
The int
RenderGetClipRect(IntPtr, out RectangleI)
Renders the get clip rect using the specified renderer
public static void RenderGetClipRect(IntPtr renderer, out RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
RenderGetLogicalSize(IntPtr, out int, out int)
Renders the get logical size using the specified renderer
public static void RenderGetLogicalSize(IntPtr renderer, out int w, out int h)Parameters
RenderGetScale(IntPtr, out float, out float)
Renders the get scale using the specified renderer
public static void RenderGetScale(IntPtr renderer, out float scaleX, out float scaleY)Parameters
RenderGetViewport(IntPtr, out RectangleI)
Renders the get viewport using the specified renderer
public static int RenderGetViewport(IntPtr renderer, out RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
Returns
- int
-
The int
RenderIsClipEnabled(IntPtr)
Renders the is clip enabled using the specified renderer
public static bool RenderIsClipEnabled(IntPtr renderer)Parameters
rendererIntPtr-
The renderer
Returns
- bool
-
The sdl bool
RenderPresent(IntPtr)
Renders the present using the specified renderer
public static void RenderPresent(IntPtr renderer)Parameters
rendererIntPtr-
The renderer
RenderReadPixels(IntPtr, ref RectangleI, uint, IntPtr, int)
Renders the read pixels using the specified renderer
public static int RenderReadPixels(IntPtr renderer, ref RectangleI rect, uint format, IntPtr pixels, int pitch)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
formatuint-
The format
pixelsIntPtr-
The pixels
pitchint-
The pitch
Returns
- int
-
The int
RenderSetClipRect(IntPtr, ref RectangleI)
Renders the set clip rect using the specified renderer
public static int RenderSetClipRect(IntPtr renderer, ref RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
Returns
- int
-
The int
RenderSetClipRect(IntPtr, IntPtr)
Renders the set clip rect using the specified renderer
public static int RenderSetClipRect(IntPtr renderer, IntPtr rect)Parameters
Returns
- int
-
The int
RenderSetIntegerScale(IntPtr, bool)
Renders the set integer scale using the specified renderer
public static int RenderSetIntegerScale(IntPtr renderer, bool enable)Parameters
Returns
- int
-
The int
RenderSetLogicalSize(IntPtr, int, int)
Renders the set logical size using the specified renderer
public static int RenderSetLogicalSize(IntPtr renderer, int w, int h)Parameters
Returns
- int
-
The int
RenderSetScale(IntPtr, float, float)
Renders the set scale using the specified renderer
public static int RenderSetScale(IntPtr renderer, float scaleX, float scaleY)Parameters
Returns
- int
-
The int
RenderSetViewport(IntPtr, ref RectangleI)
Renders the set viewport using the specified renderer
public static int RenderSetViewport(IntPtr renderer, ref RectangleI rect)Parameters
rendererIntPtr-
The renderer
rectRectangleI-
The rect
Returns
- int
-
The int
RenderTargetSupported(IntPtr)
Renders the target supported using the specified renderer
public static bool RenderTargetSupported(IntPtr renderer)Parameters
rendererIntPtr-
The renderer
Returns
- bool
-
The sdl bool
ResetAttributes()
Gls the reset attributes
public static void ResetAttributes()RestoreWindow(IntPtr)
Restores the window using the specified window
public static void RestoreWindow(IntPtr window)Parameters
windowIntPtr-
The window
RwFromFile(string, string)
Sdl the rw from file using the specified file
private static IntPtr RwFromFile(string file, string mode)Parameters
Returns
- IntPtr
-
The rw ops
SGetKeyName(KeyCodes)
Sdl the get key name using the specified key
public static string SGetKeyName(KeyCodes key)Parameters
keyKeyCodes-
The key
Returns
- string
-
The string
ScanCodeToKeyCode(SdlScancode)
Sdl the scancode to keycode using the specified x
public static KeyCodes ScanCodeToKeyCode(SdlScancode x)Parameters
xSdlScancode-
The
Returns
- KeyCodes
-
The sdl keycode
SdlAudioBitSize(ushort)
Sdl the audio bit size using the specified x
public static ushort SdlAudioBitSize(ushort x)Parameters
xushort-
The
Returns
- ushort
-
The ushort
SdlAudioIsBigEndian(ushort)
Describes whether sdl audio is big endian
public static bool SdlAudioIsBigEndian(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioIsFloat(ushort)
Describes whether sdl audio is float
public static bool SdlAudioIsFloat(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioIsInt(ushort)
Describes whether sdl audio is int
public static bool SdlAudioIsInt(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioIsLittleEndian(ushort)
Describes whether sdl audio is little endian
public static bool SdlAudioIsLittleEndian(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioIsSigned(ushort)
Describes whether sdl audio is signed
public static bool SdlAudioIsSigned(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioIsUnsigned(ushort)
Describes whether sdl audio is unsigned
public static bool SdlAudioIsUnsigned(ushort x)Parameters
xushort-
The
Returns
- bool
-
The bool
SdlAudioStreamAvailable(IntPtr)
Sdl the audio stream available using the specified stream
public static int SdlAudioStreamAvailable(IntPtr stream)Parameters
streamIntPtr-
The stream
Returns
- int
-
The int
SdlAudioStreamClear(IntPtr)
Sdl the audio stream clear using the specified stream
public static void SdlAudioStreamClear(IntPtr stream)Parameters
streamIntPtr-
The stream
SdlAudioStreamGet(IntPtr, IntPtr, int)
Sdl the audio stream get using the specified stream
public static int SdlAudioStreamGet(IntPtr stream, IntPtr buf, int len)Parameters
Returns
- int
-
The int
SdlAudioStreamPut(IntPtr, IntPtr, int)
Sdl the audio stream put using the specified stream
public static int SdlAudioStreamPut(IntPtr stream, IntPtr buf, int len)Parameters
Returns
- int
-
The int
SdlDefinePixelFormat(TypePixel, uint, PackedLayout, byte, byte)
Sdl the define pixel format using the specified type
private static uint SdlDefinePixelFormat(TypePixel type, uint order, PackedLayout layout, byte bits, byte bytes)Parameters
typeTypePixel-
The type
orderuint-
The order
layoutPackedLayout-
The layout
bitsbyte-
The bits
bytesbyte-
The bytes
Returns
- uint
-
The uint
SdlDefinePixelFourcc(byte, byte, byte, byte)
Sdl the define pixel fourcc using the specified a
public static uint SdlDefinePixelFourcc(byte a, byte b, byte c, byte d)Parameters
Returns
- uint
-
The uint
SdlFreeAudioStream(IntPtr)
Sdl the free audio stream using the specified stream
public static void SdlFreeAudioStream(IntPtr stream)Parameters
streamIntPtr-
The stream
SdlNewAudioStream(ushort, byte, int, ushort, byte, int)
Sdl the new audio stream using the specified src format
public static IntPtr SdlNewAudioStream(ushort srcFormat, byte srcChannels, int srcRate, ushort dstFormat, byte dstChannels, int dstRate)Parameters
srcFormatushort-
The src format
srcChannelsbyte-
The src channels
srcRateint-
The src rate
dstFormatushort-
The dst format
dstChannelsbyte-
The dst channels
dstRateint-
The dst rate
Returns
- IntPtr
-
The int ptr
SdlOpenAudioDevice(string, int, ref AudioSpec, out AudioSpec, int)
Sdl the open audio device using the specified device
public static uint SdlOpenAudioDevice(string device, int isCapture, ref AudioSpec desired, out AudioSpec obtained, int allowedChanges)Parameters
devicestring-
The device
isCaptureint-
The is capture
desiredAudioSpec-
The desired
obtainedAudioSpec-
The obtained
allowedChangesint-
The allowed changes
Returns
- uint
-
The uint
SdlPauseAudio(int)
Sdl the pause audio using the specified pause on
public static void SdlPauseAudio(int pauseOn)Parameters
pauseOnint-
The pause on
SdlPauseAudioDevice(uint, int)
Sdl the pause audio device using the specified dev
public static void SdlPauseAudioDevice(uint dev, int pauseOn)Parameters
SdlUnlockAudioDevice(uint)
Sdl the unlock audio device using the specified dev
public static void SdlUnlockAudioDevice(uint dev)Parameters
devuint-
The dev
SetAttributeByInt(Attr, int)
Gls the set attribute using the specified attr
public static int SetAttributeByInt(Attr attr, int value)Parameters
Returns
- int
-
The int
SetAttributeByProfile(Attr, Profiles)
Sdl the gl set attribute using the specified attr
public static int SetAttributeByProfile(Attr attr, Profiles profile)Parameters
Returns
- int
-
The int
SetClipRect(IntPtr, ref RectangleI)
Sets the clip rect using the specified surface
public static bool SetClipRect(IntPtr surface, ref RectangleI rect)Parameters
surfaceIntPtr-
The surface
rectRectangleI-
The rect
Returns
- bool
-
The sdl bool
SetClipboardText(string)
Sdl the set clipboard text using the specified text
public static int SetClipboardText(string text)Parameters
textstring-
The text
Returns
- int
-
The result
SetColorKey(IntPtr, int, uint)
Sets the color key using the specified surface
public static int SetColorKey(IntPtr surface, int flag, uint key)Parameters
Returns
- int
-
The int
SetCursor(IntPtr)
Sets the cursor using the specified cursor
public static void SetCursor(IntPtr cursor)Parameters
cursorIntPtr-
The cursor
SetError(string)
Sdl the set error using the specified fmt and arg list
public static void SetError(string fmtAndArgList)Parameters
fmtAndArgListstring-
The fmt and arg list
SetEventFilter(SdlEventFilter, IntPtr)
Sets the event filter using the specified filter
public static void SetEventFilter(SdlEventFilter filter, IntPtr userdata)Parameters
filterSdlEventFilter-
The filter
userdataIntPtr-
The userdata
SetHint(string, string)
Sdl the set hint using the specified name
public static bool SetHint(string name, string value)Parameters
Returns
- bool
-
The sdl bool
SetHintWithPriority(string, string, HintPriority)
Sdl the set hint with priority using the specified name
public static bool SetHintWithPriority(string name, string value, HintPriority priority)Parameters
namestring-
The name
valuestring-
The value
priorityHintPriority-
The priority
Returns
- bool
-
The sdl bool
SetModState(KeyMods)
Sets the mod state using the specified mod state
public static void SetModState(KeyMods modState)Parameters
modStateKeyMods-
The mod state
SetPaletteColors(IntPtr, Color[], int, int)
Sets the palette colors using the specified palette
public static int SetPaletteColors(IntPtr palette, Color[] colors, int firstColor, int nColors)Parameters
paletteIntPtr-
The palette
colorsColor[]-
The colors
firstColorint-
The first color
nColorsint-
The colors
Returns
- int
-
The int
SetPixelFormatPalette(IntPtr, IntPtr)
Sets the pixel format palette using the specified format
public static int SetPixelFormatPalette(IntPtr format, IntPtr palette)Parameters
Returns
- int
-
The int
SetRelativeMouseMode(bool)
Sets the relative mouse mode using the specified enabled
public static int SetRelativeMouseMode(bool enabled)Parameters
enabledbool-
The enabled
Returns
- int
-
The int
SetRenderDrawBlendMode(IntPtr, BlendModes)
Sets the render draw blend mode using the specified renderer
public static int SetRenderDrawBlendMode(IntPtr renderer, BlendModes blendMode)Parameters
rendererIntPtr-
The renderer
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
SetRenderDrawColor(IntPtr, byte, byte, byte, byte)
Sets the render draw color using the specified renderer
public static int SetRenderDrawColor(IntPtr renderer, byte r, byte g, byte b, byte a)Parameters
Returns
- int
-
The int
SetRenderTarget(IntPtr, IntPtr)
Sets the render target using the specified renderer
public static int SetRenderTarget(IntPtr renderer, IntPtr texture)Parameters
Returns
- int
-
The int
SetSurfaceAlphaMod(IntPtr, byte)
Sets the surface alpha mod using the specified surface
public static int SetSurfaceAlphaMod(IntPtr surface, byte alpha)Parameters
Returns
- int
-
The int
SetSurfaceBlendMode(IntPtr, BlendModes)
Sets the surface blend mode using the specified surface
public static int SetSurfaceBlendMode(IntPtr surface, BlendModes blendMode)Parameters
surfaceIntPtr-
The surface
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
SetSurfaceColorMod(IntPtr, byte, byte, byte)
Sets the surface color mod using the specified surface
public static int SetSurfaceColorMod(IntPtr surface, byte r, byte g, byte b)Parameters
Returns
- int
-
The int
SetSurfacePalette(IntPtr, IntPtr)
Sets the surface palette using the specified surface
public static int SetSurfacePalette(IntPtr surface, IntPtr palette)Parameters
Returns
- int
-
The int
SetSwapInterval(int)
Gls the set swap interval using the specified interval
public static int SetSwapInterval(int interval)Parameters
intervalint-
The interval
Returns
- int
-
The int
SetTextInputRect(ref RectangleI)
Sets the text input rect using the specified rect
public static void SetTextInputRect(ref RectangleI rect)Parameters
rectRectangleI-
The rect
SetTextureAlphaMod(IntPtr, byte)
Sets the texture alpha mod using the specified texture
public static int SetTextureAlphaMod(IntPtr texture, byte alpha)Parameters
Returns
- int
-
The int
SetTextureBlendMode(IntPtr, BlendModes)
Sets the texture blend mode using the specified texture
public static int SetTextureBlendMode(IntPtr texture, BlendModes blendMode)Parameters
textureIntPtr-
The texture
blendModeBlendModes-
The blend mode
Returns
- int
-
The int
SetTextureColorMod(IntPtr, byte, byte, byte)
Sets the texture color mod using the specified texture
public static int SetTextureColorMod(IntPtr texture, byte r, byte g, byte b)Parameters
Returns
- int
-
The int
SetWindowBordered(IntPtr, bool)
Sets the window bordered using the specified window
public static void SetWindowBordered(IntPtr window, bool bordered)Parameters
SetWindowBrightness(IntPtr, float)
Sets the window brightness using the specified window
public static int SetWindowBrightness(IntPtr window, float brightness)Parameters
Returns
- int
-
The int
SetWindowData(IntPtr, string, IntPtr)
Sdl the set window data using the specified window
public static IntPtr SetWindowData(IntPtr window, string name, IntPtr userdata)Parameters
Returns
- IntPtr
-
The int ptr
SetWindowDisplayMode(IntPtr, ref DisplayMode)
Sets the window display mode using the specified window
public static int SetWindowDisplayMode(IntPtr window, ref DisplayMode mode)Parameters
windowIntPtr-
The window
modeDisplayMode-
The mode
Returns
- int
-
The int
SetWindowDisplayMode(IntPtr, IntPtr)
Sets the window display mode using the specified window
public static int SetWindowDisplayMode(IntPtr window, IntPtr mode)Parameters
Returns
- int
-
The int
SetWindowFullscreen(IntPtr, uint)
Sets the window fullscreen using the specified window
public static int SetWindowFullscreen(IntPtr window, uint flags)Parameters
Returns
- int
-
The int
SetWindowGammaRamp(IntPtr, ushort[], ushort[], ushort[])
Sets the window gamma ramp using the specified window
public static int SetWindowGammaRamp(IntPtr window, ushort[] red, ushort[] green, ushort[] blue)Parameters
Returns
- int
-
The int
SetWindowGrab(IntPtr, bool)
Sets the window grab using the specified window
public static void SetWindowGrab(IntPtr window, bool grabbed)Parameters
SetWindowHitTest(IntPtr, SdlHitTest, IntPtr)
Sets the window hit test using the specified window
public static int SetWindowHitTest(IntPtr window, SdlHitTest callback, IntPtr callbackData)Parameters
windowIntPtr-
The window
callbackSdlHitTest-
The callback
callbackDataIntPtr-
The callback data
Returns
- int
-
The int
SetWindowIcon(IntPtr, IntPtr)
Sets the window icon using the specified window
public static void SetWindowIcon(IntPtr window, IntPtr icon)Parameters
SetWindowInputFocus(IntPtr)
Sets the window input focus using the specified window
public static int SetWindowInputFocus(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- int
-
The int
SetWindowMaximumSize(IntPtr, int, int)
Sets the window maximum size using the specified window
public static void SetWindowMaximumSize(IntPtr window, int maxW, int maxH)Parameters
SetWindowMinimumSize(IntPtr, int, int)
Sets the window minimum size using the specified window
public static void SetWindowMinimumSize(IntPtr window, int minW, int minH)Parameters
SetWindowModalFor(IntPtr, IntPtr)
Sets the window modal for using the specified modal window
public static int SetWindowModalFor(IntPtr modalWindow, IntPtr parentWindow)Parameters
Returns
- int
-
The int
SetWindowOpacity(IntPtr, float)
Sets the window opacity using the specified window
public static int SetWindowOpacity(IntPtr window, float opacity)Parameters
Returns
- int
-
The int
SetWindowPosition(IntPtr, int, int)
Sets the window position using the specified window
public static void SetWindowPosition(IntPtr window, int x, int y)Parameters
SetWindowResizable(IntPtr, bool)
Sets the window resizable using the specified window
public static void SetWindowResizable(IntPtr window, bool resizable)Parameters
SetWindowSize(IntPtr, int, int)
Sets the window size using the specified window
public static void SetWindowSize(IntPtr window, int w, int h)Parameters
SetWindowTitle(IntPtr, string)
Sdl the set window title using the specified window
public static void SetWindowTitle(IntPtr window, string title)Parameters
ShowCursor(int)
Shows the cursor using the specified toggle
public static int ShowCursor(int toggle)Parameters
toggleint-
The toggle
Returns
- int
-
The int
ShowWindow(IntPtr)
Shows the window using the specified window
public static void ShowWindow(IntPtr window)Parameters
windowIntPtr-
The window
StartTextInput()
Starts the text input
public static void StartTextInput()StopTextInput()
Stops the text input
public static void StopTextInput()SwapWindow(IntPtr)
Gls the swap window using the specified window
public static void SwapWindow(IntPtr window)Parameters
windowIntPtr-
The window
UnbindTexture(IntPtr)
Gls the unbind texture using the specified texture
public static int UnbindTexture(IntPtr texture)Parameters
textureIntPtr-
The texture
Returns
- int
-
The int
UnlockJoysticks()
Unlocks the joysticks
public static void UnlockJoysticks()UpdateTexture(IntPtr, ref RectangleI, IntPtr, int)
Updates the texture using the specified texture
public static int UpdateTexture(IntPtr texture, ref RectangleI rect, IntPtr pixels, int pitch)Parameters
textureIntPtr-
The texture
rectRectangleI-
The rect
pixelsIntPtr-
The pixels
pitchint-
The pitch
Returns
- int
-
The int
UpdateTexture(IntPtr, IntPtr, IntPtr, int)
Updates the texture using the specified texture
public static int UpdateTexture(IntPtr texture, IntPtr rect, IntPtr pixels, int pitch)Parameters
Returns
- int
-
The int
UpdateTexture(IntPtr, IntPtr, byte[], int)
Updates the texture using the specified texture
public static int UpdateTexture(IntPtr texture, IntPtr rect, byte[] pixels, int pitch)Parameters
Returns
- int
-
The int
UpdateWindowSurface(IntPtr)
Updates the window surface using the specified window
public static int UpdateWindowSurface(IntPtr window)Parameters
windowIntPtr-
The window
Returns
- int
-
The int
UpdateWindowSurfaceRects(IntPtr, RectangleI[], int)
Updates the window surface rects using the specified window
public static int UpdateWindowSurfaceRects(IntPtr window, RectangleI[] rects, int numRects)Parameters
windowIntPtr-
The window
rectsRectangleI[]-
The rects
numRectsint-
The num rects
Returns
- int
-
The int
UpperBlit(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Uppers the blit using the specified src
public static int UpperBlit(IntPtr src, ref RectangleI srcRect, IntPtr dst, ref RectangleI dstRect)Parameters
srcIntPtr-
The src
srcRectRectangleI-
The src rect
dstIntPtr-
The dst
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
UpperBlitScaled(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Uppers the blit scaled using the specified src
public static int UpperBlitScaled(IntPtr src, ref RectangleI srcRect, IntPtr dst, ref RectangleI dstRect)Parameters
srcIntPtr-
The src
srcRectRectangleI-
The src rect
dstIntPtr-
The dst
dstRectRectangleI-
The dst rect
Returns
- int
-
The int
WarpMouseGlobal(int, int)
Warps the mouse global using the specified x
public static int WarpMouseGlobal(int x, int y)Parameters
Returns
- int
-
The int
WarpMouseInWindow(IntPtr, int, int)
Warps the mouse in window using the specified window
public static void WarpMouseInWindow(IntPtr window, int x, int y)Parameters
WasInit(InitSettings)
Sdl the was init using the specified flags
public static uint WasInit(InitSettings flags)Parameters
flagsInitSettings-
The flags
Returns
- uint
-
The uint
WindowPosCenteredDisplay(int)
Sdl the window pos centered display using the specified x
public static int WindowPosCenteredDisplay(int x)Parameters
xint-
The
Returns
- int
-
The int
WindowPosIsCentered(int)
Describes whether sdl window pos is centered
public static bool WindowPosIsCentered(int x)Parameters
xint-
The
Returns
- bool
-
The bool
WindowPosIsUndefined(int)
Describes whether sdl window pos is undefined
public static bool WindowPosIsUndefined(int x)Parameters
xint-
The
Returns
- bool
-
The bool
WindowPosUndefinedDisplay(int)
Sdl the window pos undefined display using the specified x
public static int WindowPosUndefinedDisplay(int x)Parameters
xint-
The
Returns
- int
-
The int