Commit graph

305 commits

Author SHA1 Message Date
Sean Colombo 7d3217b375 Adding our custom changes to OpenGL which relate to framebuffers. We probably want to upstream this at some point. 2014-04-29 10:04:11 -04:00
IntelOrca 713e25ab96 Fix SDL_GetKeyFromScancode signature. 2014-03-26 13:14:21 +00:00
Ethan Lee 67f4c81bb3 SDL 2.0.3 2014-03-15 20:37:47 -04:00
Tobias Schulz f495b5318c .NET doesn't use dllmaps 2014-03-09 17:27:27 +01:00
Ethan Lee 21ab9a5d69 Added some public RWops entry points. 2014-03-07 11:02:35 -05:00
Ethan Lee 404c4d583d AL_SOFT_MSADPCM is now a thing. 2014-03-05 10:06:09 -05:00
Ethan Lee f7ba9ab3b7 Ryan added this back. 2014-03-04 11:21:04 -05:00
Ethan Lee a7b2d3de69 Whuh, we already got rid of this... 2014-03-02 17:41:21 -05:00
Ethan Lee 6d0456c99e Double click support from SDL 2.0.2 2014-03-02 07:42:17 -05:00
Ethan Lee 2e719b0650 SDL 2.0.2 update. Includes some extras as well. 2014-03-02 07:36:30 -05:00
babelshift 60454e8878 From libsdl 2.0.2 RC1 notes - The screensaver is now disabled by default, and there is a hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER that can change that behavior. 2014-03-01 22:51:30 -05:00
babelshift a74f245fe6 From libsdl 2.0.2 RC1 notes - Added a hint SDL_HINT_MOUSE_RELATIVE_MODE_WARP to specify whether mouse relative mode should be emulated using mouse warping. 2014-03-01 22:46:13 -05:00
Ethan Lee 7dd378d866 Update for latest AL_EXT_MSADPCM changes 2014-03-01 06:01:58 -05:00
Ethan Lee cbf996466d Happy New Year, wait what day is it 2014-02-10 18:02:40 -05:00
Ethan Lee 6bf1984db9 SDL_BlitScaled name 2014-01-29 07:26:00 -05:00
Ethan Lee 0fb37403cd Mix_Chunk is not our problem. 2014-01-27 16:39:09 -05:00
Ethan Lee 4a37ca4387 Merge from babelshift 2014-01-12 15:18:50 -05:00
babelshift 078ef09a09 Adding missing hint to handle scale quality 2014-01-12 11:19:45 -05:00
Ethan Lee 63c194dd81 Add MSADPCM256 support 2013-12-02 23:39:57 -05:00
Luís Reis 5caa264f85 Added SDL_RenderSetLogicalSize and SDL_RenderGetLogicalSize 2013-11-30 16:05:05 +00:00
Ethan Lee 062241ca82 SDL2_image has SavePNG, woohoo! 2013-11-18 11:28:32 -05:00
Jameson Ernst b5762af567 Bind touch API. Use frameworks on OS X 2013-10-28 13:09:42 -07:00
Ethan Lee 5b575f02a0 Fix EffectsExtension for lower-level TK. 2013-10-27 15:25:47 -04:00
Ethan Lee 3ce41e80ac Stick to AL.cs style for Buffer 2013-10-27 11:59:56 -04:00
Ethan Lee ac4ac4d299 AL_LOOP_POINTS_SOFT 2013-10-27 07:22:16 -04:00
Ethan Lee 1ffb95fa74 SDL_GetPlatform 2013-10-27 05:02:20 -04:00
David Gow acd92371fc HighDPI support + odds and ends
This patch adds support for the SDL HighDPI stuff (for MacOSX Retina
displays et al), as well as adding a few missing things from SDL 2.0.0
and SDL 2.0.1:
* HighDPI support (hint, window flag, SDL_GL_GetDrawableSize)
* SDL_TICKS_PASSED() macro
* SDL_GL_GetCurrentWindow()
* SDL_GL_GetCurrentContext()
* SDL_HINT_RENDER_DIRECT3D_THREADSAFE
* SDL_HINT_TIMER_RESOLUTION
2013-10-26 11:44:30 +08:00
Ethan Lee d1e5b4d1a0 2.0.1 2013-10-24 02:28:10 -04:00
Ethan Lee f154bab1d8 Add 2.0.1 remark to GetSystemRAM 2013-10-22 22:34:30 -04:00
David Gow cfec5bc59f Merge branch 'sdl2-hg' of https://github.com/flibitijibibo/SDL2-CS
Conflicts:
	src/SDL2.cs
2013-10-23 10:18:48 +08:00
David Gow 85dd4bbb6d Extend filesystem docs, remove LeaveAllocated 2013-10-23 10:16:27 +08:00
Ethan Lee 8facd9f0b0 Merge branch 'sdl2cs-system-ram' of git://github.com/babelshift/SDL2-CS into sdl2-hg 2013-10-22 20:26:23 -04:00
Justin Skiles 861f5b3df6 Fixed trailing space on line 3797. 2013-10-22 20:15:27 -04:00
Justin Skiles 29372e5fa4 Added binding to SDL_GetSystemRAM() in SDL_cpuinfo.h 2013-10-22 19:28:34 -04:00
David Gow 475b9b6787 Add SDL_filesystem.h for SDL 2.0.1 2013-10-22 15:06:27 +08:00
David Gow 15aa82b2df Add SDL_GL_FRAMEBUFFER_SRGB_CAPABLE (SDL bug 1985) 2013-10-21 10:14:24 +08:00
Ethan Lee 1459270321 AL_EXT_MSADPCM support 2013-10-08 23:50:54 -04:00
Ethan Lee e7f9b53796 Fix BlitSurface, add BlitSurfaceScaled 2013-09-29 05:45:58 -04: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
thefiddler 58a8d318ac Normalized whitespace (spaces -> tabs) 2013-09-27 11:18:54 +02:00
thefiddler 95f0f58b84 Added SDL_GLcontextFlags enumeration.
The SDL_GLcontextFlags enumeration contains the values that are used in the SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, ...). This is required for enabling the debug or robustness OpenGL profiles.
2013-09-26 23:03:10 +02:00
Justin Skiles 49f4419656 Forgot to save the file before pushing. Ugh. 2013-09-02 15:20:41 -04:00
Justin Skiles 552a8b5ead Adding overload for SDL_LockTexture to allow IntPtr.Zero in the "rect" parameter. SDL documentation states that passing NULL for this value will lock the entire texture." 2013-09-02 15:18:11 -04:00
Justin Skiles 080f4e6e2b Fixing typo in SDL_TextureAccess enumeration for member SDL_TEXTUREACCESS_STATIC (it was missing an 'S') 2013-09-02 00:16:46 -04:00
Ethan Lee 0b7cd87083 The union is a separate entity. 2013-09-01 16:37:48 -04:00
Ethan Lee 28ad7c171c SDL_GetWindowWMInfo() 2013-09-01 16:30:39 -04:00
Ethan Lee 657c78f956 Only disable 0169 warning where it is needed. And oh, look, it found a bug! 2013-09-01 16:24:44 -04:00
Ethan Lee 72735d2b8d SDL_syswm.h 2013-09-01 16:18:38 -04:00
Ethan Lee 29c51a3f9b Merge pull request #35 from babelshift/sdl2#-xml-docs
Started adding XML comments. This will be a long journey.
2013-08-31 14:54:10 -07:00
Justin Skiles c4bcd17f60 Started adding XML comments. This will be a long journey. 2013-08-31 15:37:23 -04:00
Ethan Lee 41885b1e80 SDL_systimer docs 2013-08-30 00:48:02 -04:00
Justin Skiles dbe1891988 Adding methods to map to SDL_Delay and SDL_GetTicks in SDL_systimer.h 2013-08-29 23:20:39 -04:00
Ethan Lee 5b2d1c3aea Right. Like I said. Lunatic. 2013-08-28 06:39:52 -04:00
Ethan Lee 9b86627382 Doc cleanup. Because I am a lunatic. 2013-08-28 06:31:06 -04:00
Justin Skiles ad6e7a7fa8 Added all source/destination null parameter overload variations for RenderCopy. Added function comments to explain their use. Fixed inconsistent tabbing. 2013-08-26 20:16:51 -04:00
Justin Skiles 796e0b9e54 Added overload to SDL_RenderCopy method to allow SourceRectangle to be passed as an IntPtr. This allows developers to pass IntPtr.Zero to take advantage of internal SDL default values for null rectangles. 2013-08-26 18:44:39 -04:00
gered 72dd621577 fixed reversed const definitions
See http://hg.libsdl.org/SDL/file/8f71b590aff6/include/SDL_events.h#l49
2013-08-18 14:01:55 -04:00
Jameson Ernst 2d5f572ccf Changed text input events to byte instead of char
Added hint for background joystick events
2013-08-17 17:58:31 -07:00
Ethan Lee 482319f9b0 Grumble, C# structs... 2013-08-10 13:58:57 -04:00
Ethan Lee a9f3447df3 SDL_HapticLeftRight is in upstream! 2013-08-10 13:54:48 -04:00
ollipekka 82aae4d722 Fixed leading whitespace in indent. 2013-08-03 21:41:48 +03:00
ollipekka 70c4d742c8 Unified naming conventions with the native SDL2 library and introduced SDL_GLprofile. 2013-08-03 21:39:08 +03:00
Jameson Ernst c751ad0a03 Fixed gamma-ramp marshaling
more out params
2013-07-24 16:33:52 -07:00
Ethan Lee fe8cf68230 Fix SDL_RenderGetViewport entry 2013-07-15 12:36:03 -04:00
Jameson Ernst 941209348a Change messagebox enum base types to uint
Change access level on messagebox internals to private
2013-07-14 22:14:06 -07:00
Jameson Ernst 51e907c959 Marshaling refinements to supplementary libraries 2013-07-14 21:24:26 -07:00
Jameson Ernst 423ace8dd8 Merge remote-tracking branch 'origin/master' 2013-07-14 20:28:05 -07:00
Jameson Ernst 92397d8a98 Added SDL_messagebox wrapper 2013-07-14 19:25:35 -07:00
Jameson Ernst 964f553e25 Marshaling refinements 2013-07-14 14:51:55 -07:00
Ethan Lee 284c1cde76 Add SDL_messagebox.h 2013-07-13 14:21:00 -04: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 00f353693e Fixed leftover internal names 2013-06-25 23:51:05 -07:00
Jameson Ernst 4868a53683 Added UTF-8 support to supplementary libs
Style changes for consistency
2013-06-25 23:16:43 -07:00
Jameson Ernst 1c6c04f2e2 Apply UTF-8 marshaling to return values and removed extra wrapping layer 2013-06-25 22:12:29 -07:00
Jameson Ernst 1741030481 Added UTF-8 string marshaling 2013-06-25 21:36:38 -07:00
Ethan Lee 0d5195c00c Add SDL_SetMainReady 2013-06-19 01:45:44 -04:00
Ethan Lee 9f0949be21 Fix SDL_SaveBMP 2013-05-24 07:37:37 -04:00
Ethan Lee 2658498408 Haptic effects seem to work now. 2013-05-09 14:54:47 -04:00
Ethan Lee 8876cc0117 More Haptic fixes... I think... 2013-05-08 23:07:58 -04:00
Ethan Lee 1b692d307d A couple fixes for Haptic 2013-05-08 21:14:32 -04:00
Ethan Lee 6ccf4ca414 Fix some VS debugger issues. 2013-05-04 15:46:10 -04:00
Ethan Lee 0023c59bd3 SetWindowFullscreen has more options than a bool 2013-04-29 06:52:32 -04:00
Ethan Lee 7c1bfdbaeb Fix SDL_BUTTON masks. 2013-04-28 18:58:30 -04:00
Ethan Lee 4c9d372611 Fix SDLK_ESCAPE 2013-04-28 17:57:47 -04:00
Ethan Lee 647e1b5efd Fix LoadWAV/FreeWAV 2013-04-28 16:39:27 -04:00
Ethan Lee 4f02e3d005 SDL_SetWindowBordered 2013-04-28 14:53:16 -04:00
Ethan Lee a69308c8d6 Woops, TTF minor version is definitely 0... 2013-04-17 19:09:15 -04:00
Ethan Lee d49903dd9e Clarity for VERSION_ATLEAST 2013-04-17 18:51:29 -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 ffab51b4a0 Document SDL_GL_GetProcAddress 2013-04-17 12:01:12 -04:00
Ethan Lee 015be72dad Use SDL2# license for SDL2_GraphicsContext 2013-04-17 03:51:29 -04:00
Ethan Lee 9ab9d57b23 Merge branch 'alpha-support' Strip Attribute bits 2013-04-17 03:41:52 -04:00
Ethan Lee fdbf76f308 Strip out needless Attribute bits 2013-04-17 03:41:40 -04:00
Ethan Lee 7ba9db97ea OpenGL support via OpenTK. 2013-04-16 18:11:29 -04:00
Ethan Lee 3eb90d9c52 Merge branch 'alpha-support': SDL_GL_GetProcAddress 2013-04-16 15:14:06 -04:00
Ethan Lee f6eff6c217 SDL_GL_GetProcAddress 2013-04-16 15:13:48 -04:00
Ethan Lee 21cb7cb7b7 OpenAL support via OpenTK. 2013-04-15 15:49:17 -04:00
Ethan Lee 14aabb792a Need to do a PtrToString on this first. 2013-04-11 19:10:15 -04:00
Ethan Lee d4d6dff87c Input is done! I think! 2013-04-11 13:25:02 -04:00
Ethan Lee 5bdf2d4c35 Everything but 'event filter stuff' is done. 2013-04-11 12:40:44 -04:00
Ethan Lee bea66fc84b Touch/Gesture events 2013-04-11 12:33:12 -04:00
Ethan Lee c33c997947 TextEdit and TextInput events 2013-04-11 12:20:28 -04:00
Ethan Lee a80f8a8f92 Missed a line of tempdoc in that last commit... 2013-04-09 23:37:05 -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 d3dcc117e9 Checked on the ButtonBind struct, should be alright. 2013-04-09 22:03:01 -04:00
Ethan Lee c2359680ae For SDL2#, this will be const, not redefinable. 2013-04-09 13:54:04 -04:00
Ethan Lee 9fab52ec04 These aren't that problematic, we just name them like we do IntPtrs. 2013-04-09 13:43:37 -04:00
Ethan Lee 7dd9cf4272 Fix endianness assumption, make PIXELFORMATs readonly. 2013-04-09 13:38:06 -04:00
Ethan Lee 2377195ecc SDL_Log[Get|Set]OutputFunction 2013-04-09 12:55:01 -04:00
Ethan Lee 9339b5514c SDL_gamecontroller.h done. 2013-04-09 12:29:41 -04:00
Ethan Lee 8212b2864f SDL_joystick written. SDL_gamecontroller is next. 2013-04-09 11:39:16 -04:00
Ethan Lee 5238ccd88e Durr, that is a macro, flibit. 2013-04-09 10:49:31 -04:00
Ethan Lee 0827bc6c9d Fix parameter for CreateWindowAndRenderer. 2013-04-08 13:23:45 -04:00
Ethan Lee 281ce130e0 Remove 2 from class names to prevent namespace ambiguity. 2013-04-08 12:09:41 -04:00
Ethan Lee 29d299fa41 Removed SDL2_net. Just use Lidgren.Network instead. 2013-04-07 23:13:39 -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 dd28844230 SDL2_mixer first draft is done. 2013-04-07 22:21:02 -04:00
Ethan Lee ce1c082b17 SDL2_mixer mostly implemented, need to do Special Effects API. 2013-04-07 22:05:46 -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 0298d74dd9 SDL2_image implemented. Pretty small without RWops. 2013-04-07 08:44:59 -04:00
David Gow 129410c745 Fix SDL_CreateColorCursor and SDL_LoadBMP 2013-04-07 19:39:23 +08:00
David Gow e22aa09e4d Fix some small type issues. 2013-04-07 19:26:08 +08:00
David Gow 6a2149398e Made some struct members public 2013-04-07 17:23:21 +08:00
Ethan Lee 824d610948 Audio CVT cannot be supported in C#, SDL_AudioCallback might work though. 2013-04-06 09:29:00 -04:00
Ethan Lee db33bd5590 Keep it in order according to the APIByCategory page. 2013-04-06 09:18:43 -04:00
Ethan Lee 06f5cd151c Forgot to take out the Audio TODO. Not my morning, is it? 2013-04-06 09:11:06 -04:00
Ethan Lee 332ab6a8ae SDL_audio implemented. Function pointers are a concern here. 2013-04-06 09:07:38 -04:00
Ethan Lee 0d4525d7cb Yet another build fix, so many margfargling keywords 2013-04-06 08:38:47 -04:00
Ethan Lee 37bce8c1aa Quick compile fix, SDL_audio paaaaart twoooooish 2013-04-06 08:37:57 -04:00
Ethan Lee b118961923 SDL_audio paaaart oooone 2013-04-06 08:32:46 -04:00
David Gow bb7f16fb04 Mouse support. 2013-04-06 20:15:10 +08:00
Ethan Lee 68bcf29cc8 SDL_haptic implemented. 2013-04-06 07:40:57 -04:00
David Gow 297a13b5b5 SDL_Keysym for SDL_KeyboardEvent 2013-04-05 23:45:13 +08:00
David Gow 45cbf67088 SDL_keyboard.h bindings 2013-04-05 23:43:43 +08:00
David Gow 7fe351db62 C# likes bitfields to have [Flags] annotations 2013-04-05 23:20:09 +08:00
David Gow 0d070851dd Oops, forgot to add KMODs 2013-04-05 23:18:47 +08:00
David Gow f0c1ebdabe Add SDL_keycode.h bindings. There be (small) dragons here. 2013-04-05 23:04:35 +08:00
David Gow 073908afce Added SDL_scancode.h definitions 2013-04-05 21:19:17 +08:00
David Gow 1512009b64 Mostly-done SDL_events.h 2013-04-04 23:36:22 +08:00
Ethan Lee 295a054e5f Video section first draft: COMPLETE! 2013-04-04 10:33:26 -04:00
Ethan Lee 08c3a16f97 Because lol, C# structs 2013-04-04 09:57:43 -04:00
Ethan Lee d17be7fd2a StructLayouts... 2013-04-04 09:56:04 -04:00
Ethan Lee 25cb6f3854 SDL_pixels paaart twooooo 2013-04-04 09:18:40 -04:00
Ethan Lee 100c29bef7 SDL_pixels paaaaaart oooone... 2013-04-04 08:57:09 -04:00
Ethan Lee 908752fffb TODO for SDL2.cs, add note about what will go into SDL2# 2013-04-04 04:32:42 -04:00
Ethan Lee de5f266324 SDL_render first draft done. 2013-04-04 04:18:59 -04:00
Ethan Lee 97b982d3f5 Remove the SDL2_rtf stuff. Not even sure that is a supported extension anymore. 2013-04-03 20:09:40 -04:00
Ethan Lee 020da070aa End this block of work with OCD! 2013-04-03 17:07:44 -04:00
Ethan Lee c4989fcf7d window refers to an SDL_Window* 2013-04-03 17:04:24 -04:00
Ethan Lee 0c5aa3db49 20 down, 46 to go wait what 2013-04-03 16:06:44 -04:00
Ethan Lee 5bbb2835b2 Video section WIP, brb... 2013-04-03 14:43:08 -04:00
Ethan Lee a5a08b4140 Why, hello there, world... 2013-04-03 12:15:53 -04:00