Table of Contents

Class Sdl

Namespace
Alis.Core.Graphic.Sdl2
Assembly
Alis.dll

The sdl class

public static class Sdl

Inheritance

Sdl

Inherited Members

Fields

AndroidExternalStorageRead

The sdl android external storage read

public const int AndroidExternalStorageRead = 1

Field Value

int

AndroidExternalStorageWrite

The sdl android external storage write

public const int AndroidExternalStorageWrite = 2

Field Value

int

AudioF32

The audio f32lsb

public const ushort AudioF32 = 33056

Field Value

ushort

AudioF32Lsb

The audio f32lsb

public const ushort AudioF32Lsb = 33056

Field Value

ushort

AudioF32Msb

The audio f32msb

public const ushort AudioF32Msb = 37152

Field Value

ushort

AudioMaskBitSize

The sdl audio mask bit size

public const ushort AudioMaskBitSize = 255

Field Value

ushort

AudioMaskDatatype

The sdl audio mask datatype

public const ushort AudioMaskDatatype = 256

Field Value

ushort

AudioMaskEndian

The sdl audio mask endian

public const ushort AudioMaskEndian = 4096

Field Value

ushort

AudioMaskSigned

The sdl audio mask signed

public const ushort AudioMaskSigned = 32768

Field Value

ushort

AudioS16

The audio s16lsb

public const ushort AudioS16 = 32784

Field Value

ushort

AudioS16Lsb

The audio s16lsb

public const ushort AudioS16Lsb = 32784

Field Value

ushort

AudioS16Msb

The audio s16msb

public const ushort AudioS16Msb = 36880

Field Value

ushort

AudioS32

The audio s32lsb

public const ushort AudioS32 = 32800

Field Value

ushort

AudioS32Lsb

The audio s32lsb

public const ushort AudioS32Lsb = 32800

Field Value

ushort

AudioS32Msb

The audio s32msb

public const ushort AudioS32Msb = 36896

Field Value

ushort

AudioS8

The audio s8

public const ushort AudioS8 = 32776

Field Value

ushort

AudioU16

The audio u16lsb

public const ushort AudioU16 = 16

Field Value

ushort

AudioU16Lsb

The audio u16lsb

public const ushort AudioU16Lsb = 16

Field Value

ushort

AudioU16Msb

The audio u16msb

public const ushort AudioU16Msb = 4112

Field Value

ushort

AudioU8

The audio u8

public const ushort AudioU8 = 8

Field Value

ushort

ButtonLeft

The sdl button left

public const uint ButtonLeft = 1

Field Value

uint

ButtonMiddle

The sdl button middle

public const uint ButtonMiddle = 2

Field Value

uint

ButtonRight

The sdl button right

public const uint ButtonRight = 3

Field Value

uint

ButtonX1

The sdl button x1

public const uint ButtonX1 = 4

Field Value

uint

ButtonX2

The sdl button x2

public const uint ButtonX2 = 5

Field Value

uint

Disable

The sdl disable

public const int Disable = 0

Field Value

int

Enable

The sdl enable

public const int Enable = 1

Field Value

int

GlAudioF32Sys

The audio f32msb

public static readonly ushort GlAudioF32Sys

Field Value

ushort

GlAudioS16Sys

The audio s16msb

public static readonly ushort GlAudioS16Sys

Field Value

ushort

GlAudioS32Sys

The audio s32msb

public static readonly ushort GlAudioS32Sys

Field Value

ushort

GlAudioU16Sys

The audio u16msb

public static readonly ushort GlAudioU16Sys

Field Value

ushort

GlButtonLMask

The sdl button left

public static readonly uint GlButtonLMask

Field Value

uint

GlButtonMMask

The sdl button middle

public static readonly uint GlButtonMMask

Field Value

uint

GlButtonRMask

The sdl button right

public static readonly uint GlButtonRMask

Field Value

uint

GlButtonX1Mask

The sdl button x1

public static readonly uint GlButtonX1Mask

Field Value

uint

GlButtonX2Mask

The sdl button x2

public static readonly uint GlButtonX2Mask

Field Value

uint

GlFormatXBgr1555

The sdl packed layout 1555

public static readonly uint GlFormatXBgr1555

Field Value

uint

GlFormatXBgr444

The sdl packed layout 4444

public static readonly uint GlFormatXBgr444

Field Value

uint

GlFormatXBgr888

The sdl packed layout 8888

public static readonly uint GlFormatXBgr888

Field Value

uint

GlFormatXRgb1555

The sdl packed layout 1555

public static readonly uint GlFormatXRgb1555

Field Value

uint

GlFormatXRgb444

The sdl packed layout 4444

public static readonly uint GlFormatXRgb444

Field Value

uint

GlFormatXRgb888

The sdl packed layout 8888

public static readonly uint GlFormatXRgb888

Field Value

uint

Ignore

The sdl ignore

public const int Ignore = 0

Field Value

int

KScancodeMask

The sdl scancode mask

public const int KScancodeMask = 1073741824

Field Value

int

MixMaxVolume

The sdl mix max volume

public const int MixMaxVolume = 128

Field Value

int

PixelFormatABgr1555

The sdl packed layout 1555

public static readonly uint PixelFormatABgr1555

Field Value

uint

PixelFormatABgr4444

The sdl packed layout 4444

public static readonly uint PixelFormatABgr4444

Field Value

uint

PixelFormatABgr8888

The sdl packed layout 8888

public static readonly uint PixelFormatABgr8888

Field Value

uint

PixelFormatArgb1555

The sdl packed layout 1555

public static readonly uint PixelFormatArgb1555

Field Value

uint

PixelFormatArgb2101010

The sdl packed layout 2101010

public static readonly uint PixelFormatArgb2101010

Field Value

uint

PixelFormatArgb4444

The sdl packed layout 4444

public static readonly uint PixelFormatArgb4444

Field Value

uint

PixelFormatArgb8888

The sdl packed layout 8888

public static readonly uint PixelFormatArgb8888

Field Value

uint

PixelFormatB8888

The sdl packed layout 8888

public static readonly uint PixelFormatB8888

Field Value

uint

PixelFormatBGra4444

The sdl packed layout 4444

public static readonly uint PixelFormatBGra4444

Field Value

uint

PixelFormatBGra5551

The sdl packed layout 5551

public static readonly uint PixelFormatBGra5551

Field Value

uint

PixelFormatBGrx8888

The sdl packed layout 8888

public static readonly uint PixelFormatBGrx8888

Field Value

uint

PixelFormatBgr24

The sdl array order bgr

public static readonly uint PixelFormatBgr24

Field Value

uint

PixelFormatBgr444

The sdl pixel format x bgr 444

public static readonly uint PixelFormatBgr444

Field Value

uint

PixelFormatBgr555

The sdl pixel format xbgr1555

public static readonly uint PixelFormatBgr555

Field Value

uint

PixelFormatBgr565

The sdl packed layout 565

public static readonly uint PixelFormatBgr565

Field Value

uint

PixelFormatBgr888

The sdl pixel format x bgr 888

public static readonly uint PixelFormatBgr888

Field Value

uint

PixelFormatIndex1Lsb

The sdl bit map order 4321

public static readonly uint PixelFormatIndex1Lsb

Field Value

uint

PixelFormatIndex1Msb

The sdl bit map order 1234

public static readonly uint PixelFormatIndex1Msb

Field Value

uint

PixelFormatIndex4Lsb

The sdl bit map order 4321

public static readonly uint PixelFormatIndex4Lsb

Field Value

uint

PixelFormatIndex4Msb

The sdl bit map order 1234

public static readonly uint PixelFormatIndex4Msb

Field Value

uint

PixelFormatIndex8

The sdl pixel TypePixel index8

public static readonly uint PixelFormatIndex8

Field Value

uint

PixelFormatIy

The sdl define pixel four cc

public static readonly uint PixelFormatIy

Field Value

uint

PixelFormatRgb24

The sdl array order rgb

public static readonly uint PixelFormatRgb24

Field Value

uint

PixelFormatRgb332

The sdl packed layout 332

public static readonly uint PixelFormatRgb332

Field Value

uint

PixelFormatRgb444

The sdl pixel format x rgb 444

public static readonly uint PixelFormatRgb444

Field Value

uint

PixelFormatRgb555

The sdl pixel format xrgb1555

public static readonly uint PixelFormatRgb555

Field Value

uint

PixelFormatRgb565

The sdl packed layout 565

public static readonly uint PixelFormatRgb565

Field Value

uint

PixelFormatRgb888

The sdl pixel format x rgb 888

public static readonly uint PixelFormatRgb888

Field Value

uint

PixelFormatRgbX8888

The sdl packed layout 8888

public static readonly uint PixelFormatRgbX8888

Field Value

uint

PixelFormatRgba4444

The sdl packed layout 4444

public static readonly uint PixelFormatRgba4444

Field Value

uint

PixelFormatRgba5551

The sdl packed layout 5551

public static readonly uint PixelFormatRgba5551

Field Value

uint

PixelFormatRgba8888

The sdl packed layout 8888

public static readonly uint PixelFormatRgba8888

Field Value

uint

PixelFormatUnknown

The sdl pixel format unknown

public static readonly uint PixelFormatUnknown

Field Value

uint

PixelFormatYv12

The sdl define pixel four cc

public static readonly uint PixelFormatYv12

Field Value

uint

Query

The sdl query

public const int Query = -1

Field Value

int

TextEditingEventTextSize

The sdl text editing event text size

public const int TextEditingEventTextSize = 32

Field Value

int

TextInputEventTextSize

The sdl text input event text size

public const int TextInputEventTextSize = 32

Field Value

int

Methods

AddEventWatch(SdlEventFilter, IntPtr)

Adds the event watch using the specified filter

public static void AddEventWatch(SdlEventFilter filter, IntPtr userdata)

Parameters

filter SdlEventFilter

The filter

userdata IntPtr

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

texture IntPtr

The texture

texW float

The tex

texH float

The tex

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

src IntPtr

The src

srcRect RectangleI

The src rect

dst IntPtr

The dst

dstRect RectangleI

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

src IntPtr

The src

srcRect IntPtr

The src rect

dst IntPtr

The dst

dstRect RectangleI

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

src IntPtr

The src

srcRect RectangleI

The src rect

dst IntPtr

The dst

dstRect IntPtr

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

src IntPtr

The src

srcRect IntPtr

The src rect

dst IntPtr

The dst

dstRect IntPtr

The dst rect

Returns

int

The int

Button(uint)

Sdl the button using the specified x

public static uint Button(uint x)

Parameters

x uint

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

gamma float

The gamma

ramp ushort[]

The ramp

CaptureMouse(bool)

Captures the mouse using the specified enabled

public static int CaptureMouse(bool enabled)

Parameters

enabled bool

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

dev uint

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

srcColorFactor BlendFactor

The src color factor

dstColorFactor BlendFactor

The dst color factor

colorOperation BlendOperation

The color operation

srcAlphaFactor BlendFactor

The src alpha factor

dstAlphaFactor BlendFactor

The dst alpha factor

alphaOperation BlendOperation

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

src IntPtr

The src

fmt IntPtr

The fmt

flags uint

The flags

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

surface IntPtr

The surface

hotX int

The hot

hotY int

The hot

Returns

IntPtr

The int ptr

CreateContext(IntPtr)

Gls the create context using the specified window

public static IntPtr CreateContext(IntPtr window)

Parameters

window IntPtr

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

data IntPtr

The data

mask IntPtr

The mask

w int

The

h int

The

hotX int

The hot

hotY int

The hot

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

window IntPtr

The window

index int

The index

flags Renderers

The flags

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

flags uint

The flags

width int

The width

height int

The height

depth int

The depth

format uint

The format

Returns

IntPtr

The int ptr

CreateSoftwareRenderer(IntPtr)

Creates the software renderer using the specified surface

public static IntPtr CreateSoftwareRenderer(IntPtr surface)

Parameters

surface IntPtr

The surface

Returns

IntPtr

The int ptr

CreateSystemCursor(SystemCursor)

Creates the system cursor using the specified id

public static IntPtr CreateSystemCursor(SystemCursor id)

Parameters

id SystemCursor

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

renderer IntPtr

The renderer

format uint

The format

access int

The access

w int

The

h int

The

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

renderer IntPtr

The renderer

surface IntPtr

The surface

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

title string

The title

x int

The

y int

The

w int

The

h int

The

flags WindowSettings

The flags

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

width int

The width

height int

The height

windowFlags WindowSettings

The window flags

window IntPtr

The window

renderer IntPtr

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

filter SdlEventFilter

The filter

userdata IntPtr

The userdata

DeleteContext(IntPtr)

Gls the delete context using the specified context

public static void DeleteContext(IntPtr context)

Parameters

context IntPtr

The context

DestroyRenderer(IntPtr)

Destroys the renderer using the specified renderer

public static void DestroyRenderer(IntPtr renderer)

Parameters

renderer IntPtr

The renderer

DestroyTexture(IntPtr)

Destroys the texture using the specified texture

public static void DestroyTexture(IntPtr texture)

Parameters

texture IntPtr

The texture

DestroyWindow(IntPtr)

Sdl the destroy window using the specified window

public static void DestroyWindow(IntPtr window)

Parameters

window IntPtr

The window

ExtensionSupported(string)

Sdl the gl extension supported using the specified extension

public static bool ExtensionSupported(string extension)

Parameters

extension string

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

dst IntPtr

The dst

rect RectangleI

The rect

color uint

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

dst IntPtr

The dst

rect IntPtr

The rect

color uint

The color

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

dst IntPtr

The dst

rects RectangleI[]

The rects

count int

The count

color uint

The color

Returns

int

The int

FlushEvent(EventType)

Flushes the event using the specified type

public static void FlushEvent(EventType type)

Parameters

type EventType

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

format uint

The format

bpp int

The bpp

rMask uint

The mask

gMask uint

The mask

bMask uint

The mask

aMask uint

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

a byte

The

b byte

The

c byte

The

d byte

The

Returns

uint

The uint

FreeCursor(IntPtr)

Frees the cursor using the specified cursor

public static void FreeCursor(IntPtr cursor)

Parameters

cursor IntPtr

The cursor

GameControllerAddMapping(string)

Sdl the game controller add mapping using the specified mapping string

public static int GameControllerAddMapping(string mappingString)

Parameters

mappingString string

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

file string

The file

Returns

int

The int

GameControllerClose(IntPtr)

Games the controller close using the specified game controller

public static void GameControllerClose(IntPtr gameController)

Parameters

gameController IntPtr

The game controller

GameControllerEventState(int)

Games the controller event state using the specified state

public static int GameControllerEventState(int state)

Parameters

state int

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

joyId int

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

gameController IntPtr

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

gameController IntPtr

The game controller

axis GameControllerAxis

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

pchString string

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

gameController IntPtr

The game controller

axis GameControllerAxis

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

gameController IntPtr

The game controller

button GameControllerButton

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

gameController IntPtr

The game controller

button GameControllerButton

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

pchString string

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

gameController IntPtr

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

gameController IntPtr

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

gameController IntPtr

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

axis GameControllerAxis

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

button GameControllerButton

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

gameController IntPtr

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

gameController IntPtr

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

joystickIndex int

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

guid Guid

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

mappingIndex int

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

gameController IntPtr

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

joystickIndex int

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

joystickIndex int

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

gameController IntPtr

The game controller

lowFrequencyRumble ushort

The low frequency rumble

highFrequencyRumble ushort

The high frequency rumble

durationMs uint

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

attr Attr

The attr

value int

The value

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

index int

The index

isCapture int

The is capture

Returns

string

The string

GetAudioDeviceStatus(uint)

Gets the audio device status using the specified dev

public static AudioStatus GetAudioDeviceStatus(uint dev)

Parameters

dev uint

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

index int

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

surface IntPtr

The surface

rect RectangleI

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

displayIndex int

The display index

mode DisplayMode

The mode

closest DisplayMode

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

surface IntPtr

The surface

key uint

The key

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

displayIndex int

The display index

mode DisplayMode

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

displayIndex int

The display index

mode DisplayMode

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

displayIndex int

The display index

rect RectangleI

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

displayIndex int

The display index

dDpi float

The dpi

hDpi float

The dpi

vDpi float

The dpi

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

displayIndex int

The display index

modeIndex int

The mode index

mode DisplayMode

The mode

Returns

int

The int

GetDisplayName(int)

Sdl the get display name using the specified index

public static string GetDisplayName(int index)

Parameters

index int

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

displayIndex int

The display index

rect RectangleI

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

window IntPtr

The window

w int

The

h int

The

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

type EventType

The type

Returns

byte

The byte

GetGlCompiledVersion()

The sdl patch level

public static int GetGlCompiledVersion()

Returns

int

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

x int

The

y int

The

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

x IntPtr

The

y IntPtr

The

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

name string

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

name string

The name

defaultValue bool

The default value

Returns

bool

The sdl bool

GetKeyFromName(string)

Sdl the get key from name using the specified name

public static KeyCodes GetKeyFromName(string name)

Parameters

name string

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

scancode SdlScancode

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

numKeys int

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

x int

The

y int

The

Returns

uint

The uint

GetMouseStateToXAndY(IntPtr, IntPtr)

Gets the mouse state using the specified x

public static uint GetMouseStateToXAndY(IntPtr x, IntPtr y)

Parameters

x IntPtr

The

y IntPtr

The

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

x IntPtr

The

y int

The

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

x int

The

y IntPtr

The

Returns

uint

The uint

GetNumAudioDevices(int)

Gets the num audio devices using the specified is capture

public static int GetNumAudioDevices(int isCapture)

Parameters

isCapture int

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

displayIndex int

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

touchId long

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

format uint

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

proc string

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

x int

The

y int

The

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

renderer IntPtr

The renderer

blendMode BlendModes

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

renderer IntPtr

The renderer

r byte

The

g byte

The

b byte

The

a byte

The

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

index int

The index

info RendererInfo

The info

Returns

int

The int

GetRenderer(IntPtr)

Gets the renderer using the specified window

public static IntPtr GetRenderer(IntPtr window)

Parameters

window IntPtr

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

renderer IntPtr

The renderer

info RendererInfo

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

renderer IntPtr

The renderer

w int

The

h int

The

Returns

int

The int

GetScancodeFromKey(KeyCodes)

Gets the scancode from key using the specified key

public static SdlScancode GetScancodeFromKey(KeyCodes key)

Parameters

key KeyCodes

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

name string

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

scancode SdlScancode

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

surface IntPtr

The surface

alpha byte

The alpha

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

surface IntPtr

The surface

blendMode BlendModes

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

surface IntPtr

The surface

r byte

The

g byte

The

b byte

The

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

texture IntPtr

The texture

alpha byte

The alpha

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

texture IntPtr

The texture

blendMode BlendModes

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

texture IntPtr

The texture

r byte

The

g byte

The

b byte

The

Returns

int

The int

GetTouchDevice(int)

Gets the touch device using the specified index

public static long GetTouchDevice(int index)

Parameters

index int

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

touchId long

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

touchId long

The touch id

index int

The index

Returns

IntPtr

The int ptr

GetVersion()

Sdl the get version using the specified ver

public static Version GetVersion()

Returns

Version

GetVideoDriver(int)

Sdl the get video driver using the specified index

public static string GetVideoDriver(int index)

Parameters

index int

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

window IntPtr

The window

top int

The top

left int

The left

bottom int

The bottom

right int

The right

Returns

int

The int

GetWindowBrightness(IntPtr)

Gets the window brightness using the specified window

public static float GetWindowBrightness(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

name string

The name

Returns

IntPtr

The int ptr

GetWindowDisplayIndex(IntPtr)

Gets the window display index using the specified window

public static int GetWindowDisplayIndex(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

mode DisplayMode

The mode

Returns

int

The int

GetWindowFlags(IntPtr)

Gets the window flags using the specified window

public static uint GetWindowFlags(IntPtr window)

Parameters

window IntPtr

The window

Returns

uint

The uint

GetWindowFromId(uint)

Gets the window from id using the specified id

public static IntPtr GetWindowFromId(uint id)

Parameters

id uint

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

window IntPtr

The window

red ushort[]

The red

green ushort[]

The green

blue ushort[]

The blue

Returns

int

The int

GetWindowGrab(IntPtr)

Gets the window grab using the specified window

public static bool GetWindowGrab(IntPtr window)

Parameters

window IntPtr

The window

Returns

bool

The sdl bool

GetWindowId(IntPtr)

Gets the window id using the specified window

public static uint GetWindowId(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

maxW int

The max

maxH int

The max

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

window IntPtr

The window

minW int

The min

minH int

The min

GetWindowOpacity(IntPtr, out float)

Gets the window opacity using the specified window

public static int GetWindowOpacity(IntPtr window, out float outOpacity)

Parameters

window IntPtr

The window

outOpacity float

The out opacity

Returns

int

The int

GetWindowPixelFormat(IntPtr)

Gets the window pixel format using the specified window

public static uint GetWindowPixelFormat(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

x int

The

y int

The

GetWindowSize(IntPtr)

simple

public static Vector2 GetWindowSize(IntPtr window)

Parameters

window IntPtr

Returns

Vector2

GetWindowSurface(IntPtr)

Gets the window surface using the specified window

public static IntPtr GetWindowSurface(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

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

surface IntPtr

The surface

Returns

bool

The sdl bool

HasEvent(EventType)

Has the event using the specified type

public static bool HasEvent(EventType type)

Parameters

type EventType

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

minType EventType

The min type

maxType EventType

The max type

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

window IntPtr

The window

Init(InitSettings)

Sdl the init using the specified flags

public static int Init(InitSettings flags)

Parameters

flags InitSettings

The flags

Returns

int

The int

IsGameController(int)

Is the game controller using the specified joystick index

public static bool IsGameController(int joystickIndex)

Parameters

joystickIndex int

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

window IntPtr

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

joystick IntPtr

The joystick

JoystickCurrentPowerLevel(IntPtr)

Joysticks the current power level using the specified joystick

public static JoystickPowerLevel JoystickCurrentPowerLevel(IntPtr joystick)

Parameters

joystick IntPtr

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

state int

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

instanceId int

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

joystick IntPtr

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

joystick IntPtr

The joystick

axis int

The axis

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

joystick IntPtr

The joystick

axis int

The axis

state ushort

The state

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

joystick IntPtr

The joystick

ball int

The ball

dx int

The dx

dy int

The dy

Returns

int

The int

JoystickGetButton(IntPtr, int)

Joysticks the get button using the specified joystick

public static byte JoystickGetButton(IntPtr joystick, int button)

Parameters

joystick IntPtr

The joystick

button int

The button

Returns

byte

The byte

JoystickGetDeviceGuid(int)

Joysticks the get device guid using the specified device index

public static Guid JoystickGetDeviceGuid(int deviceIndex)

Parameters

deviceIndex int

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

deviceIndex int

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

deviceIndex int

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

deviceIndex int

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

deviceIndex int

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

deviceIndex int

The device index

Returns

ushort

The ushort

JoystickGetGuid(IntPtr)

Joysticks the get guid using the specified joystick

public static Guid JoystickGetGuid(IntPtr joystick)

Parameters

joystick IntPtr

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

pchGuid string

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

guid Guid

The guid

pszGuid byte[]

The psz guid

cbGuid int

The cb guid

JoystickGetHat(IntPtr, int)

Joysticks the get hat using the specified joystick

public static byte JoystickGetHat(IntPtr joystick, int hat)

Parameters

joystick IntPtr

The joystick

hat int

The hat

Returns

byte

The byte

JoystickGetProduct(IntPtr)

Joysticks the get product using the specified joystick

public static ushort JoystickGetProduct(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

ushort

The ushort

JoystickGetProductVersion(IntPtr)

Joysticks the get product version using the specified joystick

public static ushort JoystickGetProductVersion(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

ushort

The ushort

JoystickGetType(IntPtr)

Joysticks the get type using the specified joystick

public static JoystickType JoystickGetType(IntPtr joystick)

Parameters

joystick IntPtr

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

joystick IntPtr

The joystick

Returns

ushort

The ushort

JoystickInstanceId(IntPtr)

Joysticks the instance id using the specified joystick

public static int JoystickInstanceId(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickIsHaptic(IntPtr)

Joysticks the is haptic using the specified joystick

public static int JoystickIsHaptic(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickName(IntPtr)

Sdl the joystick name using the specified joystick

public static string JoystickName(IntPtr joystick)

Parameters

joystick IntPtr

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

deviceIndex int

The device index

Returns

string

The string

JoystickNumAxes(IntPtr)

Joysticks the num axes using the specified joystick

public static int JoystickNumAxes(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickNumBalls(IntPtr)

Joysticks the num balls using the specified joystick

public static int JoystickNumBalls(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickNumButtons(IntPtr)

Joysticks the num buttons using the specified joystick

public static int JoystickNumButtons(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickNumHats(IntPtr)

Joysticks the num hats using the specified joystick

public static int JoystickNumHats(IntPtr joystick)

Parameters

joystick IntPtr

The joystick

Returns

int

The int

JoystickOpen(int)

Joysticks the open using the specified device index

public static IntPtr JoystickOpen(int deviceIndex)

Parameters

deviceIndex int

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

joystick IntPtr

The joystick

lowFrequencyRumble ushort

The low frequency rumble

highFrequencyRumble ushort

The high frequency rumble

durationMs uint

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

file string

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

file string

The file

dataSize IntPtr

The data size

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

file string

The file

spec AudioSpec

The spec

audioBuf IntPtr

The audio buf

audioLen uint

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

dev uint

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

texture IntPtr

The texture

rect RectangleI

The rect

pixels IntPtr

The pixels

pitch int

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

window IntPtr

The window

context IntPtr

The context

Returns

int

The int

MaximizeWindow(IntPtr)

Maximizes the window using the specified window

public static void MaximizeWindow(IntPtr window)

Parameters

window IntPtr

The window

MinimizeWindow(IntPtr)

Minimizes the window using the specified window

public static void MinimizeWindow(IntPtr window)

Parameters

window IntPtr

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

dst byte[]

The dst

src byte[]

The src

len uint

The len

volume int

The volume

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

dst IntPtr

The dst

src IntPtr

The src

format ushort

The format

len uint

The len

volume int

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

dst byte[]

The dst

src byte[]

The src

format ushort

The format

len uint

The len

volume int

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

device IntPtr

The device

isCapture int

The is capture

desired AudioSpec

The desired

obtained AudioSpec

The obtained

allowedChanges int

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

events Event[]

The events

numEvents int

The num events

action EventAction

The action

minType EventType

The min type

maxType EventType

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

sdlEvent Event

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

sdlEvent Event

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

texture IntPtr

The texture

format uint

The format

access int

The access

w int

The

h int

The

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

deviceId int

The device id

audioData byte[]

The audio data

wavLength uint

The wav length

Quit()

Sdl the quit

public static void Quit()

RaiseWindow(IntPtr)

Raises the window using the specified window

public static void RaiseWindow(IntPtr window)

Parameters

window IntPtr

The window

RegisterEvents(int)

Registers the events using the specified num events

public static uint RegisterEvents(int numEvents)

Parameters

numEvents int

The num events

Returns

uint

The uint

RenderClear(IntPtr)

Renders the clear using the specified renderer

public static int RenderClear(IntPtr renderer)

Parameters

renderer IntPtr

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect RectangleI

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect RectangleI

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect RectangleI

The dst rect

angle double

The angle

center PointI

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect RectangleI

The dst rect

angle double

The angle

center PointI

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center PointI

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect RectangleI

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center PointI

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect RectangleI

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dst RectangleF

The dst rect

angle double

The angle

center PointF

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dst RectangleF

The dst rect

angle double

The angle

center PointF

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center PointF

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dst RectangleF

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center PointF

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dst RectangleF

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

The dst rect

angle double

The angle

center IntPtr

The center

flips RendererFlips

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dst RectangleF

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dst RectangleF

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect RectangleI

The src rect

dstRect IntPtr

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

renderer IntPtr

The renderer

texture IntPtr

The texture

srcRect IntPtr

The src rect

dstRect IntPtr

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

renderer IntPtr

The renderer

x1 int

The

y1 int

The

x2 int

The

y2 int

The

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

renderer IntPtr

The renderer

x1 float

The

y1 float

The

x2 float

The

y2 float

The

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

renderer IntPtr

The renderer

points PointI[]

The points

count int

The count

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

renderer IntPtr

The renderer

points PointF[]

The points

count int

The count

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

renderer IntPtr

The renderer

x int

The

y int

The

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

renderer IntPtr

The renderer

x float

The

y float

The

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

renderer IntPtr

The renderer

points PointI[]

The points

count int

The count

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

renderer IntPtr

The renderer

points PointF[]

The points

count int

The count

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

renderer IntPtr

The renderer

rect RectangleI

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

renderer IntPtr

The renderer

rect IntPtr

The rect

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

renderer IntPtr

The renderer

rect RectangleF

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

renderer IntPtr

The renderer

rect IntPtr

The rect

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

renderer IntPtr

The renderer

rects RectangleI[]

The rects

count int

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

renderer IntPtr

The renderer

rects RectangleF[]

The rects

count int

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

renderer IntPtr

The renderer

rect RectangleI

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

renderer IntPtr

The renderer

rect IntPtr

The rect

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

renderer IntPtr

The renderer

rect RectangleF

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

renderer IntPtr

The renderer

rect IntPtr

The rect

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

renderer IntPtr

The renderer

rects RectangleI[]

The rects

count int

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

renderer IntPtr

The renderer

rects RectangleF[]

The rects

count int

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

renderer IntPtr

The renderer

rect RectangleI

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

renderer IntPtr

The renderer

w int

The

h int

The

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

renderer IntPtr

The renderer

scaleX float

The scale

scaleY float

The scale

RenderGetViewport(IntPtr, out RectangleI)

Renders the get viewport using the specified renderer

public static int RenderGetViewport(IntPtr renderer, out RectangleI rect)

Parameters

renderer IntPtr

The renderer

rect RectangleI

The rect

Returns

int

The int

RenderIsClipEnabled(IntPtr)

Renders the is clip enabled using the specified renderer

public static bool RenderIsClipEnabled(IntPtr renderer)

Parameters

renderer IntPtr

The renderer

Returns

bool

The sdl bool

RenderPresent(IntPtr)

Renders the present using the specified renderer

public static void RenderPresent(IntPtr renderer)

Parameters

renderer IntPtr

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

renderer IntPtr

The renderer

rect RectangleI

The rect

format uint

The format

pixels IntPtr

The pixels

pitch int

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

renderer IntPtr

The renderer

rect RectangleI

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

renderer IntPtr

The renderer

rect IntPtr

The rect

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

renderer IntPtr

The renderer

enable bool

The enable

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

renderer IntPtr

The renderer

w int

The

h int

The

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

renderer IntPtr

The renderer

scaleX float

The scale

scaleY float

The scale

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

renderer IntPtr

The renderer

rect RectangleI

The rect

Returns

int

The int

RenderTargetSupported(IntPtr)

Renders the target supported using the specified renderer

public static bool RenderTargetSupported(IntPtr renderer)

Parameters

renderer IntPtr

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

window IntPtr

The window

RwFromFile(string, string)

Sdl the rw from file using the specified file

private static IntPtr RwFromFile(string file, string mode)

Parameters

file string

The file

mode string

The mode

Returns

IntPtr

The rw ops

SGetKeyName(KeyCodes)

Sdl the get key name using the specified key

public static string SGetKeyName(KeyCodes key)

Parameters

key KeyCodes

The key

Returns

string

The string

ScanCodeToKeyCode(SdlScancode)

Sdl the scancode to keycode using the specified x

public static KeyCodes ScanCodeToKeyCode(SdlScancode x)

Parameters

x SdlScancode

The

Returns

KeyCodes

The sdl keycode

SdlAudioBitSize(ushort)

Sdl the audio bit size using the specified x

public static ushort SdlAudioBitSize(ushort x)

Parameters

x ushort

The

Returns

ushort

The ushort

SdlAudioIsBigEndian(ushort)

Describes whether sdl audio is big endian

public static bool SdlAudioIsBigEndian(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioIsFloat(ushort)

Describes whether sdl audio is float

public static bool SdlAudioIsFloat(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioIsInt(ushort)

Describes whether sdl audio is int

public static bool SdlAudioIsInt(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioIsLittleEndian(ushort)

Describes whether sdl audio is little endian

public static bool SdlAudioIsLittleEndian(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioIsSigned(ushort)

Describes whether sdl audio is signed

public static bool SdlAudioIsSigned(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioIsUnsigned(ushort)

Describes whether sdl audio is unsigned

public static bool SdlAudioIsUnsigned(ushort x)

Parameters

x ushort

The

Returns

bool

The bool

SdlAudioStreamAvailable(IntPtr)

Sdl the audio stream available using the specified stream

public static int SdlAudioStreamAvailable(IntPtr stream)

Parameters

stream IntPtr

The stream

Returns

int

The int

SdlAudioStreamClear(IntPtr)

Sdl the audio stream clear using the specified stream

public static void SdlAudioStreamClear(IntPtr stream)

Parameters

stream IntPtr

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

stream IntPtr

The stream

buf IntPtr

The buf

len int

The len

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

stream IntPtr

The stream

buf IntPtr

The buf

len int

The len

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

type TypePixel

The type

order uint

The order

layout PackedLayout

The layout

bits byte

The bits

bytes byte

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

a byte

The

b byte

The

c byte

The

d byte

The

Returns

uint

The uint

SdlFreeAudioStream(IntPtr)

Sdl the free audio stream using the specified stream

public static void SdlFreeAudioStream(IntPtr stream)

Parameters

stream IntPtr

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

srcFormat ushort

The src format

srcChannels byte

The src channels

srcRate int

The src rate

dstFormat ushort

The dst format

dstChannels byte

The dst channels

dstRate int

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

device string

The device

isCapture int

The is capture

desired AudioSpec

The desired

obtained AudioSpec

The obtained

allowedChanges int

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

pauseOn int

The pause on

SdlPauseAudioDevice(uint, int)

Sdl the pause audio device using the specified dev

public static void SdlPauseAudioDevice(uint dev, int pauseOn)

Parameters

dev uint

The dev

pauseOn int

The pause on

SdlUnlockAudioDevice(uint)

Sdl the unlock audio device using the specified dev

public static void SdlUnlockAudioDevice(uint dev)

Parameters

dev uint

The dev

SetAttributeByInt(Attr, int)

Gls the set attribute using the specified attr

public static int SetAttributeByInt(Attr attr, int value)

Parameters

attr Attr

The attr

value int

The value

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

attr Attr

The attr

profile Profiles

The profile

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

surface IntPtr

The surface

rect RectangleI

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

text string

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

surface IntPtr

The surface

flag int

The flag

key uint

The key

Returns

int

The int

SetCursor(IntPtr)

Sets the cursor using the specified cursor

public static void SetCursor(IntPtr cursor)

Parameters

cursor IntPtr

The cursor

SetError(string)

Sdl the set error using the specified fmt and arg list

public static void SetError(string fmtAndArgList)

Parameters

fmtAndArgList string

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

filter SdlEventFilter

The filter

userdata IntPtr

The userdata

SetHint(string, string)

Sdl the set hint using the specified name

public static bool SetHint(string name, string value)

Parameters

name string

The name

value string

The value

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

name string

The name

value string

The value

priority HintPriority

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

modState KeyMods

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

palette IntPtr

The palette

colors Color[]

The colors

firstColor int

The first color

nColors int

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

format IntPtr

The format

palette IntPtr

The palette

Returns

int

The int

SetRelativeMouseMode(bool)

Sets the relative mouse mode using the specified enabled

public static int SetRelativeMouseMode(bool enabled)

Parameters

enabled bool

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

renderer IntPtr

The renderer

blendMode BlendModes

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

renderer IntPtr

The renderer

r byte

The

g byte

The

b byte

The

a byte

The

Returns

int

The int

SetRenderTarget(IntPtr, IntPtr)

Sets the render target using the specified renderer

public static int SetRenderTarget(IntPtr renderer, IntPtr texture)

Parameters

renderer IntPtr

The renderer

texture IntPtr

The texture

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

surface IntPtr

The surface

alpha byte

The alpha

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

surface IntPtr

The surface

blendMode BlendModes

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

surface IntPtr

The surface

r byte

The

g byte

The

b byte

The

Returns

int

The int

SetSurfacePalette(IntPtr, IntPtr)

Sets the surface palette using the specified surface

public static int SetSurfacePalette(IntPtr surface, IntPtr palette)

Parameters

surface IntPtr

The surface

palette IntPtr

The palette

Returns

int

The int

SetSwapInterval(int)

Gls the set swap interval using the specified interval

public static int SetSwapInterval(int interval)

Parameters

interval int

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

rect RectangleI

The rect

SetTextureAlphaMod(IntPtr, byte)

Sets the texture alpha mod using the specified texture

public static int SetTextureAlphaMod(IntPtr texture, byte alpha)

Parameters

texture IntPtr

The texture

alpha byte

The alpha

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

texture IntPtr

The texture

blendMode BlendModes

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

texture IntPtr

The texture

r byte

The

g byte

The

b byte

The

Returns

int

The int

SetWindowBordered(IntPtr, bool)

Sets the window bordered using the specified window

public static void SetWindowBordered(IntPtr window, bool bordered)

Parameters

window IntPtr

The window

bordered bool

The bordered

SetWindowBrightness(IntPtr, float)

Sets the window brightness using the specified window

public static int SetWindowBrightness(IntPtr window, float brightness)

Parameters

window IntPtr

The window

brightness float

The brightness

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

window IntPtr

The window

name string

The name

userdata IntPtr

The userdata

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

window IntPtr

The window

mode DisplayMode

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

window IntPtr

The window

mode IntPtr

The mode

Returns

int

The int

SetWindowFullscreen(IntPtr, uint)

Sets the window fullscreen using the specified window

public static int SetWindowFullscreen(IntPtr window, uint flags)

Parameters

window IntPtr

The window

flags uint

The flags

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

window IntPtr

The window

red ushort[]

The red

green ushort[]

The green

blue ushort[]

The blue

Returns

int

The int

SetWindowGrab(IntPtr, bool)

Sets the window grab using the specified window

public static void SetWindowGrab(IntPtr window, bool grabbed)

Parameters

window IntPtr

The window

grabbed bool

The grabbed

SetWindowHitTest(IntPtr, SdlHitTest, IntPtr)

Sets the window hit test using the specified window

public static int SetWindowHitTest(IntPtr window, SdlHitTest callback, IntPtr callbackData)

Parameters

window IntPtr

The window

callback SdlHitTest

The callback

callbackData IntPtr

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

window IntPtr

The window

icon IntPtr

The icon

SetWindowInputFocus(IntPtr)

Sets the window input focus using the specified window

public static int SetWindowInputFocus(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

maxW int

The max

maxH int

The max

SetWindowMinimumSize(IntPtr, int, int)

Sets the window minimum size using the specified window

public static void SetWindowMinimumSize(IntPtr window, int minW, int minH)

Parameters

window IntPtr

The window

minW int

The min

minH int

The min

SetWindowModalFor(IntPtr, IntPtr)

Sets the window modal for using the specified modal window

public static int SetWindowModalFor(IntPtr modalWindow, IntPtr parentWindow)

Parameters

modalWindow IntPtr

The modal window

parentWindow IntPtr

The parent window

Returns

int

The int

SetWindowOpacity(IntPtr, float)

Sets the window opacity using the specified window

public static int SetWindowOpacity(IntPtr window, float opacity)

Parameters

window IntPtr

The window

opacity float

The opacity

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

window IntPtr

The window

x int

The

y int

The

SetWindowResizable(IntPtr, bool)

Sets the window resizable using the specified window

public static void SetWindowResizable(IntPtr window, bool resizable)

Parameters

window IntPtr

The window

resizable bool

The resizable

SetWindowSize(IntPtr, int, int)

Sets the window size using the specified window

public static void SetWindowSize(IntPtr window, int w, int h)

Parameters

window IntPtr

The window

w int

The

h int

The

SetWindowTitle(IntPtr, string)

Sdl the set window title using the specified window

public static void SetWindowTitle(IntPtr window, string title)

Parameters

window IntPtr

The window

title string

The title

ShowCursor(int)

Shows the cursor using the specified toggle

public static int ShowCursor(int toggle)

Parameters

toggle int

The toggle

Returns

int

The int

ShowWindow(IntPtr)

Shows the window using the specified window

public static void ShowWindow(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

UnbindTexture(IntPtr)

Gls the unbind texture using the specified texture

public static int UnbindTexture(IntPtr texture)

Parameters

texture IntPtr

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

texture IntPtr

The texture

rect RectangleI

The rect

pixels IntPtr

The pixels

pitch int

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

texture IntPtr

The texture

rect IntPtr

The rect

pixels IntPtr

The pixels

pitch int

The pitch

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

texture IntPtr

The texture

rect IntPtr

The rect

pixels byte[]

The pixels

pitch int

The pitch

Returns

int

The int

UpdateWindowSurface(IntPtr)

Updates the window surface using the specified window

public static int UpdateWindowSurface(IntPtr window)

Parameters

window IntPtr

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

window IntPtr

The window

rects RectangleI[]

The rects

numRects int

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

src IntPtr

The src

srcRect RectangleI

The src rect

dst IntPtr

The dst

dstRect RectangleI

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

src IntPtr

The src

srcRect RectangleI

The src rect

dst IntPtr

The dst

dstRect RectangleI

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

x int

The

y int

The

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

window IntPtr

The window

x int

The

y int

The

WasInit(InitSettings)

Sdl the was init using the specified flags

public static uint WasInit(InitSettings flags)

Parameters

flags InitSettings

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

x int

The

Returns

int

The int

WindowPosIsCentered(int)

Describes whether sdl window pos is centered

public static bool WindowPosIsCentered(int x)

Parameters

x int

The

Returns

bool

The bool

WindowPosIsUndefined(int)

Describes whether sdl window pos is undefined

public static bool WindowPosIsUndefined(int x)

Parameters

x int

The

Returns

bool

The bool

WindowPosUndefinedDisplay(int)

Sdl the window pos undefined display using the specified x

public static int WindowPosUndefinedDisplay(int x)

Parameters

x int

The

Returns

int

The int