Commit graph

480 commits

Author SHA1 Message Date
Jarl Gullberg 56b51702c2
Corrected XML comments to reflect now removed JoystickAxis enumeration. 2017-07-20 12:49:03 +02:00
Jarl Gullberg 8974c0ee2b
Remove unused backing field from FileDropEventArgs. 2017-07-20 12:45:01 +02:00
Austin Chen 3686203a6a Fix broken Android and iOS builds 2017-07-19 00:24:43 -07:00
Jarl Gullberg 4f60f95607
Enforced the use of braces for conditional statements. 2017-07-17 19:24:51 +02:00
Jarl Gullberg 5f2d3144c4
Enforced use of explicit private modifiers. 2017-07-17 18:51:54 +02:00
Fraser Waters f1362eef2b Merge pull request #574 from Frassle/bind_settings
Update Generator.Bind default settings for new repo layout
2017-07-17 17:20:31 +01:00
Jarl Gullberg 4ff4874df9 Merge pull request #572 from Nihlus/converter-better-options
Replace bundled Mono.Options in Converter
2017-07-17 18:04:49 +02:00
Fraser Waters 812a4f83ab Update Generator.Bind default settings for new repo layout 2017-07-17 10:37:40 +01:00
Jarl Gullberg ee09c798e4 Merge pull request #565 from leezer3/JoystickAxis
Change: Bump joystick axis limit to 64 & remove JoystickAxis enum
2017-07-16 22:31:16 +02:00
Christopher Lees d8512ac2fc Change: Use MaxAxes, not inlined constants 2017-07-16 20:49:00 +01:00
Jarl Gullberg 11061bc172
Attempted AppVeyor compilation fix by target version bump. 2017-07-16 15:53:29 +02:00
Jarl Gullberg eaff349201
Renamed "Parser" to "XmlParser" to not conflict with the command line parser. 2017-07-16 15:40:22 +02:00
Jarl Gullberg aa3c256625
Bumped Mono.Cecil version to correct build errors. 2017-07-15 18:31:32 +02:00
Jarl Gullberg 997247302e
Updated and renamed README file. 2017-07-15 15:47:16 +02:00
Jarl Gullberg 36357873a7
Removed old options usage from Main.cs. 2017-07-15 15:42:51 +02:00
Jarl Gullberg e39a4cb48f
Implemented options class. 2017-07-15 15:40:03 +02:00
Jarl Gullberg eb53f2ce59
Bumped framework target of Generator.Convert and updated to v2 of CommandLineParser. 2017-07-15 15:23:04 +02:00
Jarl Gullberg f6ee6e2a03
Added CommandLineParser to Generator.Converter 2017-07-15 14:55:04 +02:00
Christopher Lees 77bbb99f72 Change: Remove unnecessary assignments from OS-X HID driver 2017-07-13 19:06:43 +01:00
Christopher Lees d0880ab1e6 Change: Remove unncessary int assignment from GamePadConfiguration.cs 2017-07-12 22:16:55 +01:00
Jarl Gullberg 31faf624da Merge pull request #571 from UnknownShadow200/develop
Fix X11 drag-n-drop returning wrong filename, and crashing
2017-07-12 15:28:34 +02:00
Jarl Gullberg 0c585b685c Merge pull request #567 from Frassle/issue259
Wait for XEvents when changing window size
2017-07-12 15:20:14 +02:00
UnknownShadow200 65e59d9f42 Fix X11 drag-n-drop returning wrong filename, and crashing
Wrong filename being returned was due to the filename being URL encoded.
Crashing was due to the offset being past the end of the buffer returned from Marshal.AllocHGlobal.

Fixes #570.
2017-07-12 17:15:33 +10:00
Christopher Lees b1450bc2f2 Change: Simplify bounds checking 2017-07-11 12:38:05 +01:00
Christopher Lees ac9a1fb697 New: Add 4-position hat switches to Windows HID driver 2017-07-11 11:58:04 +01:00
Christopher Lees 471dd5bf18 Fix: Some joystick hats not returning centered correctly on Windows HID 2017-07-11 11:47:47 +01:00
Fraser Waters a7f43f3f05 Wait for XEvents when changing window size
Fixes #259

Reading from GameWindow.ClientSize after assigning a new value to it
could often return the old value on X systems.
This was due to ClientSize being set by a ConfigureNotify event sent
by the X server that we would sometimes not during the ProcessEvents
started by the ClientSize setter (due to the asynchronous nature or
client/server).

This commit adds a way to wait for a specific event type in
ProcessEvents. Just before calling ProcessEvents in the ClientSize
setter we set the wait type to ConfigureNotify. This should ensure
that ClientSize will not return until we've received the new size of
the window from the X server and updated our internal values for the
size of the window. Thus when ClientSize is then read immediately
after it is always the new size.

It's likely that some of the other property setters we have which call
ProcessEvents need a similar fix.
2017-07-10 16:57:40 +01:00
Christopher Lees 5c11f61729 Add XML-doc comments & remove unused imports. 2017-07-10 11:35:43 +01:00
Christopher Lees 5abbd6c57c Change: Tweak GamePadConfigurationSource constructor to be clearer 2017-07-10 11:19:56 +01:00
Christopher Lees d00a2f982d Change: Bump joystick axis limit to 64 & remove JoystickAxis enum 2017-07-09 22:57:51 +01:00
Jarl Gullberg 127c6fd67d
Transformed compatible properties into auto-properties where possible. 2017-07-07 11:52:32 +02:00
Christopher Lees 89ed072d77 Fix file drop string marshalling 2017-07-06 21:44:14 +01:00
Jarl Gullberg af416b6e3a
Replaced tabs with four spaces across the codebase. 2017-07-05 20:28:30 +02:00
Jarl Gullberg 3cf88759eb Merge pull request #559 from Nihlus/purge-region
Purge region declarations
2017-07-05 20:22:59 +02:00
Jarl Gullberg d230adb6d7
Replaced tabs with spaces in malformed file. 2017-07-05 19:17:25 +02:00
Jarl Gullberg e27cf648b5
Corrected malformed indendation. 2017-07-05 19:16:53 +02:00
Jarl Gullberg ad173ec802
Removed commented region. 2017-07-05 14:23:06 +02:00
Jarl Gullberg f11ecd016d
Removed region declarations across the codebase. 2017-07-05 14:09:27 +02:00
Jarl Gullberg 40bf97e280
Removed leftover Paket options from merge. 2017-07-05 13:52:34 +02:00
Jarl Gullberg a67340e2b3
Added deterministic option to all relevant projects. 2017-07-05 13:49:08 +02:00
Jarl Gullberg cc928f0e51 Merge pull request #543 from VPeruS/fix-mouse-wheel
Fix interop for wheel events(MacOS)
2017-07-05 13:43:38 +02:00
varon 4eb02d3012 Merge pull request #553 from VPeruS/interop-macos-set-position
Wrong cast for interop when setting mouse position(MacOS)
2017-07-04 21:42:36 +02:00
varon 09bd2d5d10 Merge pull request #542 from VPeruS/drag-and-drop
Drag and drop support
2017-07-04 21:40:26 +02:00
varon 7bf31b18e1 Merge pull request #549 from Nihlus/remove-obsolete-code
Remove code marked obsolete
2017-07-04 21:37:15 +02:00
varon 8c66c332ab Merge pull request #524 from Nihlus/glwidget-gtk3
GTK3 updates for GLWidget
2017-07-04 21:35:21 +02:00
Fraser Waters 803ceefbc1 Move Enum/FuncPrefix and TrimName to base Parser object
Doesn't seem to be that useful alone but a Vulkan parser is different
enough to OpenGL to need a new Parser object but name trimming is pretty
much the same.
2017-07-03 16:23:28 +01:00
Fraser Waters be5712d85b Remove unused property Version in Converter
The property Version on the Parser class was never used. Removed it and
the command line argument in main that was used to set it.
2017-07-02 23:03:34 +01:00
Jarl Gullberg 9309889a1a
Corrected usages of tabs instead of spaces. 2017-06-25 13:49:04 +02:00
Jarl Gullberg 13494f515c
Merge branch 'develop' into glwidget-gtk3 2017-06-25 13:45:05 +02:00
Jarl Gullberg 2186ad2293
Removed bundled GLXAttribute enum. 2017-06-25 13:44:19 +02:00
Jarl Gullberg 2f1e49c667
Set GLXAttribute access to public. 2017-06-25 13:44:01 +02:00
VPeruS 3f1d888ef4 Wrong cast for interop when setting position(MacOS) 2017-06-25 03:43:48 +03:00
Jarl Gullberg 6d96b57deb
Removed obsolete VSync property. 2017-06-22 18:34:49 +02:00
Jarl Gullberg 10859fbbe7
Removed obsolete input driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg 5474ee4426
Removed obsolete keyboard driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg c43a4f03f1
Removed obsolete joystick driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg d3e831038d
Removed obsolete mouse driver. 2017-06-22 18:34:49 +02:00
Jarl Gullberg a5581d94af
Removed obsolete functions which accessed the obsolete joystick driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 8719556315
Removed obsolete legacy joystick driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 92141295cd
Removed obsolete legacy input driver. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 094e79a570
Removed obsolete screenshot function. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 5f9bf7fea3
Removed obsolete compatibility properties. 2017-06-22 18:34:48 +02:00
Jarl Gullberg aba454288f
Removed obsolete INativeGLWindow class. 2017-06-22 18:34:48 +02:00
Jarl Gullberg da6682711a
Removed obsolete CreateDummyContext functions and added constructor
constructor comments which explain how to create a dummy context.
2017-06-22 18:34:48 +02:00
Jarl Gullberg 7601a86f6d
Removed obsolete compatibiliy fields. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 86189c2fc4
Removed warning disables. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 7b72e2d156
Removed obsolete compatibility wrapper functions. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 11a442037d
Removed obsolete compatibility function. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 289dd1749a
Removed obsolete Matrix functions. 2017-06-22 18:34:48 +02:00
Jarl Gullberg f8cc979ed5
Removed obsolete function accessor. 2017-06-22 18:34:48 +02:00
Jarl Gullberg b4b5016597
Removed CreateGraphicsContext helper wrapper. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 020f20a6ed
Removed obsolete Mult functions and renamed region. 2017-06-22 18:34:48 +02:00
Jarl Gullberg ef71a1ed38
Removed obsolete property. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 866d46da53
Removed obsolete multiplication functions and renamed region. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 05ee9a11f5
Removed obsolete property. 2017-06-22 18:34:48 +02:00
Jarl Gullberg 0f3de7e1bc
Removed obsolete methods from vector classes. 2017-06-22 18:34:48 +02:00
Jarl Gullberg b26bc3f158
Removed obsolete constructors from Vector2. 2017-06-22 18:34:47 +02:00
Jarl Gullberg eab5028fe6
Removed obsolete mathematics class. 2017-06-22 18:34:47 +02:00
Jarl Gullberg c1da0f0434
Removed obsolete property. 2017-06-22 18:34:47 +02:00
Jarl Gullberg 2d90e61fa5
Removed obsolete constructor. 2017-06-22 18:34:47 +02:00
Jarl Gullberg bac01afe00
Removed unused and obsolete fields. 2017-06-22 18:34:47 +02:00
Jarl Gullberg 74e22142cb
Removed obsolete SetWindowAttributes structure. 2017-06-22 18:34:47 +02:00
Jarl Gullberg 65d0cf4c58
Removed obsolete and unused function. 2017-06-22 18:34:47 +02:00
Vlad K a3ca402168 Turn comments into XML docs. Change NSDragOperation visibility 2017-06-21 23:08:34 +03:00
Vlad K 9486b4963b Code sanity 2017-06-21 22:10:11 +03:00
Vlad K eb951d8569 Delete region keyword 2017-06-21 22:07:32 +03:00
Jarl Gullberg 5605b1fac2
Reindented with spaces instead of tabs. 2017-06-21 18:28:36 +02:00
Vlad K 280fa4b77d Ansi to Auto 2017-06-19 00:20:07 +03:00
Vlad K aba85d479c Some docs 2017-06-19 00:19:11 +03:00
Vlad K 527efca095 SDL2 rewrite c string to c# shtring + some docs 2017-06-18 23:44:47 +03:00
Jarl Gullberg 5c8e485dbb
Removed license headers. 2017-06-18 22:09:20 +02:00
Vlad K 1a20ca5245 Rename Drop event, remove licenses 2017-06-18 22:37:16 +03:00
Jarl Gullberg ed53933e4d
Removed duplicate structures, and set to use already existing ones. 2017-06-18 21:17:00 +02:00
Jarl Gullberg f5acd206d7
Set XVisualInfo to public. 2017-06-18 21:16:21 +02:00
Jarl Gullberg b207829e80 Merge pull request #541 from varon/malcomstill-pr-471v2
Updated Linux/KMS platform to work with recent versions of libinput / Fix for Linux/KMS rendering glitches
2017-06-18 17:16:03 +02:00
VPeruS fc5c7be51a Fix interop for wheel events 2017-06-17 17:30:01 +03:00
varon 6440ca3cf9 Merge pull request #540 from VPeruS/macx64-cursor-fix
Macx64 cursor fix
2017-06-16 21:46:27 +02:00
Vlad K 77a2a5c8b3 Fix wrong path 2017-06-16 22:38:40 +03:00
Vlad K c78b110110 MacOS d&d support 2017-06-16 22:10:04 +03:00
Vlad K dc2f4fef21 Add Xdnd support 2017-06-16 22:09:15 +03:00
Vlad K c65f1fb7bc Initial d&d x11 event support 2017-06-16 22:09:06 +03:00
Vlad K 9062f8ed30 Clean up 2017-06-16 22:08:33 +03:00
Vlad K 90e9c28cbd Added Windows D&D support 2017-06-16 22:08:24 +03:00
Vlad K 18dd603696 Fix of memory leak 2017-06-16 22:07:11 +03:00
Vlad K e792bd80fe Add initial d&d support for GameWindow. Add SDL2 d&d support 2017-06-16 22:02:55 +03:00
VPeruS 52206ec13b Add requsted changes 2017-06-14 00:56:42 +03:00
Malcolm Still 543bdc107c Remove Fixed24 struct 2017-06-13 16:53:57 -05:00
Malcolm Still d360026dfe Remove DRM cursor on Dispose. 2017-06-13 16:53:57 -05:00
Malcolm Still 612b86bd5a Moving the LockSurface after waiting for the page flip stops the rendering glitches on Linux/KMS. 2017-06-13 16:53:57 -05:00
Malcolm Still f08d210ba3 Some casts required in the absolute motion handler now that the query functions return doubles. 2017-06-13 16:53:57 -05:00
Malcolm Still 64e6346ac4 Mistake in change. The Debug.Print statement should not be there. 2017-06-13 16:53:57 -05:00
Malcolm Still bbbbc75e75 Relative pointer motion should use the relative (Delta) query functions. 2017-06-13 16:53:57 -05:00
Malcolm Still 9494457c26 Use new axis querying functions to update mouse scroll state. 2017-06-13 16:53:57 -05:00
Malcolm Still fa8f19a40a Use new Libinput.CreateContext and Libinput.AssignSeat functions in Setup(). 2017-06-13 16:53:57 -05:00
Malcolm Still 8558e86e81 Removed @ symbol from IntPtr name 2017-06-13 16:53:57 -05:00
Malcolm Still 5db38956d6 Pointer coordinate query functions now return doubles. 2017-06-13 16:53:57 -05:00
Malcolm Still 0f65acc165 libinput v0.8 removed libinput_event_pointer_get_axis and replace with libinput_event_pointer_has_axis and libinput_event_pointer_get_axis_value now takes a specified PointerAxis 2017-06-13 16:53:56 -05:00
Malcolm Still 17a7464793 libinput v0.4 removed libinput_udev_create_for_seat and replaced with two functions libinput_udev_create_context and libinput_udev_assign_seat to separately create a context and assign it a seat name. 2017-06-13 16:53:56 -05:00
Jarl Gullberg 5dce9161bd
RootWindow is now accessed through GDK.Screen instead. It is deprecated in GTK3. 2017-06-13 23:06:39 +02:00
Jarl Gullberg cb42feef20
Added more method and class comments. 2017-06-13 22:49:49 +02:00
Jarl Gullberg 5c69098f63
Correct usage of variable name under GTK2. 2017-06-13 22:46:28 +02:00
Jarl Gullberg 0a95b20860
GdkWindow is deprecated in GTK3. Splitting out into two accessors. 2017-06-13 22:45:10 +02:00
Jarl Gullberg 3d60cf2bf6
Split the different Destroy and Dispose signatures. 2017-06-13 22:42:52 +02:00
Jarl Gullberg af5be093a8
Revert "Removed redundant field initializers."
This reverts commit 5abcfedf11.
2017-06-13 22:34:32 +02:00
Jarl Gullberg accdc55731
Revert "Introduced optional parameters for GLWidget constructor, removing a redundant constructor."
This reverts commit 1634a652c2.
2017-06-13 22:34:29 +02:00
Jarl Gullberg 632c3f8722
Revert "Converted GraphicsContextFlags into an auto-property."
This reverts commit be037bbdb0.
2017-06-13 22:34:26 +02:00
Jarl Gullberg 12ed99e9eb
Revert "Added ReSharper warning suppressions."
This reverts commit c98fbde35c.
2017-06-13 22:34:14 +02:00
Jarl Gullberg c98fbde35c
Added ReSharper warning suppressions. 2017-06-13 22:13:20 +02:00
Jarl Gullberg be037bbdb0
Converted GraphicsContextFlags into an auto-property. 2017-06-13 22:11:19 +02:00
Jarl Gullberg 1634a652c2
Introduced optional parameters for GLWidget constructor, removing a redundant constructor. 2017-06-13 22:10:49 +02:00
Jarl Gullberg 5abcfedf11
Removed redundant field initializers. 2017-06-13 22:09:32 +02:00
Jarl Gullberg f240a75208
Enforced use of explicit private modifiers for clarity. 2017-06-13 22:08:58 +02:00
Jarl Gullberg 8b32c9aa5e
Improved comments. 2017-06-13 22:08:23 +02:00
Jarl Gullberg 91eac27c99
Deleted now obsolete code. 2017-06-13 22:02:21 +02:00
Jarl Gullberg 57004cceb8
Added new files to project. 2017-06-13 22:01:34 +02:00
Jarl Gullberg cf678dfc48
Replaced in-class initialization with calls to platform-specific classes. 2017-06-13 22:01:11 +02:00
Jarl Gullberg e05f34377b
Broke out window info initialization into their own classes. 2017-06-13 22:00:41 +02:00
Jarl Gullberg 2dc4c1b12a
Dropped to C# 6.0 to maintain support for AppVeyor. 2017-06-13 21:42:16 +02:00
Jarl Gullberg 7f29705f0a
Removed obsolete GtkSharp references. 2017-06-13 20:43:44 +02:00
Jarl Gullberg 993d1a60c9
Merge branch 'develop' into glwidget-gtk3 2017-06-13 20:29:58 +02:00
Jarl Gullberg fc954ef09b
Removed invalid character. 2017-06-13 20:24:38 +02:00
Jarl Gullberg d962586000
Corrected use of versioned folder. 2017-06-13 20:22:08 +02:00
Jarl Gullberg 1ea2975aab
Reverted use of SolutionDir. 2017-06-13 20:12:09 +02:00
Jarl Gullberg 46dcea2a61
Fixed incorrect chooser. 2017-06-13 19:59:29 +02:00
Jarl Gullberg 7180293dbe
Changed to a more recent GTK#3 NuGet package. 2017-06-13 19:51:52 +02:00
Jarl Gullberg 07a37d2e92
Added constant switching between GTK#2 and GTK#3 references in the project file. 2017-06-13 19:51:14 +02:00
VPeruS a68581118e HIRect to NSRect. HISize to NSSize 2017-06-13 05:38:20 +03:00
VPeruS d13451d181 Change HIPoint to NSPoint, hipoint wasn't arch independent 2017-06-13 05:31:31 +03:00
VPeruS 72320ad181 Fix incorect type cast 2017-06-13 05:31:15 +03:00
Vperus 85541f6449 Fix macos x64 wrong mouse input 2017-06-13 05:30:49 +03:00
David Jeske 6afb2ad58f Revert "Fix duplicate scroll input on windows 10"
This reverts commit 9ef456bf9a.
2017-06-12 09:16:32 -07:00
David Jeske 2d702337d2 Merge branch 'issue_488_input_events_fired_more_than_once' into 488_fix2 2017-06-12 09:16:01 -07:00
David Jeske 3bbd31d66b Fix SetCapture() to use child_window instead of window. As using window was causing spurious WM_MOUSELEAVE events. Also change other mouse events to return IntPtr.Zero when handled 2017-06-11 19:09:50 -07:00
David Jeske d5b43fb33c treat MouseMove events as handled by returning zero instead of calling DefWindowProc 2017-06-11 18:36:32 -07:00
varon f1fed27afd Merge pull request #536 from varon/win10-scroll-fix
Fix duplicate scroll input on windows 10
2017-06-12 01:37:06 +02:00
varon 300d4df696 Merge pull request #538 from varon/include-pdb
Add pdb to nuget package
2017-06-12 01:27:13 +02:00
varon 2865cd8f45 Add pdb to nuget package 2017-06-12 01:14:07 +02:00
UnknownShadow200 45d032da52 Fix a nameof() using wrong variable in GeneratedVariableIdentifier 2017-06-12 09:10:09 +10:00
varon 9ef456bf9a Fix duplicate scroll input on windows 10 2017-06-12 00:19:39 +02:00
varon f8ac2565fa Merge pull request #532 from UnknownShadow200/develop
Directly expose the xyz and w fields of Quarternion and Quaterniond
2017-06-11 21:04:11 +02:00
Jarl Gullberg e78036818b
Merge branch 'develop' into glwidget-gtk3 2017-06-08 13:35:29 +02:00
Jarl Gullberg 01bcbf181b
Added check for directly equal inputs. 2017-06-07 15:22:37 +02:00
Jarl Gullberg 87de6dda4d
Merged new equivalence function. 2017-06-07 14:27:36 +02:00
UnknownShadow200 2179625b3b Directly expose the xyz and w fields of Quarternion and Quaterniond
This addresses github issue #501. They replace the Xyz and W properties, which breaks backwards binary compatibility.
2017-06-05 18:09:08 +10:00
Jarl Gullberg fb71ebcffe
Added new and improved floating-point equality tester. 2017-06-04 19:06:03 +02:00
varon ecdd0cdc0d Merge pull request #4 from Nihlus/fix-division-rounding
Fixed rounding error in division operations.
2017-06-03 20:12:46 +02:00
varon 1d1428c3e4 Merge pull request #5 from Nihlus/fix-vector-componentminmax
Mark Min/Max as obsolete and implement ComponentMin/Max and MagnitudeMin/Max for all vector classes.
2017-06-03 20:12:07 +02:00
Jarl Gullberg 4f50ea8bee
Improved ComponentMin/Max documentation. 2017-06-03 15:14:39 +02:00
Jarl Gullberg 076d016648
Alter division by reference to be by component and not by operator. 2017-06-02 23:09:27 +02:00
Jarl Gullberg 18976c898a
Improve comments. 2017-06-02 22:59:24 +02:00
Jarl Gullberg 809e7b4379
Improved documentation. 2017-06-02 20:31:54 +02:00
Jarl Gullberg bea15cd250
Obsoleted Min/Max methods. 2017-06-02 19:42:08 +02:00
Jarl Gullberg 7c298cc43d
Eliminated additional step for division operations. 2017-06-02 19:32:22 +02:00
Jarl Gullberg 828dfd49fc
Merge branch 'fscheck-testing-rebased' into fix-vector4-clamp 2017-06-02 19:14:04 +02:00
Jarl Gullberg 469a8d275f
Fixed use of incorrect components in clamping function. 2017-06-01 19:58:25 +02:00
varon 4ee0700bab Update project deps 2017-05-31 14:13:17 +02:00
varon 83e0175a9f Merge branch 'develop' into fscheck_testing
Conflicts:
	paket.lock
2017-05-31 14:08:32 +02:00
Jarl Gullberg b8975c5626
Added catching of error thrown when the assembly has been rewritten but the debug symbols do not match. 2017-05-30 19:09:27 +02:00
Jarl Gullberg d5e060d4e0
Merge branch 'develop' into glwidget-gtk3 2017-05-30 17:44:11 +02:00
Jarl Gullberg 1cda816b97
Changed signatures back to IEnumerable and added full enumeration to list where needed. 2017-05-29 22:22:26 +02:00
Jarl Gullberg b420ce8735
Changed signature of RemoveNativeSignatures. 2017-05-29 22:08:48 +02:00
Jarl Gullberg 7b65131fb5
Pulled repeated logic out into a helper method. 2017-05-29 22:05:07 +02:00
Jarl Gullberg 86e0898811
Restricted access to internal and sealed the class. 2017-05-29 21:58:38 +02:00
Jarl Gullberg ff413b8a6c
Dropped project target back down to 3.5. 2017-05-29 20:55:09 +02:00
Jarl Gullberg 8514b5c78e
Added static modifier to methods which could have it. 2017-05-29 20:19:17 +02:00
Jarl Gullberg 57de60ba96
Tightened variable identifier picking even more. 2017-05-29 20:16:43 +02:00
Jarl Gullberg dd0de0a75b
Added additional identifier constraints. 2017-05-29 19:47:00 +02:00
Jarl Gullberg 879da06b29
Added additional identifier constraints. 2017-05-29 19:45:38 +02:00
Jarl Gullberg 19995fdc2e
Removed unused using statement. 2017-05-29 19:00:12 +02:00
Jarl Gullberg 71c900630f
Added ordinal comparison to string index search. 2017-05-29 18:59:37 +02:00
Jarl Gullberg 760e68ed4e
Removed uses of out variables and introduced a generated variable identifier class. 2017-05-29 18:57:13 +02:00
Jarl Gullberg 092ffb480c
Added a class that can identify a generated variable. 2017-05-29 18:31:39 +02:00
Jarl Gullberg bc981ceccf
Better variable naming and line breaks. 2017-05-29 18:23:33 +02:00
Jarl Gullberg f3f90691e6
Changed manual stream closing to a using statement. 2017-05-29 18:15:49 +02:00
Jarl Gullberg 9f4eb8546e
Removed obsolete manual detection of debug symbol file. 2017-05-29 18:14:46 +02:00
Jarl Gullberg a29f72663c
Changed uses of IEnumerable to List in order to prevent multiple enumerations. 2017-05-29 18:12:43 +02:00
Jarl Gullberg da71abb963
Updated Generator.Rewrite to use the new Cecil API. Dirty fix. 2017-05-26 13:48:00 +02:00
Jarl Gullberg 5a5c85ab18
Changed Mac library from libgtk to libgdk - both work, but it's the same as the others. 2017-05-22 13:19:43 +02:00
Jarl Gullberg 7f04ea5134
Corrected indents. 2017-05-21 22:27:24 +02:00
Jarl Gullberg a501a83acf
Removed unused using statement. 2017-05-21 02:32:52 +02:00
Jarl Gullberg b95197e6ca
Tightened access restrictions to native functions. 2017-05-21 02:32:09 +02:00
Jarl Gullberg 66568d567e
Corrected style of this. qualifier. 2017-05-21 02:30:50 +02:00
Jarl Gullberg a85dd49178
Added preprocessor switching for Mac GTK3. 2017-05-21 01:48:00 +02:00
Jarl Gullberg 80f8cdc63f
Added preproccessor switching for Win32 GTK3. 2017-05-21 01:45:12 +02:00
Jarl Gullberg 55dfd7a3c9
Removed unneeded inheritance from IDisposable. 2017-05-21 01:36:51 +02:00
varon 9c2c0815d1 Merge pull request #521 from tzachshabtay/develop
IOS- added a method to resize the framebuffer on device rotation
2017-05-13 10:33:42 +02:00
varon de6a4a796f Merge branch 'develop' of github.com:opentk/opentk into develop 2017-05-08 22:50:38 +02:00
varon fffb05a917 Release 3.0.0-pre 2017-05-08 22:48:40 +02:00
Neico 974e02b03e fix AngleWindowInfo compile errors on mobile introduced by #458 2017-04-30 23:20:56 +02:00
Shard White 5fd4e9acd7 Fixed typos in documentation comments 2017-04-27 08:43:21 +01:00
UnknownShadow200 5eb75fefa7 Fix default input directories for Generator.Bind 2017-03-23 15:54:40 +11:00
Tzach Shabtay 269c336719 IOS- added a method to resize the buffer on device rotation
This allows to keep aspect ratio when rotating to landscape, see here:
http://stackoverflow.com/questions/20326947/opengl-what-need-to-reconfig
-when-rotate-screen, and also here:
https://gamedev.stackexchange.com/questions/75965/how-do-i-reconfigure-m
y-gles-frame-buffer-after-a-rotation
2017-03-22 23:30:48 -04:00
varon 4e2d1ae520 Merge pull request #458 from mzanin/angle-es3
Allow using OpenGL ES3 with Angle and extract a Direct3D shared handle
2017-03-21 12:46:11 +02:00
Manuel Zanin 70ac147b5c Addressed comments 2017-03-21 10:21:22 +01:00
varon f6af0d0f4a Merge pull request #487 from spellizzari/develop
XInputGetStateEx obtained through ordinal
2017-03-20 19:48:36 +02:00
Tzach Shabtay 2b15ae3700 IOS- fixed crash on first tick
FrameEventArgs throws an exception when setting the Time to a value <=
0. With that knowledge, both the Android and the IOS implementations
had a bug when setting the time.
On IOS, that bug would cause a crash on the first tick, as the first
tick would always set to 0.
On Android the bug was probably harmless but there was a redundant
check there (and also removed the unneeded allocation that was there on
every tick).
2017-03-19 23:49:09 -04:00
varon fe9e300e09 Merge pull request #506 from pragmatrix/angle
ANGLE: keep the backbuffer's size updated when the window resizes
2017-03-19 18:40:48 +02:00
Armin Sander 89e792ee47 be sure the current context is set before calling Egl.WaitClient() 2017-03-19 15:29:00 +01:00
varon 3e38074a9f Use longs to avoid two's complement failure in approxEqual 2017-03-19 15:56:16 +02:00
varon 38efb29af0 Addint based floating point approximate comparison 2017-03-19 15:34:30 +02:00
varon a21313b41b Merge pull request #485 from leezer3/develop
Fix: Joystick hats sticking in last position on Linux
2017-03-19 12:29:00 +02:00
Armin Sander 30752ed36d ANGLE: keep the backbuffer size updated when the window resizes 2017-03-18 14:25:34 +01:00
Christopher Lees 969429d54c FIx: JoystickButton.cs not removed from Android / IOS projects 2017-03-16 22:18:14 +00:00
UnknownShadow200 9401b4dd84 Fix pointless warning when compiling Box2.cs
Showed warning "Missing XML comment for publicly visible type or member 'OpenTK.Box2.GetHashCode()' (CS1591) ", because there were five / instead of three / to indicate an XML comment.
2017-03-15 23:25:44 +11:00
varon 99b9bf65f2 Merge pull request #495 from tzachshabtay/develop
Fix broken IOS bindings
2017-03-13 09:45:37 +02:00
Tzach Shabtay e8aa0882c9 Fix broken iOS bindings 2017-03-03 22:29:47 -05:00
Andrius Bentkus 200915a46c Grammar fix. 2017-02-28 16:26:22 +02:00
Sebastien Pellizzari 69bd4420cb XInputGetStateEx obtained through ordinal 2017-02-14 09:17:41 +01:00
Christopher Lees 87f50e17bb Fix: Joystick hats sticking in last position on Linux 2017-02-11 18:49:29 +00:00
varon ae9c076748 Merge pull request #484 from leezer3/develop
Fix: Xbox controller D-Pad not working under Windows
2017-02-10 17:35:25 +02:00
varon af68ee752a Merge pull request #453 from leezer3/Joystick2
Improve Joystick Buttons
2017-02-10 17:34:44 +02:00
Christopher Lees 5890656953 Fix: Xbox controller D-Pad not working under Windows 2017-02-10 14:24:58 +00:00
varon 519d13ccde Merge pull request #481 from leezer3/NegativeAxis
Fix: Joysticks with an axis range below zero were inverted
2017-02-09 11:31:11 +02:00
Christopher Lees bf7e3ffb1e Fix: Joysticks with an axis range below zero were inverted 2017-02-05 21:36:45 +00:00
Christopher Lees 02e1891098 Fix: Incorrect documentation for MathHelper.NextPowerOfTwo
Fix: Typo in readme
2017-01-31 14:19:39 +00:00
varon 0abd2cc361 Merge pull request #476 from leezer3/develop
Fix: Some joysticks return an invalid HID page of 1
2017-01-30 22:34:22 +02:00
varon bd04c31369 Merge pull request #462 from tzachshabtay/Mobile_DebugPrintouts
Removed the stubs for System.Diagnostics.Debug from Android & IOS
2017-01-29 16:42:48 +02:00
Christopher Lees 114f02ff49 Fix: Some joysticks return an invalid HID page of 1 2017-01-27 15:50:46 +00:00
varon 12b0603dea Merge pull request #463 from tzachshabtay/RemoveRedundantPrintout
Removed redundant printout for "OnMouseMove called without moving the mouse"
2016-12-12 09:25:40 +02:00
Tzach Shabtay 51e2b3915c Removed redundant printout for "OnMouseMove called without moving the mouse"
This fixes #416.
The problem with this printout (as explained in the issue) is that on
Windows (at least for specific devices/OS) GetMouseMovePointsEx can
return duplicate points, so it’s either adding a check in the Windows
layer or remove the printout. Adding a check in the Windows layer looks
redundant though, as this is already checked in NativeWindowBase, so
removing the printout looks preferable.
2016-12-11 18:11:56 -05:00
Tzach Shabtay b06169b457 Removed the stubs for System.Diagnostics.Debug from Android & IOS
This looks like it was once a Xamarin limitation, but it’s not anymore.
Note: tested this on Android, but not on IOS (tested compilation on IOS
only).
Fixes #447
2016-12-11 18:03:29 -05:00
Tzach Shabtay 0e20faf896 Android- fix a crash when the game view is closed before it started running
When the game view is closed, if it hasn’t started running yet the
stopwatch would still be null- added a null check.
2016-12-11 17:50:38 -05:00
Tzach Shabtay 57ceff19b9 Android- Fix crash when querying for surface when window info was not created yet
HasSurface is called by ReadyToRender property to query if the surface
was created, but it’s possible that the window info was not created
yet, added a missing null check.
2016-12-11 17:47:26 -05:00
Manuel Zanin 8ffe3bc504 Moved AngleWindowInfo and EglAnglePlatformFactory under src 2016-11-29 11:34:16 +01:00
Jonas Boesch fc33246600 Use existing ANGLE definitions 2016-11-29 11:32:23 +01:00
Jonas Boesch 84a210bda5 Bugfix: Creating a second GraphicsContext forced context sharing.
This fix will keep existing behavior (forced sharing) in the default case, but adds a new constructor that allows explicitly specifying the shared context. A user can now explicitly specify null for the shared context to get a new non-shared context.
2016-11-28 12:21:18 +01:00
Jonas Boesch 9d29c8c19b Added AngleWindowInfo and AnglePlatformFactory
Both WindowInfo and PlatformFactory wrap the actual platform-specific WindowInfo and PlatformFactory.

For offscreen rendering, AngleWindowInfo can be used with a DummyWindowInfo.

The API to add additional surfaces was added to IAngleWindowInfo, since all those calls need the Display parameter that is only available on EglWindowInfo (which is not exposed to users).
2016-11-28 12:21:18 +01:00
Jonas Boesch df66598182 Added Angle-related enums and definitions
+ GraphicsContextFlags now has Angle and Offscreen flags.
+ Egl now has PLATFORM_ANGLE related const ints.
+ Added eglGetPlatformDisplayEXT p/invoke definition
+ Added eglQuerySurfacePointerANGLE p/invoke definition
+ EglWindowInfo.CreatePbufferSurface was commented out. Enabled and fixed it.
+ GraphicsContextFlags.Offscreen will make the context create a PbufferSurface instead of a WindowSurface in EglContext
+ SurfaceType enum to select surface type for SelectGraphicsMode
2016-11-28 12:20:59 +01:00
Jonas Boesch 7b795a02e1 Bugfix: Non-null shared contexts for Egl threw Exception
The shared context parameter can be either the EglContext directly, or
the facade, and we cast to see what it is.
2016-11-28 12:12:10 +01:00
Christopher Lees 7ef7c12c2b Joystick Buttons:
* Remove JoystickButton enum (Use zero-based int as button index instead)
* Change to using a long to store button states
* Max buttons now 64 (Unable to go further without using an array)
2016-11-27 19:23:44 +00:00