Commit graph

31 commits

Author SHA1 Message Date
Jeremy Sayers db935863bb Add TTF_GetError and TTF_SetError
Adding some missing functions to SDL2_ttf that are just wrappers of the `SDL_GetError` and `SDL_SetError` as per the SDL_ttf header:
```
/* We'll use SDL for reporting errors */
#define TTF_SetError    SDL_SetError
#define TTF_GetError    SDL_GetError
```
2021-11-14 12:45:23 -05:00
Ethan Lee e316ae5cfd Give the heap-allocated Utf8Encode a unique function name 2021-05-15 09:47:28 -04:00
Ethan Lee e8bf894c31
Try to fix use of C long in TTF_FontFaces 2021-04-19 11:54:43 -04:00
Ethan Lee 1e01bc8eeb Happy New Year! 2021-01-01 11:32:54 -05:00
Ethan Lee c782115e7f Minor style fixes, UTF8 update for mixer/ttf 2020-05-21 10:24:46 -04:00
Caleb Cornett 8d0760016b
SDL 2.0.12 Update (#167)
* Add SDL_Metal APIs
* Added LockTextureToSurface functions
* Add SDL_HasARMSIMD and SDL_GameControllerType enum/functions
* Updated enum names, added missing macros, added new hints
* Added Get/SetPlayerIndex functions
* Standardize comment format
* Added SDL_Get/SetTextureScaleMode
* TTF updates
* Added IMG_Animation API to SDL_image
* SDL_mixer updates
* Add SDL_BLENDMODE_MUL
* Added hints and SDL_GetAndroidSDKVersion
2020-03-10 16:41:58 -04:00
Ethan Lee 8aa635b27f Happy New Year! 2020-01-01 11:08:04 -05:00
Ethan Lee 9743aaef11 Remove .dll suffix from DllImports 2018-09-10 00:04:00 -04:00
Ethan Lee 795db4433d Replace LPUtf8StrMarshaler with internal UTF8 API 2017-10-19 12:30:01 -04:00
Ethan Lee c6fa4d1457 Happy New Year! 2016-01-04 11:55:36 -05:00
Ethan Lee f29dbb7e4d Happy New Year, wait what month is it 2015-05-21 12:54:41 -04:00
Ethan Lee f284899867 RWops doc fixes 2014-07-07 16:17:56 -04:00
Nick Gravelyn 37058ed972 Fixing comments. 2014-05-31 16:43:26 -07:00
Nick Gravelyn 07853258b4 Adding RWops comment 2014-05-31 16:42:33 -07:00
Nick Gravelyn 1c6261532c Added RWops versions of OpenFont to support loading TTFs from memory. 2014-05-31 16:16:28 -07:00
Ethan Lee cbf996466d Happy New Year, wait what day is it 2014-02-10 18:02:40 -05:00
Melker Narikka 390a6c2cb3 Remember trailing whitespace? Me neither.
Doesn't touch MiniTK.
Went with a good ol'
	% git ls-files | grep -v MiniTK | xargs -d "\n" -r sed -i 's/[ \t]\+$//g'
2013-09-27 12:39:57 +00:00
Jameson Ernst 51e907c959 Marshaling refinements to supplementary libraries 2013-07-14 21:24:26 -07:00
Jameson Ernst 19d4602321 Don't free strings returned from SDL
Accept nulls for marshaling
2013-06-26 11:02:44 -07:00
Jameson Ernst 4868a53683 Added UTF-8 support to supplementary libs
Style changes for consistency
2013-06-25 23:16:43 -07:00
Ethan Lee a69308c8d6 Woops, TTF minor version is definitely 0... 2013-04-17 19:09:15 -04:00
Ethan Lee f154fc784b Add compiled version info for SDL2 libs. 2013-04-17 18:38:10 -04:00
Ethan Lee 5440f8ad22 SDL2 compatibility fixes. 2013-04-17 18:08:38 -04:00
Ethan Lee fdbf76f308 Strip out needless Attribute bits 2013-04-17 03:41:40 -04:00
Ethan Lee 9ab0d1d2c3 Unfortunately, we need to use IntPtrs for SDL_Surface and Mix_Chunk. Otherwise we cannot free these resources. Just do a PtrToStructure in the application. 2013-04-09 23:04:37 -04:00
Ethan Lee 281ce130e0 Remove 2 from class names to prevent namespace ambiguity. 2013-04-08 12:09:41 -04:00
Ethan Lee 5c91529e4f Does C# really have both string and String? 2013-04-07 22:41:22 -04:00
Ethan Lee e7cbc528cc The nativeLibName can/should be private. 2013-04-07 22:39:16 -04:00
Ethan Lee 5f1385b2ea SDL2_ttf done. Unless someone cares about RWops. 2013-04-07 09:36:19 -04:00
Ethan Lee 7e4fffb05b SDL2_image fix, SDL2_ttf paaart oooone 2013-04-07 09:12:02 -04:00
Ethan Lee a5a08b4140 Why, hello there, world... 2013-04-03 12:15:53 -04:00