зеркало из https://github.com/stride3d/SDL2-CS.git
Merge branch 'alpha-support' Strip Attribute bits
This commit is contained in:
Коммит
9ab9d57b23
74
src/SDL2.cs
74
src/SDL2.cs
|
@ -70,9 +70,9 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_RWFromFile")]
|
[DllImport(nativeLibName, EntryPoint = "SDL_RWFromFile")]
|
||||||
internal static extern IntPtr INTERNAL_SDL_RWFromFile(
|
internal static extern IntPtr INTERNAL_SDL_RWFromFile(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file,
|
string file,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string mode
|
string mode
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_GetHint")]
|
[DllImport(nativeLibName, EntryPoint = "SDL_GetHint")]
|
||||||
private static extern IntPtr INTERNAL_SDL_GetHint(
|
private static extern IntPtr INTERNAL_SDL_GetHint(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string name
|
string name
|
||||||
);
|
);
|
||||||
public static string SDL_GetHint(string name)
|
public static string SDL_GetHint(string name)
|
||||||
|
@ -165,17 +165,17 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_bool SDL_SetHint(
|
public static extern SDL_bool SDL_SetHint(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string name,
|
string name,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string value
|
string value
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_bool SDL_SetHintWithPriority(
|
public static extern SDL_bool SDL_SetHintWithPriority(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string name,
|
string name,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string value,
|
string value,
|
||||||
SDL_HintPriority priority
|
SDL_HintPriority priority
|
||||||
);
|
);
|
||||||
|
@ -196,7 +196,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_SetError(
|
public static extern void SDL_SetError(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -259,7 +259,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_Log(
|
public static extern void SDL_Log(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -267,7 +267,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogVerbose(
|
public static extern void SDL_LogVerbose(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -275,7 +275,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogDebug(
|
public static extern void SDL_LogDebug(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -283,7 +283,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogInfo(
|
public static extern void SDL_LogInfo(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -291,7 +291,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogWarn(
|
public static extern void SDL_LogWarn(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -299,7 +299,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogError(
|
public static extern void SDL_LogError(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -307,7 +307,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_LogCritical(
|
public static extern void SDL_LogCritical(
|
||||||
int category,
|
int category,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -316,7 +316,7 @@ namespace SDL2
|
||||||
public static extern void SDL_LogMessage(
|
public static extern void SDL_LogMessage(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -325,7 +325,7 @@ namespace SDL2
|
||||||
public static extern void SDL_LogMessageV(
|
public static extern void SDL_LogMessageV(
|
||||||
int category,
|
int category,
|
||||||
SDL_LogPriority priority,
|
SDL_LogPriority priority,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string fmt,
|
string fmt,
|
||||||
__arglist
|
__arglist
|
||||||
);
|
);
|
||||||
|
@ -507,7 +507,7 @@ namespace SDL2
|
||||||
/* IntPtr refers to an SDL_Window* */
|
/* IntPtr refers to an SDL_Window* */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr SDL_CreateWindow(
|
public static extern IntPtr SDL_CreateWindow(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string title,
|
string title,
|
||||||
int x,
|
int x,
|
||||||
int y,
|
int y,
|
||||||
|
@ -614,7 +614,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr SDL_GetWindowData(
|
public static extern IntPtr SDL_GetWindowData(
|
||||||
IntPtr window,
|
IntPtr window,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string name
|
string name
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -712,13 +712,13 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr SDL_GL_GetProcAddress(
|
public static extern IntPtr SDL_GL_GetProcAddress(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string proc
|
string proc
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_bool SDL_GL_ExtensionSupported(
|
public static extern SDL_bool SDL_GL_ExtensionSupported(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string extension
|
string extension
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -789,7 +789,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr SDL_SetWindowData(
|
public static extern IntPtr SDL_SetWindowData(
|
||||||
IntPtr window,
|
IntPtr window,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string name,
|
string name,
|
||||||
IntPtr userdata
|
IntPtr userdata
|
||||||
);
|
);
|
||||||
|
@ -851,7 +851,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_SetWindowTitle(
|
public static extern void SDL_SetWindowTitle(
|
||||||
IntPtr window,
|
IntPtr window,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string title
|
string title
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_VideoInit(
|
public static extern int SDL_VideoInit(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string driver_name
|
string driver_name
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2033,7 +2033,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_SaveBMP(
|
public static extern int SDL_SaveBMP(
|
||||||
IntPtr surface,
|
IntPtr surface,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file
|
string file
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2138,7 +2138,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_SetClipboardText(
|
public static extern int SDL_SetClipboardText(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text
|
string text
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3315,7 +3315,7 @@ namespace SDL2
|
||||||
/* Get a scancode from a human-readable name */
|
/* Get a scancode from a human-readable name */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_Scancode SDL_GetScancodeFromName(
|
public static extern SDL_Scancode SDL_GetScancodeFromName(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string name
|
[In()] [MarshalAs(UnmanagedType.LPStr)] string name
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Wrapper for SDL_GetKeyName */
|
/* Wrapper for SDL_GetKeyName */
|
||||||
|
@ -3332,7 +3332,7 @@ namespace SDL2
|
||||||
/* Get a key code from a human-readable name */
|
/* Get a key code from a human-readable name */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_Keycode SDL_GetKeyFromName(
|
public static extern SDL_Keycode SDL_GetKeyFromName(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)] string name
|
[In()] [MarshalAs(UnmanagedType.LPStr)] string name
|
||||||
);
|
);
|
||||||
|
|
||||||
/* Start accepting Unicode text input events, show keyboard */
|
/* Start accepting Unicode text input events, show keyboard */
|
||||||
|
@ -3606,14 +3606,14 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern void SDL_JoystickGetGUIDString(
|
public static extern void SDL_JoystickGetGUIDString(
|
||||||
SDL_JoystickGUID guid,
|
SDL_JoystickGUID guid,
|
||||||
[MarshalAsAttribute(UnmanagedType.LPStr)]
|
[MarshalAs(UnmanagedType.LPStr)]
|
||||||
System.Text.StringBuilder pszGUID,
|
System.Text.StringBuilder pszGUID,
|
||||||
int cbGUID
|
int cbGUID
|
||||||
);
|
);
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_JoystickGUID SDL_JoystickGetGUIDFromString(
|
public static extern SDL_JoystickGUID SDL_JoystickGetGUIDFromString(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string pchGUID
|
string pchGUID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3695,7 +3695,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_GameControllerAddMapping(
|
public static extern int SDL_GameControllerAddMapping(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string mappingString
|
string mappingString
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3776,7 +3776,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(
|
public static extern SDL_GameControllerAxis SDL_GameControllerGetAxisFromString(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string pchString
|
string pchString
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3808,7 +3808,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern SDL_GameControllerButton SDL_GameControllerGetButtonFromString(
|
public static extern SDL_GameControllerButton SDL_GameControllerGetButtonFromString(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string pchString
|
string pchString
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4247,7 +4247,7 @@ namespace SDL2
|
||||||
SDL_AUDIO_PAUSED
|
SDL_AUDIO_PAUSED
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayoutAttribute(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public struct SDL_AudioSpec
|
public struct SDL_AudioSpec
|
||||||
{
|
{
|
||||||
public int freq;
|
public int freq;
|
||||||
|
@ -4273,7 +4273,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int SDL_AudioInit(
|
public static extern int SDL_AudioInit(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string driver_name
|
string driver_name
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4341,7 +4341,7 @@ namespace SDL2
|
||||||
/* audio_buf will refer to a malloc()'d byte buffer */
|
/* audio_buf will refer to a malloc()'d byte buffer */
|
||||||
[DllImport(nativeLibName, EntryPoint = "SDL_LoadWAV")]
|
[DllImport(nativeLibName, EntryPoint = "SDL_LoadWAV")]
|
||||||
private static extern IntPtr INTERNAL_SDL_LoadWAV(
|
private static extern IntPtr INTERNAL_SDL_LoadWAV(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string filename,
|
string filename,
|
||||||
ref SDL_AudioSpec spec,
|
ref SDL_AudioSpec spec,
|
||||||
ref IntPtr audio_buf,
|
ref IntPtr audio_buf,
|
||||||
|
@ -4401,7 +4401,7 @@ namespace SDL2
|
||||||
/* uint refers to an SDL_AudioDeviceID */
|
/* uint refers to an SDL_AudioDeviceID */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern uint SDL_OpenAudioDevice(
|
public static extern uint SDL_OpenAudioDevice(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string device,
|
string device,
|
||||||
int iscapture,
|
int iscapture,
|
||||||
ref SDL_AudioSpec desired,
|
ref SDL_AudioSpec desired,
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace SDL2
|
||||||
/* IntPtr refers to an SDL_Surface* */
|
/* IntPtr refers to an SDL_Surface* */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr IMG_Load(
|
public static extern IntPtr IMG_Load(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file
|
string file
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr IMG_LoadTexture(
|
public static extern IntPtr IMG_LoadTexture(
|
||||||
IntPtr renderer,
|
IntPtr renderer,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file
|
string file
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -178,7 +178,7 @@ namespace SDL2
|
||||||
/* IntPtr refers to a Mix_Music* */
|
/* IntPtr refers to a Mix_Music* */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr Mix_LoadMUS(
|
public static extern IntPtr Mix_LoadMUS(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file
|
string file
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int Mix_SetMusicCMD(
|
public static extern int Mix_SetMusicCMD(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string command
|
string command
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -453,7 +453,7 @@ namespace SDL2
|
||||||
|
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int Mix_SetSoundFonts(
|
public static extern int Mix_SetSoundFonts(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string paths
|
string paths
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ namespace SDL2
|
||||||
/* IntPtr refers to a TTF_Font* */
|
/* IntPtr refers to a TTF_Font* */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_OpenFont(
|
public static extern IntPtr TTF_OpenFont(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file,
|
string file,
|
||||||
int ptsize
|
int ptsize
|
||||||
);
|
);
|
||||||
|
@ -88,7 +88,7 @@ namespace SDL2
|
||||||
/* IntPtr refers to a TTF_Font* */
|
/* IntPtr refers to a TTF_Font* */
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_OpenFontIndex(
|
public static extern IntPtr TTF_OpenFontIndex(
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string file,
|
string file,
|
||||||
int ptsize,
|
int ptsize,
|
||||||
long index
|
long index
|
||||||
|
@ -194,7 +194,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int TTF_SizeText(
|
public static extern int TTF_SizeText(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
ref int w,
|
ref int w,
|
||||||
ref int h
|
ref int h
|
||||||
|
@ -204,7 +204,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern int TTF_SizeUTF8(
|
public static extern int TTF_SizeUTF8(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
ref int w,
|
ref int w,
|
||||||
ref int h
|
ref int h
|
||||||
|
@ -223,7 +223,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderText_Solid(
|
public static extern IntPtr TTF_RenderText_Solid(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg
|
SDL.SDL_Color fg
|
||||||
);
|
);
|
||||||
|
@ -232,7 +232,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderUTF8_Solid(
|
public static extern IntPtr TTF_RenderUTF8_Solid(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg
|
SDL.SDL_Color fg
|
||||||
);
|
);
|
||||||
|
@ -257,7 +257,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderText_Shaded(
|
public static extern IntPtr TTF_RenderText_Shaded(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg,
|
SDL.SDL_Color fg,
|
||||||
SDL.SDL_Color bg
|
SDL.SDL_Color bg
|
||||||
|
@ -267,7 +267,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderUTF8_Shaded(
|
public static extern IntPtr TTF_RenderUTF8_Shaded(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg,
|
SDL.SDL_Color fg,
|
||||||
SDL.SDL_Color bg
|
SDL.SDL_Color bg
|
||||||
|
@ -295,7 +295,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderText_Blended(
|
public static extern IntPtr TTF_RenderText_Blended(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg
|
SDL.SDL_Color fg
|
||||||
);
|
);
|
||||||
|
@ -304,7 +304,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderUTF8_Blended(
|
public static extern IntPtr TTF_RenderUTF8_Blended(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg
|
SDL.SDL_Color fg
|
||||||
);
|
);
|
||||||
|
@ -321,7 +321,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderText_Blended_Wrapped(
|
public static extern IntPtr TTF_RenderText_Blended_Wrapped(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg,
|
SDL.SDL_Color fg,
|
||||||
uint wrapped
|
uint wrapped
|
||||||
|
@ -331,7 +331,7 @@ namespace SDL2
|
||||||
[DllImport(nativeLibName)]
|
[DllImport(nativeLibName)]
|
||||||
public static extern IntPtr TTF_RenderUTF8_Blended_Wrapped(
|
public static extern IntPtr TTF_RenderUTF8_Blended_Wrapped(
|
||||||
IntPtr font,
|
IntPtr font,
|
||||||
[InAttribute()] [MarshalAsAttribute(UnmanagedType.LPStr)]
|
[In()] [MarshalAs(UnmanagedType.LPStr)]
|
||||||
string text,
|
string text,
|
||||||
SDL.SDL_Color fg,
|
SDL.SDL_Color fg,
|
||||||
uint wrapped
|
uint wrapped
|
||||||
|
|
Загрузка…
Ссылка в новой задаче