Commit graph

7293 commits

Author SHA1 Message Date
UnknownShadow200 f17fa4bc2d Fix pressing alt + [numpad numbers] raising OnKeyPress with '?' 2018-01-22 11:21:10 +01:00
Fraser Waters f505808c8b Remove assembly version checks from resolver
Not sure how this version check slipped in. It's not present in upstream
cecil code or the disassembled code from our current copy of
mono.cecil.dll.

Fixes #710
2018-01-14 23:18:25 +01:00
VperuS 1e2af5e648 Exit rewrite process if passed not existed file 2018-01-14 18:26:11 +01:00
Jarl Gullberg 6ad8b92c84
Split FsCheck data generators into a helper library (#716)
* Move generators and assertions to helper library.

* Add example usage to bezier curve tests.

* Add FsCheck to OpenTK.Tests.Math via paket.

* Tweak fsharp msbuild settings for OpenTK.Tests.Generators.
2018-01-09 12:06:39 +01:00
iRon 0a5c346c52 Fix to able to recover from GraphicsModeException in the override OnH… (#658)
* Fix to able to recover from GraphicsModeException in the override OnHandleCreated.

* Changes according to comments:
- m_implementation and m_context is now always set. To DummyGLControl if CreateContext fails
- Changed FailedCreateContext -> HasValidContext
- Changed all if{} to short style with braces.
- Added null propagation when applicable
- Renamed member variables to have 'm_' infront.
- and more ...

* Changed 'm_' prefix into '_'
Added braces to be using Allman Style

* Fixed:

  2) SA1003: GLControl.cs(226,47): Operator '(IGraphicsContextInternal)' must not be followed by whitespace.
  3) SA1003: GLControl.cs(412,49): Operator '(float)' must not be followed by whitespace.

* Removed Paket.Restore.targets from sourcecontrol
Added *.Restore.targets to .gitignore

* Fixed comments
Added *.DotSettings to .gitignore

* Removed *.DotSettings from GitIgnore
Moved *.Restore.targets to Paket section
2018-01-08 22:31:45 +01:00
Fraser Waters 0b3f17507c
Merge pull request #715 from Nihlus/improve-gitignore
Improve .gitignore
2018-01-07 10:32:23 +00:00
Jarl Gullberg f11b6ce6ad
Merge pull request #711 from copygirl/patch-1
Replace NativeWindow cursor_visible field with implementation's CursorVisible
2018-01-06 21:24:16 +01:00
copygirl aee67bf80a Fix brace formatting in NativeWindow.CursorVisible 2018-01-06 21:18:48 +01:00
Jarl Gullberg 2665f338dd
Merge pull request #714 from ThomasD13/quaternion
Quaternion
2018-01-06 20:52:35 +01:00
Unknown 113d380a2e Removed empty lines 2018-01-06 20:16:36 +01:00
Unknown c5d597c545 Fixed params and names 2018-01-06 19:50:03 +01:00
Jarl Gullberg cd49685c20
Merge pull request #705 from Nihlus/add-contributing-guidelines
Add contribution guidelines
2018-01-06 11:20:24 +01:00
copygirl 3d9d6d7ee3 Update conditionals and formatting 2018-01-05 18:43:19 +01:00
copygirl d86967eb7c Remove an unneeded check and comment 2018-01-05 18:43:19 +01:00
copygirl 673c922b72 Move cursor visible check into implementations 2018-01-05 18:43:19 +01:00
copygirl fe65c87d81 Replace cursor_visible with implementation
INativeWindow implementations already have their own private fields storing cursor visibility
2018-01-05 18:43:19 +01:00
Jarl Gullberg f28ea173dc
Merge pull request #707 from Frassle/paket
Sync paket project and add CI support
2018-01-05 16:02:18 +01:00
Fraser Waters 031320a15c Run paket install 2018-01-05 12:58:23 +00:00
Fraser Waters 77ec751dcc Remove conditional StyleCop support 2018-01-05 12:56:26 +00:00
Unknown a875bfe6b9 Restructured Quaternion tests 2018-01-03 20:36:29 +01:00
Unknown 5aed63e396 Refactored helper unit test classes
Extracted classes which provides data and verify test results into seperate files.

Replaced String with string and removed the System namespace.
2018-01-03 19:46:04 +01:00
Jarl Gullberg 81a4ed9aa6
Update .gitignore. 2018-01-03 15:31:36 +01:00
Jarl Gullberg 9529caab94
Reformat document to conform to typical column width. 2018-01-03 14:20:37 +01:00
Jarl Gullberg 4e31a412ae
Remove bad style guide link, replace with explanation. 2018-01-03 14:08:58 +01:00
Jarl Gullberg 9e6b27b643
Correct typo. 2018-01-02 21:08:51 +01:00
Unknown 079f5c5242 Fixed typos 2018-01-02 20:24:15 +01:00
Unknown fca36b19b0 Provide fix for converting euler angles to quaternion
Fixed API documentation and changed convertion from euler angles to quaterion:

Rotation will applied in following order: 1. xAxis, 2. yAxis, 3. zAxis.
Right hand rule is used here. Rotation is interpreted counter clock wise, in viewing direction of positive axis. Still need to double check that with unit tests.
2018-01-02 17:53:04 +01:00
Unknown f0e5754abc Add unit tests which reveal converting problems with euler angles
Partly covered methods which converts between euler angles and quaternions.

Whats still missing here is applied rotation axis and rotation orientation (counter clockwise + right hand rule)
2018-01-02 17:47:33 +01:00
Fraser Waters c40030df68
Merge pull request #712 from VPeruS/patch-2
Fix formating in MathHelper.cs
2018-01-02 13:51:25 +00:00
VperuS f22a18587c
Fix formating in MathHelper.cs 2018-01-02 15:06:09 +02:00
Fraser Waters bc4cce964d Add paket checks to CI 2018-01-01 21:35:02 +00:00
Jarl Gullberg 6b4077fbc6
Merge pull request #708 from Frassle/xunitmath
xUnit math tests
2018-01-01 22:25:34 +01:00
Fraser Waters f7a30e2c50 xUnit math tests 2018-01-01 19:51:48 +00:00
Fraser Waters 5d9a08801b
Merge pull request #709 from Frassle/buildfixes
Couple of build system fixes
2018-01-01 19:51:22 +00:00
Fraser Waters 0aa963c84e Fix issues with GenerateBindings target
generateBindings was let bound as a value and thus ran at startup before
any other target. Changed so all the code for generating the bindings is
in the target and the target is added a build dependency.
2018-01-01 19:33:25 +00:00
Fraser Waters 9610f20258 Remove and ignore AsssemblyInfo files (built by FAKE) 2018-01-01 19:33:25 +00:00
Jarl Gullberg f5446819cd
Update based on feedback. 2017-12-31 20:12:47 +01:00
Fraser Waters 73a3a1bb5a
Merge pull request #706 from Nihlus/discord-in-readme
Add Discord chat link to the README
2017-12-30 16:42:53 +00:00
Jarl Gullberg 4fefbf3e4e
Merge pull request #697 from Frassle/cecil
Use custom cecil assembly resolver
2017-12-30 15:04:08 +01:00
Jarl Gullberg 2df4a0b749
Add Discord chat link to the README. 2017-12-30 14:48:15 +01:00
Jarl Gullberg 8991be20bd
Added contribution guidelines. 2017-12-30 14:45:43 +01:00
Jarl Gullberg 21bd3e2cff
Merge pull request #700 from Frassle/stylecop
Conditional stylecop activation
2017-12-30 14:40:20 +01:00
Jarl Gullberg 175798409d
Merge pull request #704 from Frassle/paket
Update paket conditions and references
2017-12-30 14:40:05 +01:00
Fraser Waters cf33b96686 Run paket install 2017-12-27 22:53:52 +00:00
Fraser Waters 43c8e1827c Add .paket/Paket.Restore.targets to .gitignore 2017-12-27 22:53:52 +00:00
Fraser Waters 3971e8af78 Add ability to disable/enable stylecop rules 2017-12-27 21:03:55 +00:00
Fraser Waters 531167454c Fix StyleCop issues in GLControl 2017-12-27 21:00:49 +00:00
Jarl Gullberg 3f1f427c94
Merge pull request #703 from Nihlus/remove-bindings-from.git
Remove bindings from Git
2017-12-27 21:52:42 +01:00
Jarl Gullberg 01485af880
Use Path.Combine instead of absolute path. 2017-12-27 21:22:37 +01:00
Jarl Gullberg ed63f5cfe7
Update README.md 2017-12-27 20:46:39 +01:00