Class NativeSdl
- Namespace
- Alis.Core.Graphic.Sdl2
- Assembly
- Alis.dll
The native sdl class
internal static class NativeSdl
Inheritance
Inherited Members
Constructors
NativeSdl()
Initializes a new instance of the Alis.Core.Graphic.Sdl2.Sdl class
private static NativeSdl()
Fields
NativeLibName
The native lib name
private const string NativeLibName = "sdl2"
Field Value
Methods
InternalAddEventWatch(SdlEventFilter, IntPtr)
Sdl the add event watch using the specified filter
internal static extern void InternalAddEventWatch(SdlEventFilter filter, IntPtr userdata)
Parameters
filter
SdlEventFilter-
The filter
userdata
IntPtr-
The userdata
InternalAudioStreamAvailable(IntPtr)
Sdl the audio stream available using the specified stream
internal static extern int InternalAudioStreamAvailable(IntPtr stream)
Parameters
stream
IntPtr-
The stream
Returns
- int
-
The int
InternalAudioStreamClear(IntPtr)
Sdl the audio stream clear using the specified stream
internal static extern void InternalAudioStreamClear(IntPtr stream)
Parameters
stream
IntPtr-
The stream
InternalAudioStreamGet(IntPtr, IntPtr, int)
Sdl the audio stream get using the specified stream
internal static extern int InternalAudioStreamGet(IntPtr stream, IntPtr buf, int len)
Parameters
Returns
- int
-
The int
InternalAudioStreamPut(IntPtr, IntPtr, int)
Sdl the audio stream put using the specified stream
internal static extern int InternalAudioStreamPut(IntPtr stream, IntPtr buf, int len)
Parameters
Returns
- int
-
The int
InternalBlitSurface(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Sdl the blit surface using the specified src
internal static extern int InternalBlitSurface(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
InternalBlitSurface(IntPtr, IntPtr, IntPtr, ref RectangleI)
Sdl the blit surface using the specified src
internal static extern int InternalBlitSurface(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
InternalBlitSurface(IntPtr, ref RectangleI, IntPtr, IntPtr)
Sdl the blit surface using the specified src
internal static extern int InternalBlitSurface(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
InternalBlitSurface(IntPtr, IntPtr, IntPtr, IntPtr)
Sdl the blit surface using the specified src
internal static extern int InternalBlitSurface(IntPtr src, IntPtr srcRect, IntPtr dst, IntPtr dstRect)
Parameters
Returns
- int
-
The int
InternalCalculateGammaRamp(float, ushort[])
Sdl the calculate gamma ramp using the specified gamma
internal static extern void InternalCalculateGammaRamp(float gamma, ushort[] ramp)
Parameters
InternalCaptureMouse(bool)
Sdl the capture mouse using the specified enabled
internal static extern int InternalCaptureMouse(bool enabled)
Parameters
enabled
bool-
The enabled
Returns
- int
-
The int
InternalClearHints()
Sdl the clear hints
internal static extern void InternalClearHints()
InternalCloseAudioDevice(uint)
Sdl the close audio device using the specified dev
internal static extern void InternalCloseAudioDevice(uint dev)
Parameters
dev
uint-
The dev
InternalComposeCustomBlendMode(BlendFactor, BlendFactor, BlendOperation, BlendFactor, BlendFactor, BlendOperation)
Sdl the compose custom blend mode using the specified src color factor
internal static extern BlendModes InternalComposeCustomBlendMode(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
InternalConvertSurface(IntPtr, IntPtr, uint)
Sdl the convert surface using the specified src
internal static extern IntPtr InternalConvertSurface(IntPtr src, IntPtr fmt, uint flags)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateColorCursor(IntPtr, int, int)
Sdl the create color cursor using the specified surface
internal static extern IntPtr InternalCreateColorCursor(IntPtr surface, int hotX, int hotY)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateCursor(IntPtr, IntPtr, int, int, int, int)
Sdl the create cursor using the specified data
internal static extern IntPtr InternalCreateCursor(IntPtr data, IntPtr mask, int w, int h, int hotX, int hotY)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateRGBSurfaceWithFormat(uint, int, int, int, uint)
Sdl the create rgb surface with format using the specified flags
internal static extern IntPtr InternalCreateRGBSurfaceWithFormat(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
InternalCreateRenderer(IntPtr, int, Renderers)
Sdl the create renderer using the specified window
internal static extern IntPtr InternalCreateRenderer(IntPtr window, int index, Renderers flags)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateSoftwareRenderer(IntPtr)
Sdl the create software renderer using the specified surface
internal static extern IntPtr InternalCreateSoftwareRenderer(IntPtr surface)
Parameters
surface
IntPtr-
The surface
Returns
- IntPtr
-
The int ptr
InternalCreateSystemCursor(SystemCursor)
Sdl the create system cursor using the specified id
internal static extern IntPtr InternalCreateSystemCursor(SystemCursor id)
Parameters
id
SystemCursor-
The id
Returns
- IntPtr
-
The int ptr
InternalCreateTexture(IntPtr, uint, int, int, int)
Sdl the create texture using the specified renderer
internal static extern IntPtr InternalCreateTexture(IntPtr renderer, uint format, int access, int w, int h)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateTextureFromSurface(IntPtr, IntPtr)
Sdl the create texture from surface using the specified renderer
internal static extern IntPtr InternalCreateTextureFromSurface(IntPtr renderer, IntPtr surface)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateWindow(string, int, int, int, int, WindowSettings)
Internals the sdl create window using the specified title
internal static extern IntPtr InternalCreateWindow(string title, int x, int y, int w, int h, WindowSettings flags)
Parameters
Returns
- IntPtr
-
The int ptr
InternalCreateWindowAndRenderer(int, int, WindowSettings, out IntPtr, out IntPtr)
Sdl the create window and renderer using the specified width
internal static extern int InternalCreateWindowAndRenderer(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
InternalDelEventWatch(SdlEventFilter, IntPtr)
Sdl the del event watch using the specified filter
internal static extern void InternalDelEventWatch(SdlEventFilter filter, IntPtr userdata)
Parameters
filter
SdlEventFilter-
The filter
userdata
IntPtr-
The userdata
InternalDestroyRenderer(IntPtr)
Sdl the destroy renderer using the specified renderer
internal static extern void InternalDestroyRenderer(IntPtr renderer)
Parameters
renderer
IntPtr-
The renderer
InternalDestroyTexture(IntPtr)
Sdl the destroy texture using the specified texture
internal static extern void InternalDestroyTexture(IntPtr texture)
Parameters
texture
IntPtr-
The texture
InternalDestroyWindow(IntPtr)
Sdl the destroy window using the specified window
internal static extern void InternalDestroyWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalEventState(EventType, int)
Sdl the event state using the specified type
internal static extern byte InternalEventState(EventType type, int state)
Parameters
Returns
- byte
-
The byte
InternalFillRect(IntPtr, ref RectangleI, uint)
Sdl the fill rect using the specified dst
internal static extern int InternalFillRect(IntPtr dst, ref RectangleI rect, uint color)
Parameters
dst
IntPtr-
The dst
rect
RectangleI-
The rect
color
uint-
The color
Returns
- int
-
The int
InternalFillRect(IntPtr, IntPtr, uint)
Sdl the fill rect using the specified dst
internal static extern int InternalFillRect(IntPtr dst, IntPtr rect, uint color)
Parameters
Returns
- int
-
The int
InternalFillRects(IntPtr, RectangleI[], int, uint)
Sdl the fill rects using the specified dst
internal static extern int InternalFillRects(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
InternalFlushEvent(EventType)
Sdl the flush event using the specified type
internal static extern void InternalFlushEvent(EventType type)
Parameters
type
EventType-
The type
InternalFreeAudioStream(IntPtr)
Sdl the free audio stream using the specified stream
internal static extern void InternalFreeAudioStream(IntPtr stream)
Parameters
stream
IntPtr-
The stream
InternalFreeCursor(IntPtr)
Sdl the free cursor using the specified cursor
internal static extern void InternalFreeCursor(IntPtr cursor)
Parameters
cursor
IntPtr-
The cursor
InternalGameControllerAddMapping(string)
Internals the sdl game controller add mapping using the specified mapping string
internal static extern int InternalGameControllerAddMapping(string mappingString)
Parameters
mappingString
string-
The mapping string
Returns
- int
-
The int
InternalGameControllerAddMappingsFromRW(IntPtr, int)
Internals the sdl game controller add mappings from rw using the specified rw
internal static extern int InternalGameControllerAddMappingsFromRW(IntPtr rw, int freeRw)
Parameters
Returns
- int
-
The int
InternalGameControllerClose(IntPtr)
Sdl the game controller close using the specified game controller
internal static extern void InternalGameControllerClose(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
InternalGameControllerEventState(int)
Sdl the game controller event state using the specified state
internal static extern int InternalGameControllerEventState(int state)
Parameters
state
int-
The state
Returns
- int
-
The int
InternalGameControllerFromInstanceID(int)
Sdl the game controller from instance id using the specified joy id
internal static extern IntPtr InternalGameControllerFromInstanceID(int joyId)
Parameters
joyId
int-
The joy id
Returns
- IntPtr
-
The int ptr
InternalGameControllerGetAttached(IntPtr)
Sdl the game controller get attached using the specified game controller
internal static extern bool InternalGameControllerGetAttached(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- bool
-
The sdl bool
InternalGameControllerGetAxis(IntPtr, GameControllerAxis)
Sdl the game controller get axis using the specified game controller
internal static extern short InternalGameControllerGetAxis(IntPtr gameController, GameControllerAxis axis)
Parameters
gameController
IntPtr-
The game controller
axis
GameControllerAxis-
The axis
Returns
- short
-
The short
InternalGameControllerGetAxisFromString(string)
Internals the sdl game controller get axis from string using the specified pch string
internal static extern GameControllerAxis InternalGameControllerGetAxisFromString(string pchString)
Parameters
pchString
string-
The pch string
Returns
- GameControllerAxis
-
The sdl game controller axis
InternalGameControllerGetBindForAxis(IntPtr, GameControllerAxis)
Internals the sdl game controller get bind for axis using the specified game controller
internal static extern InternalSdlGameControllerButtonBind InternalGameControllerGetBindForAxis(IntPtr gameController, GameControllerAxis axis)
Parameters
gameController
IntPtr-
The game controller
axis
GameControllerAxis-
The axis
Returns
- InternalSdlGameControllerButtonBind
-
The internal sdl game controller button bind
InternalGameControllerGetBindForButton(IntPtr, GameControllerButton)
Internals the sdl game controller get bind for button using the specified game controller
internal static extern InternalSdlGameControllerButtonBind InternalGameControllerGetBindForButton(IntPtr gameController, GameControllerButton button)
Parameters
gameController
IntPtr-
The game controller
button
GameControllerButton-
The button
Returns
- InternalSdlGameControllerButtonBind
-
The internal sdl game controller button bind
InternalGameControllerGetButton(IntPtr, GameControllerButton)
Sdl the game controller get button using the specified game controller
internal static extern byte InternalGameControllerGetButton(IntPtr gameController, GameControllerButton button)
Parameters
gameController
IntPtr-
The game controller
button
GameControllerButton-
The button
Returns
- byte
-
The byte
InternalGameControllerGetButtonFromString(string)
Internals the sdl game controller get button from string using the specified pch string
internal static extern GameControllerButton InternalGameControllerGetButtonFromString(string pchString)
Parameters
pchString
string-
The pch string
Returns
- GameControllerButton
-
The sdl game controller button
InternalGameControllerGetJoystick(IntPtr)
Sdl the game controller get joystick using the specified game controller
internal static extern IntPtr InternalGameControllerGetJoystick(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- IntPtr
-
The int ptr
InternalGameControllerGetProduct(IntPtr)
Sdl the game controller get product using the specified game controller
internal static extern ushort InternalGameControllerGetProduct(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- ushort
-
The ushort
InternalGameControllerGetProductVersion(IntPtr)
Sdl the game controller get product version using the specified game controller
internal static extern ushort InternalGameControllerGetProductVersion(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- ushort
-
The ushort
InternalGameControllerGetStringForAxis(GameControllerAxis)
Internals the sdl game controller get string for axis using the specified axis
internal static extern IntPtr InternalGameControllerGetStringForAxis(GameControllerAxis axis)
Parameters
axis
GameControllerAxis-
The axis
Returns
- IntPtr
-
The int ptr
InternalGameControllerGetStringForButton(GameControllerButton)
Internals the sdl game controller get string for button using the specified button
internal static extern IntPtr InternalGameControllerGetStringForButton(GameControllerButton button)
Parameters
button
GameControllerButton-
The button
Returns
- IntPtr
-
The int ptr
InternalGameControllerGetVendor(IntPtr)
Sdl the game controller get vendor using the specified game controller
internal static extern ushort InternalGameControllerGetVendor(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- ushort
-
The ushort
InternalGameControllerMapping(IntPtr)
Internals the sdl game controller mapping using the specified game controller
internal static extern IntPtr InternalGameControllerMapping(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- IntPtr
-
The int ptr
InternalGameControllerMappingForDeviceIndex(int)
Internals the sdl game controller mapping for device index using the specified joystick index
internal static extern IntPtr InternalGameControllerMappingForDeviceIndex(int joystickIndex)
Parameters
joystickIndex
int-
The joystick index
Returns
- IntPtr
-
The int ptr
InternalGameControllerMappingForGUID(Guid)
Internals the sdl game controller mapping for guid using the specified guid
internal static extern IntPtr InternalGameControllerMappingForGUID(Guid guid)
Parameters
guid
Guid-
The guid
Returns
- IntPtr
-
The int ptr
InternalGameControllerMappingForIndex(int)
Internals the sdl game controller mapping for index using the specified mapping index
internal static extern IntPtr InternalGameControllerMappingForIndex(int mappingIndex)
Parameters
mappingIndex
int-
The mapping index
Returns
- IntPtr
-
The int ptr
InternalGameControllerName(IntPtr)
Internals the sdl game controller name using the specified game controller
internal static extern IntPtr InternalGameControllerName(IntPtr gameController)
Parameters
gameController
IntPtr-
The game controller
Returns
- IntPtr
-
The int ptr
InternalGameControllerNameForIndex(int)
Internals the sdl game controller name for index using the specified joystick index
internal static extern IntPtr InternalGameControllerNameForIndex(int joystickIndex)
Parameters
joystickIndex
int-
The joystick index
Returns
- IntPtr
-
The int ptr
InternalGameControllerNumMappings()
Sdl the game controller num mappings
internal static extern int InternalGameControllerNumMappings()
Returns
- int
-
The int
InternalGameControllerOpen(int)
Sdl the game controller open using the specified joystick index
internal static extern IntPtr InternalGameControllerOpen(int joystickIndex)
Parameters
joystickIndex
int-
The joystick index
Returns
- IntPtr
-
The int ptr
InternalGameControllerRumble(IntPtr, ushort, ushort, uint)
Sdl the game controller rumble using the specified game controller
internal static extern int InternalGameControllerRumble(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
InternalGameControllerUpdate()
Sdl the game controller update
internal static extern void InternalGameControllerUpdate()
InternalGetAudioDeviceName(int, int)
Internals the sdl get audio device name using the specified index
internal static extern IntPtr InternalGetAudioDeviceName(int index, int isCapture)
Parameters
Returns
- IntPtr
-
The int ptr
InternalGetAudioDeviceStatus(uint)
Sdl the get audio device status using the specified dev
internal static extern AudioStatus InternalGetAudioDeviceStatus(uint dev)
Parameters
dev
uint-
The dev
Returns
- AudioStatus
-
The sdl audio status
InternalGetAudioDriver(int)
Internals the sdl get audio driver using the specified index
internal static extern IntPtr InternalGetAudioDriver(int index)
Parameters
index
int-
The index
Returns
- IntPtr
-
The int ptr
InternalGetClipRect(IntPtr, out RectangleI)
Sdl the get clip rect using the specified surface
internal static extern void InternalGetClipRect(IntPtr surface, out RectangleI rect)
Parameters
surface
IntPtr-
The surface
rect
RectangleI-
The rect
InternalGetClipboardText()
Internals the sdl get clipboard text
internal static extern IntPtr InternalGetClipboardText()
Returns
- IntPtr
-
The int ptr
InternalGetClosestDisplayMode(int, ref DisplayMode, out DisplayMode)
Sdl the get closest display mode using the specified display index
internal static extern IntPtr InternalGetClosestDisplayMode(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
InternalGetColorKey(IntPtr, out uint)
Sdl the get color key using the specified surface
internal static extern int InternalGetColorKey(IntPtr surface, out uint key)
Parameters
Returns
- int
-
The int
InternalGetCurrentAudioDriver()
Internals the sdl get current audio driver
internal static extern IntPtr InternalGetCurrentAudioDriver()
Returns
- IntPtr
-
The int ptr
InternalGetCurrentDisplayMode(int, out DisplayMode)
Sdl the get current display mode using the specified display index
internal static extern int InternalGetCurrentDisplayMode(int displayIndex, out DisplayMode mode)
Parameters
displayIndex
int-
The display index
mode
DisplayMode-
The mode
Returns
- int
-
The int
InternalGetCurrentVideoDriver()
Internals the sdl get current video driver
internal static extern IntPtr InternalGetCurrentVideoDriver()
Returns
- IntPtr
-
The int ptr
InternalGetCursor()
Sdl the get cursor
internal static extern IntPtr InternalGetCursor()
Returns
- IntPtr
-
The int ptr
InternalGetDesktopDisplayMode(int, out DisplayMode)
Sdl the get desktop display mode using the specified display index
internal static extern int InternalGetDesktopDisplayMode(int displayIndex, out DisplayMode mode)
Parameters
displayIndex
int-
The display index
mode
DisplayMode-
The mode
Returns
- int
-
The int
InternalGetDisplayBounds(int, out RectangleI)
Sdl the get display bounds using the specified display index
internal static extern int InternalGetDisplayBounds(int displayIndex, out RectangleI rect)
Parameters
displayIndex
int-
The display index
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalGetDisplayDPI(int, out float, out float, out float)
Sdl the get display dpi using the specified display index
internal static extern int InternalGetDisplayDPI(int displayIndex, out float dDpi, out float hDpi, out float vDpi)
Parameters
Returns
- int
-
The int
InternalGetDisplayMode(int, int, out DisplayMode)
Sdl the get display mode using the specified display index
internal static extern int InternalGetDisplayMode(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
InternalGetDisplayName(int)
Internals the sdl get display name using the specified index
internal static extern IntPtr InternalGetDisplayName(int index)
Parameters
index
int-
The index
Returns
- IntPtr
-
The int ptr
InternalGetDisplayUsableBounds(int, out RectangleI)
Sdl the get display usable bounds using the specified display index
internal static extern int InternalGetDisplayUsableBounds(int displayIndex, out RectangleI rect)
Parameters
displayIndex
int-
The display index
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalGetError()
Internals the sdl get error
internal static extern IntPtr InternalGetError()
Returns
- IntPtr
-
The int ptr
InternalGetEventFilter(out IntPtr, out IntPtr)
Sdl the get event filter using the specified filter
internal static extern bool InternalGetEventFilter(out IntPtr filter, out IntPtr userdata)
Parameters
Returns
- bool
-
The sdl bool
InternalGetGlobalMouseState(out int, out int)
Sdl the get global mouse state using the specified x
internal static extern uint InternalGetGlobalMouseState(out int x, out int y)
Parameters
Returns
- uint
-
The int 32
InternalGetGlobalMouseState(IntPtr, IntPtr)
Sdl the get global mouse state using the specified x
internal static extern uint InternalGetGlobalMouseState(IntPtr x, IntPtr y)
Parameters
Returns
- uint
-
The int 32
InternalGetGrabbedWindow()
Sdl the get grabbed window
internal static extern IntPtr InternalGetGrabbedWindow()
Returns
- IntPtr
-
The int ptr
InternalGetHint(string)
Internals the sdl get hint using the specified name
internal static extern IntPtr InternalGetHint(string name)
Parameters
name
string-
The name
Returns
- IntPtr
-
The int ptr
InternalGetHintBoolean(string, bool)
Internals the sdl get hint boolean using the specified name
internal static extern bool InternalGetHintBoolean(string name, bool defaultValue)
Parameters
Returns
- bool
-
The sdl bool
InternalGetKeyFromName(string)
Internals the sdl get key from name using the specified name
internal static extern KeyCodes InternalGetKeyFromName(string name)
Parameters
name
string-
The name
Returns
- KeyCodes
-
The sdl keycode
InternalGetKeyFromScancode(SdlScancode)
Sdl the get key from scancode using the specified scancode
internal static extern KeyCodes InternalGetKeyFromScancode(SdlScancode scancode)
Parameters
scancode
SdlScancode-
The scancode
Returns
- KeyCodes
-
The sdl keycode
InternalGetKeyName(KeyCodes)
Internals the sdl get key name using the specified key
internal static extern IntPtr InternalGetKeyName(KeyCodes key)
Parameters
key
KeyCodes-
The key
Returns
- IntPtr
-
The int ptr
InternalGetKeyboardFocus()
Sdl the get keyboard focus
internal static extern IntPtr InternalGetKeyboardFocus()
Returns
- IntPtr
-
The int ptr
InternalGetKeyboardState(out int)
Sdl the get keyboard state using the specified num keys
internal static extern IntPtr InternalGetKeyboardState(out int numKeys)
Parameters
numKeys
int-
The num keys
Returns
- IntPtr
-
The int ptr
InternalGetModState()
Sdl the get mod state
internal static extern KeyMods InternalGetModState()
Returns
- KeyMods
-
The sdl key mod
InternalGetMouseFocus()
Sdl the get mouse focus
internal static extern IntPtr InternalGetMouseFocus()
Returns
- IntPtr
-
The int ptr
InternalGetMouseState(out int, out int)
Sdl the get mouse state using the specified x
internal static extern uint InternalGetMouseState(out int x, out int y)
Parameters
Returns
- uint
-
The int 32
InternalGetMouseState(IntPtr, out int)
Sdl the get mouse state using the specified x
internal static extern uint InternalGetMouseState(IntPtr x, out int y)
Parameters
Returns
- uint
-
The int 32
InternalGetMouseState(out int, IntPtr)
Sdl the get mouse state using the specified x
internal static extern uint InternalGetMouseState(out int x, IntPtr y)
Parameters
Returns
- uint
-
The int 32
InternalGetMouseState(IntPtr, IntPtr)
Sdl the get mouse state using the specified x
internal static extern uint InternalGetMouseState(IntPtr x, IntPtr y)
Parameters
Returns
- uint
-
The int 32
InternalGetNumAudioDevices(int)
Sdl the get num audio devices using the specified is capture
internal static extern int InternalGetNumAudioDevices(int isCapture)
Parameters
isCapture
int-
The is capture
Returns
- int
-
The int
InternalGetNumAudioDrivers()
Sdl the get num audio drivers
internal static extern int InternalGetNumAudioDrivers()
Returns
- int
-
The int
InternalGetNumDisplayModes(int)
Sdl the get num display modes using the specified display index
internal static extern int InternalGetNumDisplayModes(int displayIndex)
Parameters
displayIndex
int-
The display index
Returns
- int
-
The int
InternalGetNumRenderDrivers()
Sdl the get num render drivers
internal static extern int InternalGetNumRenderDrivers()
Returns
- int
-
The int
InternalGetNumTouchFingers(long)
Sdl the get num touch fingers using the specified touch id
internal static extern int InternalGetNumTouchFingers(long touchId)
Parameters
touchId
long-
The touch id
Returns
- int
-
The int
InternalGetNumVideoDisplays()
Sdl the get num video displays
internal static extern int InternalGetNumVideoDisplays()
Returns
- int
-
The int
InternalGetNumVideoDrivers()
Sdl the get num video drivers
internal static extern int InternalGetNumVideoDrivers()
Returns
- int
-
The int
InternalGetPerformanceCounter()
Sdl the get performance counter
internal static extern ulong InternalGetPerformanceCounter()
Returns
- ulong
-
The int 64
InternalGetPerformanceFrequency()
Sdl the get performance frequency
internal static extern ulong InternalGetPerformanceFrequency()
Returns
- ulong
-
The int 64
InternalGetPixelFormatName(uint)
Internals the sdl get pixel format name using the specified format
internal static extern IntPtr InternalGetPixelFormatName(uint format)
Parameters
format
uint-
The format
Returns
- IntPtr
-
The int ptr
InternalGetRelativeMouseMode()
Sdl the get relative mouse mode
internal static extern bool InternalGetRelativeMouseMode()
Returns
- bool
-
The sdl bool
InternalGetRelativeMouseState(out int, out int)
Sdl the get relative mouse state using the specified x
internal static extern uint InternalGetRelativeMouseState(out int x, out int y)
Parameters
Returns
- uint
-
The int 32
InternalGetRenderDrawBlendMode(IntPtr, out BlendModes)
Sdl the get render draw blend mode using the specified renderer
internal static extern int InternalGetRenderDrawBlendMode(IntPtr renderer, out BlendModes blendMode)
Parameters
renderer
IntPtr-
The renderer
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalGetRenderDrawColor(IntPtr, out byte, out byte, out byte, out byte)
Sdl the get render draw color using the specified renderer
internal static extern int InternalGetRenderDrawColor(IntPtr renderer, out byte r, out byte g, out byte b, out byte a)
Parameters
Returns
- int
-
The int
InternalGetRenderDriverInfo(int, out RendererInfo)
Sdl the get render driver info using the specified index
internal static extern int InternalGetRenderDriverInfo(int index, out RendererInfo info)
Parameters
index
int-
The index
info
RendererInfo-
The info
Returns
- int
-
The int
InternalGetRenderer(IntPtr)
Sdl the get renderer using the specified window
internal static extern IntPtr InternalGetRenderer(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- IntPtr
-
The int ptr
InternalGetRendererInfo(IntPtr, out RendererInfo)
Sdl the get renderer info using the specified renderer
internal static extern int InternalGetRendererInfo(IntPtr renderer, out RendererInfo info)
Parameters
renderer
IntPtr-
The renderer
info
RendererInfo-
The info
Returns
- int
-
The int
InternalGetRendererOutputSize(IntPtr, out int, out int)
Sdl the get renderer output size using the specified renderer
internal static extern int InternalGetRendererOutputSize(IntPtr renderer, out int w, out int h)
Parameters
Returns
- int
-
The int
InternalGetScancodeFromKey(KeyCodes)
Sdl the get scancode from key using the specified key
internal static extern SdlScancode InternalGetScancodeFromKey(KeyCodes key)
Parameters
key
KeyCodes-
The key
Returns
- SdlScancode
-
The sdl scancode
InternalGetScancodeFromName(string)
Internals the sdl get scancode from name using the specified name
internal static extern SdlScancode InternalGetScancodeFromName(string name)
Parameters
name
string-
The name
Returns
- SdlScancode
-
The sdl scancode
InternalGetScancodeName(SdlScancode)
Internals the sdl get scancode name using the specified scancode
internal static extern IntPtr InternalGetScancodeName(SdlScancode scancode)
Parameters
scancode
SdlScancode-
The scancode
Returns
- IntPtr
-
The int ptr
InternalGetSurfaceAlphaMod(IntPtr, out byte)
Sdl the get surface alpha mod using the specified surface
internal static extern int InternalGetSurfaceAlphaMod(IntPtr surface, out byte alpha)
Parameters
Returns
- int
-
The int
InternalGetSurfaceBlendMode(IntPtr, out BlendModes)
Sdl the get surface blend mode using the specified surface
internal static extern int InternalGetSurfaceBlendMode(IntPtr surface, out BlendModes blendMode)
Parameters
surface
IntPtr-
The surface
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalGetSurfaceColorMod(IntPtr, out byte, out byte, out byte)
Sdl the get surface color mod using the specified surface
internal static extern int InternalGetSurfaceColorMod(IntPtr surface, out byte r, out byte g, out byte b)
Parameters
Returns
- int
-
The int
InternalGetTextureAlphaMod(IntPtr, out byte)
Sdl the get texture alpha mod using the specified texture
internal static extern int InternalGetTextureAlphaMod(IntPtr texture, out byte alpha)
Parameters
Returns
- int
-
The int
InternalGetTextureBlendMode(IntPtr, out BlendModes)
Sdl the get texture blend mode using the specified texture
internal static extern int InternalGetTextureBlendMode(IntPtr texture, out BlendModes blendMode)
Parameters
texture
IntPtr-
The texture
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalGetTextureColorMod(IntPtr, out byte, out byte, out byte)
Sdl the get texture color mod using the specified texture
internal static extern int InternalGetTextureColorMod(IntPtr texture, out byte r, out byte g, out byte b)
Parameters
Returns
- int
-
The int
InternalGetTouchDevice(int)
Sdl the get touch device using the specified index
internal static extern long InternalGetTouchDevice(int index)
Parameters
index
int-
The index
Returns
- long
-
The long
InternalGetTouchDeviceType(long)
Sdl the get touch device type using the specified touch id
internal static extern TouchDeviceType InternalGetTouchDeviceType(long touchId)
Parameters
touchId
long-
The touch id
Returns
- TouchDeviceType
-
The sdl touch device type
InternalGetTouchFinger(long, int)
Sdl the get touch finger using the specified touch id
internal static extern IntPtr InternalGetTouchFinger(long touchId, int index)
Parameters
Returns
- IntPtr
-
The int ptr
InternalGetVideoDriver(int)
Internals the sdl get video driver using the specified index
internal static extern IntPtr InternalGetVideoDriver(int index)
Parameters
index
int-
The index
Returns
- IntPtr
-
The int ptr
InternalGetWindowBordersSize(IntPtr, out int, out int, out int, out int)
Sdl the get window borders size using the specified window
internal static extern int InternalGetWindowBordersSize(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
InternalGetWindowBrightness(IntPtr)
Sdl the get window brightness using the specified window
internal static extern float InternalGetWindowBrightness(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- float
-
The float
InternalGetWindowData(IntPtr, string)
Internals the sdl get window data using the specified window
internal static extern IntPtr InternalGetWindowData(IntPtr window, string name)
Parameters
Returns
- IntPtr
-
The int ptr
InternalGetWindowDisplayIndex(IntPtr)
Sdl the get window display index using the specified window
internal static extern int InternalGetWindowDisplayIndex(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- int
-
The int
InternalGetWindowDisplayMode(IntPtr, out DisplayMode)
Sdl the get window display mode using the specified window
internal static extern int InternalGetWindowDisplayMode(IntPtr window, out DisplayMode mode)
Parameters
window
IntPtr-
The window
mode
DisplayMode-
The mode
Returns
- int
-
The int
InternalGetWindowFlags(IntPtr)
Sdl the get window flags using the specified window
internal static extern uint InternalGetWindowFlags(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- uint
-
The uint
InternalGetWindowFromID(uint)
Sdl the get window from id using the specified id
internal static extern IntPtr InternalGetWindowFromID(uint id)
Parameters
id
uint-
The id
Returns
- IntPtr
-
The int ptr
InternalGetWindowGammaRamp(IntPtr, ushort[], ushort[], ushort[])
Sdl the get window gamma ramp using the specified window
internal static extern int InternalGetWindowGammaRamp(IntPtr window, ushort[] red, ushort[] green, ushort[] blue)
Parameters
Returns
- int
-
The int
InternalGetWindowGrab(IntPtr)
Sdl the get window grab using the specified window
internal static extern bool InternalGetWindowGrab(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- bool
-
The sdl bool
InternalGetWindowID(IntPtr)
Sdl the get window id using the specified window
internal static extern uint InternalGetWindowID(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- uint
-
The uint
InternalGetWindowMaximumSize(IntPtr, out int, out int)
Sdl the get window maximum size using the specified window
internal static extern void InternalGetWindowMaximumSize(IntPtr window, out int maxW, out int maxH)
Parameters
InternalGetWindowMinimumSize(IntPtr, out int, out int)
Sdl the get window minimum size using the specified window
internal static extern void InternalGetWindowMinimumSize(IntPtr window, out int minW, out int minH)
Parameters
InternalGetWindowOpacity(IntPtr, out float)
Sdl the get window opacity using the specified window
internal static extern int InternalGetWindowOpacity(IntPtr window, out float outOpacity)
Parameters
Returns
- int
-
The int
InternalGetWindowPixelFormat(IntPtr)
Sdl the get window pixel format using the specified window
internal static extern uint InternalGetWindowPixelFormat(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- uint
-
The uint
InternalGetWindowPosition(IntPtr, out int, out int)
Sdl the get window position using the specified window
internal static extern void InternalGetWindowPosition(IntPtr window, out int x, out int y)
Parameters
InternalGetWindowSize(IntPtr, out int, out int)
Sdl the get window size using the specified window
internal static extern void InternalGetWindowSize(IntPtr window, out int w, out int h)
Parameters
InternalGetWindowSurface(IntPtr)
Sdl the get window surface using the specified window
internal static extern IntPtr InternalGetWindowSurface(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- IntPtr
-
The int ptr
InternalGetWindowTitle(IntPtr)
Internals the sdl get window title using the specified window
internal static extern IntPtr InternalGetWindowTitle(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- IntPtr
-
The int ptr
InternalGlBindTexture(IntPtr, out float, out float)
Sdl the gl bind texture using the specified texture
internal static extern int InternalGlBindTexture(IntPtr texture, out float texW, out float texH)
Parameters
Returns
- int
-
The int
InternalGlCreateContext(IntPtr)
Sdl the gl create context using the specified window
internal static extern IntPtr InternalGlCreateContext(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- IntPtr
-
The int ptr
InternalGlDeleteContext(IntPtr)
Sdl the gl delete context using the specified context
internal static extern void InternalGlDeleteContext(IntPtr context)
Parameters
context
IntPtr-
The context
InternalGlExtensionSupported(string)
Internals the sdl gl extension supported using the specified extension
internal static extern bool InternalGlExtensionSupported(string extension)
Parameters
extension
string-
The extension
Returns
- bool
-
The sdl bool
InternalGlGetAttribute(Attr, out int)
Sdl the gl get attribute using the specified attr
internal static extern int InternalGlGetAttribute(Attr attr, out int value)
Parameters
Returns
- int
-
The int
InternalGlGetCurrentContext()
Sdl the gl get current context
internal static extern IntPtr InternalGlGetCurrentContext()
Returns
- IntPtr
-
The int ptr
InternalGlGetCurrentWindow()
Sdl the gl get current window
internal static extern IntPtr InternalGlGetCurrentWindow()
Returns
- IntPtr
-
The int ptr
InternalGlGetDrawableSize(IntPtr, out int, out int)
Sdl the gl get drawable size using the specified window
internal static extern void InternalGlGetDrawableSize(IntPtr window, out int w, out int h)
Parameters
InternalGlGetProcAddress(string)
Sdl the gl get proc address using the specified proc
internal static extern IntPtr InternalGlGetProcAddress(string proc)
Parameters
proc
string-
The proc
Returns
- IntPtr
-
The int ptr
InternalGlGetSwapInterval()
Sdl the gl get swap interval
internal static extern int InternalGlGetSwapInterval()
Returns
- int
-
The int
InternalGlLoadLibrary(string)
Internals the sdl gl load library using the specified path
internal static extern int InternalGlLoadLibrary(string path)
Parameters
path
string-
The path
Returns
- int
-
The int
InternalGlMakeCurrent(IntPtr, IntPtr)
Sdl the gl make current using the specified window
internal static extern int InternalGlMakeCurrent(IntPtr window, IntPtr context)
Parameters
Returns
- int
-
The int
InternalGlResetAttributes()
Sdl the gl reset attributes
internal static extern void InternalGlResetAttributes()
InternalGlSetAttribute(Attr, int)
Sdl the gl set attribute using the specified attr
internal static extern int InternalGlSetAttribute(Attr attr, int value)
Parameters
Returns
- int
-
The int
InternalGlSetSwapInterval(int)
Sdl the gl set swap interval using the specified interval
internal static extern int InternalGlSetSwapInterval(int interval)
Parameters
interval
int-
The interval
Returns
- int
-
The int
InternalGlSwapWindow(IntPtr)
Sdl the gl swap window using the specified window
internal static extern void InternalGlSwapWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalGlUnbindTexture(IntPtr)
Sdl the gl unbind texture using the specified texture
internal static extern int InternalGlUnbindTexture(IntPtr texture)
Parameters
texture
IntPtr-
The texture
Returns
- int
-
The int
InternalHasClipboardText()
Sdl the has clipboard text
internal static extern bool InternalHasClipboardText()
Returns
- bool
-
The sdl bool
InternalHasColorKey(IntPtr)
Sdl the has color key using the specified surface
internal static extern bool InternalHasColorKey(IntPtr surface)
Parameters
surface
IntPtr-
The surface
Returns
- bool
-
The sdl bool
InternalHasEvent(EventType)
Sdl the has event using the specified type
internal static extern bool InternalHasEvent(EventType type)
Parameters
type
EventType-
The type
Returns
- bool
-
The sdl bool
InternalHasEvents(EventType, EventType)
Sdl the has events using the specified min type
internal static extern bool InternalHasEvents(EventType minType, EventType maxType)
Parameters
Returns
- bool
-
The sdl bool
InternalHasScreenKeyboardSupport()
Sdl the has screen keyboard support
internal static extern bool InternalHasScreenKeyboardSupport()
Returns
- bool
-
The sdl bool
InternalHideWindow(IntPtr)
Sdl the hide window using the specified window
internal static extern void InternalHideWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalInit(InitSettings)
Sdl the init using the specified flags
internal static extern int InternalInit(InitSettings flags)
Parameters
flags
InitSettings-
The flags
Returns
- int
-
The int
InternalIsGameController(int)
Sdl the is game controller using the specified joystick index
internal static extern bool InternalIsGameController(int joystickIndex)
Parameters
joystickIndex
int-
The joystick index
Returns
- bool
-
The sdl bool
InternalIsScreenKeyboardShown(IntPtr)
Sdl the is screen keyboard shown using the specified window
internal static extern bool InternalIsScreenKeyboardShown(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- bool
-
The sdl bool
InternalIsTextInputActive()
Sdl the is text input active
internal static extern bool InternalIsTextInputActive()
Returns
- bool
-
The sdl bool
InternalJoystickClose(IntPtr)
Sdl the joystick close using the specified joystick
internal static extern void InternalJoystickClose(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
InternalJoystickCurrentPowerLevel(IntPtr)
Sdl the joystick current power level using the specified joystick
internal static extern JoystickPowerLevel InternalJoystickCurrentPowerLevel(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- JoystickPowerLevel
-
The sdl joystick power level
InternalJoystickEventState(int)
Sdl the joystick event state using the specified state
internal static extern int InternalJoystickEventState(int state)
Parameters
state
int-
The state
Returns
- int
-
The int
InternalJoystickFromInstanceID(int)
Sdl the joystick from instance id using the specified instance id
internal static extern IntPtr InternalJoystickFromInstanceID(int instanceId)
Parameters
instanceId
int-
The instance id
Returns
- IntPtr
-
The int ptr
InternalJoystickGetAttached(IntPtr)
Sdl the joystick get attached using the specified joystick
internal static extern bool InternalJoystickGetAttached(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- bool
-
The sdl bool
InternalJoystickGetAxis(IntPtr, int)
Sdl the joystick get axis using the specified joystick
internal static extern short InternalJoystickGetAxis(IntPtr joystick, int axis)
Parameters
Returns
- short
-
The short
InternalJoystickGetAxisInitialState(IntPtr, int, out ushort)
Sdl the joystick get axis initial state using the specified joystick
internal static extern bool InternalJoystickGetAxisInitialState(IntPtr joystick, int axis, out ushort state)
Parameters
Returns
- bool
-
The sdl bool
InternalJoystickGetBall(IntPtr, int, out int, out int)
Sdl the joystick get ball using the specified joystick
internal static extern int InternalJoystickGetBall(IntPtr joystick, int ball, out int dx, out int dy)
Parameters
Returns
- int
-
The int
InternalJoystickGetButton(IntPtr, int)
Sdl the joystick get button using the specified joystick
internal static extern byte InternalJoystickGetButton(IntPtr joystick, int button)
Parameters
Returns
- byte
-
The byte
InternalJoystickGetDeviceGUID(int)
Sdl the joystick get device guid using the specified device index
internal static extern Guid InternalJoystickGetDeviceGUID(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- Guid
-
The guid
InternalJoystickGetDeviceInstanceID(int)
Sdl the joystick get device instance id using the specified device index
internal static extern int InternalJoystickGetDeviceInstanceID(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- int
-
The int
InternalJoystickGetDeviceProduct(int)
Sdl the joystick get device product using the specified device index
internal static extern ushort InternalJoystickGetDeviceProduct(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- ushort
-
The ushort
InternalJoystickGetDeviceProductVersion(int)
Sdl the joystick get device product version using the specified device index
internal static extern ushort InternalJoystickGetDeviceProductVersion(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- ushort
-
The ushort
InternalJoystickGetDeviceType(int)
Sdl the joystick get device type using the specified device index
internal static extern JoystickType InternalJoystickGetDeviceType(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- JoystickType
-
The sdl joystick type
InternalJoystickGetDeviceVendor(int)
Sdl the joystick get device vendor using the specified device index
internal static extern ushort InternalJoystickGetDeviceVendor(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- ushort
-
The ushort
InternalJoystickGetGUID(IntPtr)
Sdl the joystick get guid using the specified joystick
internal static extern Guid InternalJoystickGetGUID(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- Guid
-
The guid
InternalJoystickGetGUIDFromString(string)
Internals the sdl joystick get guid from string using the specified pch guid
internal static extern Guid InternalJoystickGetGUIDFromString(string pchGuid)
Parameters
pchGuid
string-
The pch guid
Returns
- Guid
-
The guid
InternalJoystickGetGUIDString(Guid, byte[], int)
Sdl the joystick get guid string using the specified guid
internal static extern void InternalJoystickGetGUIDString(Guid guid, byte[] pszGuid, int cbGuid)
Parameters
InternalJoystickGetHat(IntPtr, int)
Sdl the joystick get hat using the specified joystick
internal static extern byte InternalJoystickGetHat(IntPtr joystick, int hat)
Parameters
Returns
- byte
-
The byte
InternalJoystickGetProduct(IntPtr)
Sdl the joystick get product using the specified joystick
internal static extern ushort InternalJoystickGetProduct(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- ushort
-
The ushort
InternalJoystickGetProductVersion(IntPtr)
Sdl the joystick get product version using the specified joystick
internal static extern ushort InternalJoystickGetProductVersion(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- ushort
-
The ushort
InternalJoystickGetType(IntPtr)
Sdl the joystick get type using the specified joystick
internal static extern JoystickType InternalJoystickGetType(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- JoystickType
-
The sdl joystick type
InternalJoystickGetVendor(IntPtr)
Sdl the joystick get vendor using the specified joystick
internal static extern ushort InternalJoystickGetVendor(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- ushort
-
The ushort
InternalJoystickInstanceID(IntPtr)
Sdl the joystick instance id using the specified joystick
internal static extern int InternalJoystickInstanceID(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickIsHaptic(IntPtr)
Sdl the joystick is haptic using the specified joystick
internal static extern int InternalJoystickIsHaptic(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickName(IntPtr)
Internals the sdl joystick name using the specified joystick
internal static extern IntPtr InternalJoystickName(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- IntPtr
-
The int ptr
InternalJoystickNameForIndex(int)
Internals the sdl joystick name for index using the specified device index
internal static extern IntPtr InternalJoystickNameForIndex(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- IntPtr
-
The int ptr
InternalJoystickNumAxes(IntPtr)
Sdl the joystick num axes using the specified joystick
internal static extern int InternalJoystickNumAxes(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickNumBalls(IntPtr)
Sdl the joystick num balls using the specified joystick
internal static extern int InternalJoystickNumBalls(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickNumButtons(IntPtr)
Sdl the joystick num buttons using the specified joystick
internal static extern int InternalJoystickNumButtons(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickNumHats(IntPtr)
Sdl the joystick num hats using the specified joystick
internal static extern int InternalJoystickNumHats(IntPtr joystick)
Parameters
joystick
IntPtr-
The joystick
Returns
- int
-
The int
InternalJoystickOpen(int)
Sdl the joystick open using the specified device index
internal static extern IntPtr InternalJoystickOpen(int deviceIndex)
Parameters
deviceIndex
int-
The device index
Returns
- IntPtr
-
The int ptr
InternalJoystickRumble(IntPtr, ushort, ushort, uint)
Sdl the joystick rumble using the specified joystick
internal static extern int InternalJoystickRumble(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
InternalJoystickUpdate()
Sdl the joystick update
internal static extern void InternalJoystickUpdate()
InternalLoadBMP_RW(IntPtr, int)
Internals the sdl load bmp rw using the specified src
internal static extern IntPtr InternalLoadBMP_RW(IntPtr src, int freeSrc)
Parameters
Returns
- IntPtr
-
The int ptr
InternalLoadFile(string, out IntPtr)
Internals the sdl load file using the specified file
internal static extern IntPtr InternalLoadFile(string file, out IntPtr dataSize)
Parameters
Returns
- IntPtr
-
The int ptr
InternalLoadWAV_RW(IntPtr, int, out AudioSpec, out IntPtr, out uint)
Internals the sdl load wav rw using the specified src
internal static extern IntPtr InternalLoadWAV_RW(IntPtr src, int freeSrc, out AudioSpec spec, out IntPtr audioBuf, out uint audioLen)
Parameters
src
IntPtr-
The src
freeSrc
int-
The free src
spec
AudioSpec-
The spec
audioBuf
IntPtr-
The audio buf
audioLen
uint-
The audio len
Returns
- IntPtr
-
The int ptr
InternalLockAudioDevice(uint)
Sdl the lock audio device using the specified dev
internal static extern void InternalLockAudioDevice(uint dev)
Parameters
dev
uint-
The dev
InternalLockJoysticks()
Sdl the lock joysticks
internal static extern void InternalLockJoysticks()
InternalLockTexture(IntPtr, ref RectangleI, out IntPtr, out int)
Sdl the lock texture using the specified texture
internal static extern int InternalLockTexture(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
InternalMaximizeWindow(IntPtr)
Sdl the maximize window using the specified window
internal static extern void InternalMaximizeWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalMinimizeWindow(IntPtr)
Sdl the minimize window using the specified window
internal static extern void InternalMinimizeWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalMixAudio(byte[], byte[], uint, int)
Sdl the mix audio using the specified dst
internal static extern void InternalMixAudio(byte[] dst, byte[] src, uint len, int volume)
Parameters
InternalMixAudioFormat(IntPtr, IntPtr, ushort, uint, int)
Sdl the mix audio format using the specified dst
internal static extern void InternalMixAudioFormat(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
InternalMixAudioFormat(byte[], byte[], ushort, uint, int)
Sdl the mix audio format using the specified dst
internal static extern void InternalMixAudioFormat(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
InternalMouseIsHaptic()
Sdl the mouse is haptic
internal static extern int InternalMouseIsHaptic()
Returns
- int
-
The int
InternalNewAudioStream(ushort, byte, int, ushort, byte, int)
Sdl the new audio stream using the specified src format
internal static extern IntPtr InternalNewAudioStream(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
InternalNumHaptics()
Sdl the num haptics
internal static extern int InternalNumHaptics()
Returns
- int
-
The int
InternalNumJoysticks()
Sdl the num joysticks
internal static extern int InternalNumJoysticks()
Returns
- int
-
The int
InternalOpenAudioDevice(IntPtr, int, ref AudioSpec, out AudioSpec, int)
Sdl the open audio device using the specified device
internal static extern uint InternalOpenAudioDevice(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
InternalOpenAudioDevice(string, int, ref AudioSpec, out AudioSpec, int)
Internals the sdl open audio device using the specified device
internal static extern uint InternalOpenAudioDevice(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
InternalPauseAudio(int)
Sdl the pause audio using the specified pause on
internal static extern void InternalPauseAudio(int pauseOn)
Parameters
pauseOn
int-
The pause on
InternalPauseAudioDevice(uint, int)
Sdl the pause audio device using the specified dev
internal static extern void InternalPauseAudioDevice(uint dev, int pauseOn)
Parameters
InternalPeepEvents(Event[], int, EventAction, EventType, EventType)
Sdl the peep events using the specified events
internal static extern int InternalPeepEvents(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
InternalPixelFormatEnumToMasks(uint, out int, out uint, out uint, out uint, out uint)
Sdl the pixel format enum to masks using the specified format
internal static extern bool InternalPixelFormatEnumToMasks(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 r mask
gMask
uint-
The g mask
bMask
uint-
The b mask
aMask
uint-
The a mask
Returns
- bool
-
The sdl bool
InternalPollEvent(out Event)
Sdl the poll event using the specified event
internal static extern int InternalPollEvent(out Event sdlEvent)
Parameters
sdlEvent
Event-
The event
Returns
- int
-
The int
InternalPushEvent(ref Event)
Sdl the push event using the specified event
internal static extern int InternalPushEvent(ref Event sdlEvent)
Parameters
sdlEvent
Event-
The event
Returns
- int
-
The int
InternalQueryTexture(IntPtr, out uint, out int, out int, out int)
Sdl the query texture using the specified texture
internal static extern int InternalQueryTexture(IntPtr texture, out uint format, out int access, out int w, out int h)
Parameters
Returns
- int
-
The int
InternalQueueAudio(int, byte[], uint)
Internals the queue audio using the specified device id
internal static extern void InternalQueueAudio(int deviceId, byte[] audioData, uint wavLength)
Parameters
InternalQuit()
Sdl the quit
internal static extern void InternalQuit()
InternalRWFromFile(string, string)
Internals the sdl rw from file using the specified file
internal static extern IntPtr InternalRWFromFile(string file, string mode)
Parameters
Returns
- IntPtr
-
The int ptr
InternalRaiseWindow(IntPtr)
Sdl the raise window using the specified window
internal static extern void InternalRaiseWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalRegisterEvents(int)
Sdl the register events using the specified num events
internal static extern uint InternalRegisterEvents(int numEvents)
Parameters
numEvents
int-
The num events
Returns
- uint
-
The int 32
InternalRenderClear(IntPtr)
Sdl the render clear using the specified renderer
internal static extern int InternalRenderClear(IntPtr renderer)
Parameters
renderer
IntPtr-
The renderer
Returns
- int
-
The int
InternalRenderCopy(IntPtr, IntPtr, ref RectangleI, ref RectangleI)
Sdl the render copy using the specified renderer
internal static extern int InternalRenderCopy(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
InternalRenderCopy(IntPtr, IntPtr, IntPtr, ref RectangleI)
Sdl the render copy using the specified renderer
internal static extern int InternalRenderCopy(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
InternalRenderCopy(IntPtr, IntPtr, ref RectangleI, IntPtr)
Sdl the render copy using the specified renderer
internal static extern int InternalRenderCopy(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
InternalRenderCopy(IntPtr, IntPtr, IntPtr, IntPtr)
Sdl the render copy using the specified renderer
internal static extern int InternalRenderCopy(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
InternalRenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleI, double, ref PointI, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleF, double, ref PointF, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleI, double, ref PointI, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, ref RectangleI, IntPtr, double, ref PointI, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, ref RectangleI, ref RectangleI, double, IntPtr, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
RectangleIangle
double-
The angle
center
IntPtr-
The center
flips
RendererFlips-
The flip
Returns
- int
-
The int
InternalRenderCopyEx(IntPtr, IntPtr, IntPtr, IntPtr, double, ref PointI, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleI, double, IntPtr, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, ref RectangleI, IntPtr, double, IntPtr, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, IntPtr, IntPtr, double, IntPtr, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyEx(IntPtr, IntPtr, IntPtr, ref RectangleF, double, ref PointF, RendererFlips)
Sdl the render copy ex using the specified renderer
internal static extern int InternalRenderCopyEx(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
InternalRenderCopyExF(IntPtr, IntPtr, ref RectangleI, IntPtr, double, ref PointF, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyExF(IntPtr, IntPtr, ref RectangleI, ref RectangleF, double, IntPtr, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyExF(IntPtr, IntPtr, IntPtr, IntPtr, double, ref PointF, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyExF(IntPtr, IntPtr, IntPtr, ref RectangleF, double, IntPtr, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyExF(IntPtr, IntPtr, ref RectangleI, IntPtr, double, IntPtr, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyExF(IntPtr, IntPtr, IntPtr, IntPtr, double, IntPtr, RendererFlips)
Sdl the render copy ex f using the specified renderer
internal static extern int InternalRenderCopyExF(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
InternalRenderCopyF(IntPtr, IntPtr, ref RectangleI, ref RectangleF)
Sdl the render copy f using the specified renderer
internal static extern int InternalRenderCopyF(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
InternalRenderCopyF(IntPtr, IntPtr, IntPtr, ref RectangleF)
Sdl the render copy f using the specified renderer
internal static extern int InternalRenderCopyF(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
InternalRenderCopyF(IntPtr, IntPtr, ref RectangleI, IntPtr)
Sdl the render copy f using the specified renderer
internal static extern int InternalRenderCopyF(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
InternalRenderCopyF(IntPtr, IntPtr, IntPtr, IntPtr)
Sdl the render copy f using the specified renderer
internal static extern int InternalRenderCopyF(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
InternalRenderDrawLine(IntPtr, int, int, int, int)
Sdl the render draw line using the specified renderer
internal static extern int InternalRenderDrawLine(IntPtr renderer, int x1, int y1, int x2, int y2)
Parameters
Returns
- int
-
The int
InternalRenderDrawLineF(IntPtr, float, float, float, float)
Sdl the render draw line f using the specified renderer
internal static extern int InternalRenderDrawLineF(IntPtr renderer, float x1, float y1, float x2, float y2)
Parameters
Returns
- int
-
The int
InternalRenderDrawLines(IntPtr, PointI[], int)
Sdl the render draw lines using the specified renderer
internal static extern int InternalRenderDrawLines(IntPtr renderer, PointI[] points, int count)
Parameters
Returns
- int
-
The int
InternalRenderDrawLinesF(IntPtr, PointF[], int)
Sdl the render draw lines f using the specified renderer
internal static extern int InternalRenderDrawLinesF(IntPtr renderer, PointF[] points, int count)
Parameters
Returns
- int
-
The int
InternalRenderDrawPoint(IntPtr, int, int)
Sdl the render draw point using the specified renderer
internal static extern int InternalRenderDrawPoint(IntPtr renderer, int x, int y)
Parameters
Returns
- int
-
The int
InternalRenderDrawPointF(IntPtr, float, float)
Sdl the render draw point f using the specified renderer
internal static extern int InternalRenderDrawPointF(IntPtr renderer, float x, float y)
Parameters
Returns
- int
-
The int
InternalRenderDrawPoints(IntPtr, PointI[], int)
Sdl the render draw points using the specified renderer
internal static extern int InternalRenderDrawPoints(IntPtr renderer, PointI[] points, int count)
Parameters
Returns
- int
-
The int
InternalRenderDrawPointsF(IntPtr, PointF[], int)
Sdl the render draw points f using the specified renderer
internal static extern int InternalRenderDrawPointsF(IntPtr renderer, PointF[] points, int count)
Parameters
Returns
- int
-
The int
InternalRenderDrawRect(IntPtr, ref RectangleI)
Sdl the render draw rect using the specified renderer
internal static extern int InternalRenderDrawRect(IntPtr renderer, ref RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalRenderDrawRect(IntPtr, IntPtr)
Sdl the render draw rect using the specified renderer
internal static extern int InternalRenderDrawRect(IntPtr renderer, IntPtr rect)
Parameters
Returns
- int
-
The int
InternalRenderDrawRectF(IntPtr, ref RectangleF)
Sdl the render draw rect f using the specified renderer
internal static extern int InternalRenderDrawRectF(IntPtr renderer, ref RectangleF rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleF-
The rect
Returns
- int
-
The int
InternalRenderDrawRectF(IntPtr, IntPtr)
Sdl the render draw rect f using the specified renderer
internal static extern int InternalRenderDrawRectF(IntPtr renderer, IntPtr rect)
Parameters
Returns
- int
-
The int
InternalRenderDrawRects(IntPtr, RectangleI[], int)
Sdl the render draw rects using the specified renderer
internal static extern int InternalRenderDrawRects(IntPtr renderer, RectangleI[] rects, int count)
Parameters
renderer
IntPtr-
The renderer
rects
RectangleI[]-
The rects
count
int-
The count
Returns
- int
-
The int
InternalRenderDrawRectsF(IntPtr, RectangleF[], int)
Sdl the render draw rects f using the specified renderer
internal static extern int InternalRenderDrawRectsF(IntPtr renderer, RectangleF[] rects, int count)
Parameters
renderer
IntPtr-
The renderer
rects
RectangleF[]-
The rects
count
int-
The count
Returns
- int
-
The int
InternalRenderFillRect(IntPtr, ref RectangleI)
Sdl the render fill rect using the specified renderer
internal static extern int InternalRenderFillRect(IntPtr renderer, ref RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalRenderFillRect(IntPtr, IntPtr)
Sdl the render fill rect using the specified renderer
internal static extern int InternalRenderFillRect(IntPtr renderer, IntPtr rect)
Parameters
Returns
- int
-
The int
InternalRenderFillRectF(IntPtr, RectangleF)
Sdl the render fill rect f using the specified renderer
internal static extern int InternalRenderFillRectF(IntPtr renderer, RectangleF rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleF-
The rect
Returns
- int
-
The int
InternalRenderFillRectF(IntPtr, IntPtr)
Sdl the render fill rect f using the specified renderer
internal static extern int InternalRenderFillRectF(IntPtr renderer, IntPtr rect)
Parameters
Returns
- int
-
The int
InternalRenderFillRects(IntPtr, RectangleI[], int)
Sdl the render fill rects using the specified renderer
internal static extern int InternalRenderFillRects(IntPtr renderer, RectangleI[] rects, int count)
Parameters
renderer
IntPtr-
The renderer
rects
RectangleI[]-
The rects
count
int-
The count
Returns
- int
-
The int
InternalRenderFillRectsF(IntPtr, RectangleF[], int)
Sdl the render fill rects f using the specified renderer
internal static extern int InternalRenderFillRectsF(IntPtr renderer, RectangleF[] rects, int count)
Parameters
renderer
IntPtr-
The renderer
rects
RectangleF[]-
The rects
count
int-
The count
Returns
- int
-
The int
InternalRenderGetClipRect(IntPtr, out RectangleI)
Sdl the render get clip rect using the specified renderer
internal static extern void InternalRenderGetClipRect(IntPtr renderer, out RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
InternalRenderGetLogicalSize(IntPtr, out int, out int)
Sdl the render get logical size using the specified renderer
internal static extern void InternalRenderGetLogicalSize(IntPtr renderer, out int w, out int h)
Parameters
InternalRenderGetScale(IntPtr, out float, out float)
Sdl the render get scale using the specified renderer
internal static extern void InternalRenderGetScale(IntPtr renderer, out float scaleX, out float scaleY)
Parameters
InternalRenderGetViewport(IntPtr, out RectangleI)
Sdl the render get viewport using the specified renderer
internal static extern int InternalRenderGetViewport(IntPtr renderer, out RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalRenderIsClipEnabled(IntPtr)
Sdl the render is clip enabled using the specified renderer
internal static extern bool InternalRenderIsClipEnabled(IntPtr renderer)
Parameters
renderer
IntPtr-
The renderer
Returns
- bool
-
The sdl bool
InternalRenderPresent(IntPtr)
Sdl the render present using the specified renderer
internal static extern void InternalRenderPresent(IntPtr renderer)
Parameters
renderer
IntPtr-
The renderer
InternalRenderReadPixels(IntPtr, ref RectangleI, uint, IntPtr, int)
Sdl the render read pixels using the specified renderer
internal static extern int InternalRenderReadPixels(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
InternalRenderSetClipRect(IntPtr, ref RectangleI)
Sdl the render set clip rect using the specified renderer
internal static extern int InternalRenderSetClipRect(IntPtr renderer, ref RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalRenderSetClipRect(IntPtr, IntPtr)
Sdl the render set clip rect using the specified renderer
internal static extern int InternalRenderSetClipRect(IntPtr renderer, IntPtr rect)
Parameters
Returns
- int
-
The int
InternalRenderSetIntegerScale(IntPtr, bool)
Sdl the render set integer scale using the specified renderer
internal static extern int InternalRenderSetIntegerScale(IntPtr renderer, bool enable)
Parameters
Returns
- int
-
The int
InternalRenderSetLogicalSize(IntPtr, int, int)
Sdl the render set logical size using the specified renderer
internal static extern int InternalRenderSetLogicalSize(IntPtr renderer, int w, int h)
Parameters
Returns
- int
-
The int
InternalRenderSetScale(IntPtr, float, float)
Sdl the render set scale using the specified renderer
internal static extern int InternalRenderSetScale(IntPtr renderer, float scaleX, float scaleY)
Parameters
Returns
- int
-
The int
InternalRenderSetViewportWithRef(IntPtr, ref RectangleI)
Sdl the render set viewport using the specified renderer
internal static extern int InternalRenderSetViewportWithRef(IntPtr renderer, ref RectangleI rect)
Parameters
renderer
IntPtr-
The renderer
rect
RectangleI-
The rect
Returns
- int
-
The int
InternalRenderTargetSupported(IntPtr)
Sdl the render target supported using the specified renderer
internal static extern bool InternalRenderTargetSupported(IntPtr renderer)
Parameters
renderer
IntPtr-
The renderer
Returns
- bool
-
The sdl bool
InternalRestoreWindow(IntPtr)
Sdl the restore window using the specified window
internal static extern void InternalRestoreWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalSetClipRect(IntPtr, ref RectangleI)
Sdl the set clip rect using the specified surface
internal static extern bool InternalSetClipRect(IntPtr surface, ref RectangleI rect)
Parameters
surface
IntPtr-
The surface
rect
RectangleI-
The rect
Returns
- bool
-
The sdl bool
InternalSetClipboardText(string)
Internals the sdl set clipboard text using the specified text
internal static extern int InternalSetClipboardText(string text)
Parameters
text
string-
The text
Returns
- int
-
The int
InternalSetColorKey(IntPtr, int, uint)
Sdl the set color key using the specified surface
internal static extern int InternalSetColorKey(IntPtr surface, int flag, uint key)
Parameters
Returns
- int
-
The int
InternalSetCursor(IntPtr)
Sdl the set cursor using the specified cursor
internal static extern void InternalSetCursor(IntPtr cursor)
Parameters
cursor
IntPtr-
The cursor
InternalSetError(string)
Internals the sdl set error using the specified fmt and arg list
internal static extern void InternalSetError(string fmtAndArgList)
Parameters
fmtAndArgList
string-
The fmt and arg list
InternalSetEventFilter(SdlEventFilter, IntPtr)
Sdl the set event filter using the specified filter
internal static extern void InternalSetEventFilter(SdlEventFilter filter, IntPtr userdata)
Parameters
filter
SdlEventFilter-
The filter
userdata
IntPtr-
The userdata
InternalSetHint(string, string)
Internals the sdl set hint using the specified name
internal static extern bool InternalSetHint(string name, string value)
Parameters
Returns
- bool
-
The sdl bool
InternalSetHintWithPriority(string, string, HintPriority)
Internals the sdl set hint with priority using the specified name
internal static extern bool InternalSetHintWithPriority(string name, string value, HintPriority priority)
Parameters
name
string-
The name
value
string-
The value
priority
HintPriority-
The priority
Returns
- bool
-
The sdl bool
InternalSetModState(KeyMods)
Sdl the set mod state using the specified mod state
internal static extern void InternalSetModState(KeyMods modState)
Parameters
modState
KeyMods-
The mod state
InternalSetPaletteColors(IntPtr, Color[], int, int)
Sdl the set palette colors using the specified palette
internal static extern int InternalSetPaletteColors(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 n colors
Returns
- int
-
The int
InternalSetPixelFormatPalette(IntPtr, IntPtr)
Sdl the set pixel format palette using the specified format
internal static extern int InternalSetPixelFormatPalette(IntPtr format, IntPtr palette)
Parameters
Returns
- int
-
The int
InternalSetRelativeMouseMode(bool)
Sdl the set relative mouse mode using the specified enabled
internal static extern int InternalSetRelativeMouseMode(bool enabled)
Parameters
enabled
bool-
The enabled
Returns
- int
-
The int
InternalSetRenderDrawBlendMode(IntPtr, BlendModes)
Sdl the set render draw blend mode using the specified renderer
internal static extern int InternalSetRenderDrawBlendMode(IntPtr renderer, BlendModes blendMode)
Parameters
renderer
IntPtr-
The renderer
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalSetRenderDrawColor(IntPtr, byte, byte, byte, byte)
Sdl the set render draw color using the specified renderer
internal static extern int InternalSetRenderDrawColor(IntPtr renderer, byte r, byte g, byte b, byte a)
Parameters
Returns
- int
-
The int
InternalSetRenderTarget(IntPtr, IntPtr)
Sdl the set render target using the specified renderer
internal static extern int InternalSetRenderTarget(IntPtr renderer, IntPtr texture)
Parameters
Returns
- int
-
The int
InternalSetSurfaceAlphaMod(IntPtr, byte)
Sdl the set surface alpha mod using the specified surface
internal static extern int InternalSetSurfaceAlphaMod(IntPtr surface, byte alpha)
Parameters
Returns
- int
-
The int
InternalSetSurfaceBlendMode(IntPtr, BlendModes)
Sdl the set surface blend mode using the specified surface
internal static extern int InternalSetSurfaceBlendMode(IntPtr surface, BlendModes blendMode)
Parameters
surface
IntPtr-
The surface
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalSetSurfaceColorMod(IntPtr, byte, byte, byte)
Sdl the set surface color mod using the specified surface
internal static extern int InternalSetSurfaceColorMod(IntPtr surface, byte r, byte g, byte b)
Parameters
Returns
- int
-
The int
InternalSetSurfacePalette(IntPtr, IntPtr)
Sdl the set surface palette using the specified surface
internal static extern int InternalSetSurfacePalette(IntPtr surface, IntPtr palette)
Parameters
Returns
- int
-
The int
InternalSetTextInputRect(ref RectangleI)
Sdl the set text input rect using the specified rect
internal static extern void InternalSetTextInputRect(ref RectangleI rect)
Parameters
rect
RectangleI-
The rect
InternalSetTextureAlphaMod(IntPtr, byte)
Sdl the set texture alpha mod using the specified texture
internal static extern int InternalSetTextureAlphaMod(IntPtr texture, byte alpha)
Parameters
Returns
- int
-
The int
InternalSetTextureBlendMode(IntPtr, BlendModes)
Sdl the set texture blend mode using the specified texture
internal static extern int InternalSetTextureBlendMode(IntPtr texture, BlendModes blendMode)
Parameters
texture
IntPtr-
The texture
blendMode
BlendModes-
The blend mode
Returns
- int
-
The int
InternalSetTextureColorMod(IntPtr, byte, byte, byte)
Sdl the set texture color mod using the specified texture
internal static extern int InternalSetTextureColorMod(IntPtr texture, byte r, byte g, byte b)
Parameters
Returns
- int
-
The int
InternalSetWindowBordered(IntPtr, bool)
Sdl the set window bordered using the specified window
internal static extern void InternalSetWindowBordered(IntPtr window, bool bordered)
Parameters
InternalSetWindowBrightness(IntPtr, float)
Sdl the set window brightness using the specified window
internal static extern int InternalSetWindowBrightness(IntPtr window, float brightness)
Parameters
Returns
- int
-
The int
InternalSetWindowData(IntPtr, string, IntPtr)
Internals the sdl set window data using the specified window
internal static extern IntPtr InternalSetWindowData(IntPtr window, string name, IntPtr userdata)
Parameters
Returns
- IntPtr
-
The int ptr
InternalSetWindowDisplayMode(IntPtr, ref DisplayMode)
Sdl the set window display mode using the specified window
internal static extern int InternalSetWindowDisplayMode(IntPtr window, ref DisplayMode mode)
Parameters
window
IntPtr-
The window
mode
DisplayMode-
The mode
Returns
- int
-
The int
InternalSetWindowDisplayMode(IntPtr, IntPtr)
Sdl the set window display mode using the specified window
internal static extern int InternalSetWindowDisplayMode(IntPtr window, IntPtr mode)
Parameters
Returns
- int
-
The int
InternalSetWindowFullscreen(IntPtr, uint)
Sdl the set window fullscreen using the specified window
internal static extern int InternalSetWindowFullscreen(IntPtr window, uint flags)
Parameters
Returns
- int
-
The int
InternalSetWindowGammaRamp(IntPtr, ushort[], ushort[], ushort[])
Sdl the set window gamma ramp using the specified window
internal static extern int InternalSetWindowGammaRamp(IntPtr window, ushort[] red, ushort[] green, ushort[] blue)
Parameters
Returns
- int
-
The int
InternalSetWindowGrab(IntPtr, bool)
Sdl the set window grab using the specified window
internal static extern void InternalSetWindowGrab(IntPtr window, bool grabbed)
Parameters
InternalSetWindowHitTest(IntPtr, SdlHitTest, IntPtr)
Sdl the set window hit test using the specified window
internal static extern int InternalSetWindowHitTest(IntPtr window, SdlHitTest callback, IntPtr callbackData)
Parameters
window
IntPtr-
The window
callback
SdlHitTest-
The callback
callbackData
IntPtr-
The callback data
Returns
- int
-
The int
InternalSetWindowIcon(IntPtr, IntPtr)
Sdl the set window icon using the specified window
internal static extern void InternalSetWindowIcon(IntPtr window, IntPtr icon)
Parameters
InternalSetWindowInputFocus(IntPtr)
Sdl the set window input focus using the specified window
internal static extern int InternalSetWindowInputFocus(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- int
-
The int
InternalSetWindowMaximumSize(IntPtr, int, int)
Sdl the set window maximum size using the specified window
internal static extern void InternalSetWindowMaximumSize(IntPtr window, int maxW, int maxH)
Parameters
InternalSetWindowMinimumSize(IntPtr, int, int)
Sdl the set window minimum size using the specified window
internal static extern void InternalSetWindowMinimumSize(IntPtr window, int minW, int minH)
Parameters
InternalSetWindowModalFor(IntPtr, IntPtr)
Sdl the set window modal for using the specified modal window
internal static extern int InternalSetWindowModalFor(IntPtr modalWindow, IntPtr parentWindow)
Parameters
Returns
- int
-
The int
InternalSetWindowOpacity(IntPtr, float)
Sdl the set window opacity using the specified window
internal static extern int InternalSetWindowOpacity(IntPtr window, float opacity)
Parameters
Returns
- int
-
The int
InternalSetWindowPosition(IntPtr, int, int)
Sdl the set window position using the specified window
internal static extern void InternalSetWindowPosition(IntPtr window, int x, int y)
Parameters
InternalSetWindowResizable(IntPtr, bool)
Sdl the set window resizable using the specified window
internal static extern void InternalSetWindowResizable(IntPtr window, bool resizable)
Parameters
InternalSetWindowSize(IntPtr, int, int)
Sdl the set window size using the specified window
internal static extern void InternalSetWindowSize(IntPtr window, int w, int h)
Parameters
InternalSetWindowTitle(IntPtr, string)
Internals the sdl set window title using the specified window
internal static extern void InternalSetWindowTitle(IntPtr window, string title)
Parameters
InternalShowCursor(int)
Sdl the show cursor using the specified toggle
internal static extern int InternalShowCursor(int toggle)
Parameters
toggle
int-
The toggle
Returns
- int
-
The int
InternalShowWindow(IntPtr)
Sdl the show window using the specified window
internal static extern void InternalShowWindow(IntPtr window)
Parameters
window
IntPtr-
The window
InternalStartTextInput()
Sdl the start text input
internal static extern void InternalStartTextInput()
InternalStopTextInput()
Sdl the stop text input
internal static extern void InternalStopTextInput()
InternalUnlockAudioDevice(uint)
Sdl the unlock audio device using the specified dev
internal static extern void InternalUnlockAudioDevice(uint dev)
Parameters
dev
uint-
The dev
InternalUnlockJoysticks()
Sdl the unlock joysticks
internal static extern void InternalUnlockJoysticks()
InternalUpdateTexture(IntPtr, ref RectangleI, IntPtr, int)
Sdl the update texture using the specified texture
internal static extern int InternalUpdateTexture(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
InternalUpdateTexture(IntPtr, IntPtr, IntPtr, int)
Sdl the update texture using the specified texture
internal static extern int InternalUpdateTexture(IntPtr texture, IntPtr rect, IntPtr pixels, int pitch)
Parameters
Returns
- int
-
The int
InternalUpdateTexturev2(IntPtr, IntPtr, byte[], int)
Sdl the update texture using the specified texture
internal static extern int InternalUpdateTexturev2(IntPtr texture, IntPtr rect, byte[] pixels, int pitch)
Parameters
Returns
- int
-
The int
InternalUpdateWindowSurface(IntPtr)
Sdl the update window surface using the specified window
internal static extern int InternalUpdateWindowSurface(IntPtr window)
Parameters
window
IntPtr-
The window
Returns
- int
-
The int
InternalUpdateWindowSurfaceRects(IntPtr, RectangleI[], int)
Sdl the update window surface rects using the specified window
internal static extern int InternalUpdateWindowSurfaceRects(IntPtr window, RectangleI[] rects, int numRects)
Parameters
window
IntPtr-
The window
rects
RectangleI[]-
The rects
numRects
int-
The num rects
Returns
- int
-
The int
InternalUpperBlit(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Sdl the upper blit using the specified src
internal static extern int InternalUpperBlit(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
InternalUpperBlitScaled(IntPtr, ref RectangleI, IntPtr, ref RectangleI)
Sdl the upper blit scaled using the specified src
internal static extern int InternalUpperBlitScaled(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
InternalWarpMouseGlobal(int, int)
Sdl the warp mouse global using the specified x
internal static extern int InternalWarpMouseGlobal(int x, int y)
Parameters
Returns
- int
-
The int
InternalWarpMouseInWindow(IntPtr, int, int)
Sdl the warp mouse in window using the specified window
internal static extern void InternalWarpMouseInWindow(IntPtr window, int x, int y)
Parameters
InternalWasInit(InitSettings)
Sdl the was init using the specified flags
internal static extern uint InternalWasInit(InitSettings flags)
Parameters
flags
InitSettings-
The flags
Returns
- uint
-
The uint