Commit graph

517 commits

Author SHA1 Message Date
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
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
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 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
VperuS f22a18587c
Fix formating in MathHelper.cs 2018-01-02 15:06:09 +02:00
Fraser Waters 9610f20258 Remove and ignore AsssemblyInfo files (built by FAKE) 2018-01-01 19:33:25 +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 21bd3e2cff
Merge pull request #700 from Frassle/stylecop
Conditional stylecop activation
2017-12-30 14:40:20 +01:00
Fraser Waters cf33b96686 Run paket install 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 7fd3d75f6c
Remove bindings from source control. 2017-12-27 20:04:04 +01:00
Jarl Gullberg 991e36ca4f
Merge pull request #698 from Frassle/specupdate
Update bindings from OpenGL-Registry
2017-12-27 18:57:12 +01:00
Fraser Waters 9a40e81e73
Merge pull request #663 from Frassle/issue656
Skip null entries when enumerating DeviceCollection
2017-12-26 21:24:03 +00:00
Fraser Waters 0fc7f6d4aa Add DebugProc to ES11 2017-12-26 21:19:36 +00:00
Fraser Waters cea60cf034 Rerun Generator.Bind 2017-12-26 18:38:18 +00:00
Fraser Waters e5db83e3e5 Regenerate signatures.xml from OpenGL-Registry
Generated from commit 681c365c012ac9d3bcadd67de10af4730eb460e0

https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/681c365c012ac9d3bcadd67de10af4730eb460e0/xml/gl.xml
2017-12-26 18:37:26 +00:00
Fraser Waters 0ab78f73a4 Update Converter README to refer to new github xml specs 2017-12-26 18:33:30 +00:00
Fraser Waters 084dcbf062 Use custom cecil assembly resolver
Fixes #642, until https://github.com/jbevain/cecil/pull/477 is merged
and released and we can update our Mono.Cecil dependency to that
version.

This custom resolver takes into account Mono reference assemblies for
mscorlib. This ensures we don't add spurious references to mscorlib
4.0.
2017-12-26 18:12:30 +00:00
Tzach Shabtay 0f9552e39a Game Window- allow configuring separate update thread 2017-12-23 01:58:07 -05:00
Shane Kelly e335698c07 Remove a lock on a read-only operation, in IsCurrent() 2017-12-09 12:19:41 +02:00
Shane Kelly 0c1082892d Merge branch 'develop' of https://github.com/opentk/opentk into develop 2017-12-09 09:49:12 +02:00
Shane Kelly 67563520ff Stop using DisplayLocks for every MakeCurrent context call. 2017-12-09 09:39:44 +02:00
varon 81268371c4
Merge pull request #681 from VPeruS/missing-xml
Add xml docs based on HelpText
2017-12-06 16:51:48 +02:00
VperuS ce86006c8e
English grammar in comments 2017-11-21 01:40:51 +02:00
VperuS 24b0930381
Apply required changes 2017-11-20 06:14:44 +02:00
VperuS 376f3edfd7 Add xml docs based on HelpText 2017-11-18 18:45:42 +02:00
Fraser Waters ea09f56740 Add missing count attribute to ExtGetProgramBinarySourceQCOM
Also extends Rewrite to understand the new syntax of "*name".
2017-11-02 09:28:36 +00:00
Fraser Waters e55d7017e0 Add count attribute to GetTranslatedShaderSource out string parameter 2017-11-02 09:28:36 +00:00
Fraser Waters 0ff0fbf1f7 Add count attribute to GetPerfQueryInfoINTEL out string parameter 2017-11-02 09:28:36 +00:00
Fraser Waters 602045f085 Add count attributes to GetPerfCounterInfoINTEL out string/array parameters 2017-11-02 09:28:35 +00:00
Fraser Waters 62d1072f71 Override flow direction for glGetPerfQueryIdByNameINTEL
The function in the OpenGL specification is not const correct.
2017-11-02 09:28:34 +00:00
Fraser Waters 4cdaea4747 Fix bug in Rewrite that didn't detect missing CountAttributes 2017-11-02 09:28:34 +00:00
Jarl Gullberg 781cdd5a3b Merge pull request #661 from Frassle/bindfix
Binding Generator fixes related to legacy array overloads
2017-10-19 21:06:19 +02:00
Jarl Gullberg 870f1abf8e Merge pull request #652 from Nihlus/glwidget-glarea
Base GLWidget on GLArea instead of DrawingArea
2017-10-19 21:03:11 +02:00
Fraser Waters 8efe765529 Skip null entries when enumerating DeviceCollection
Fixes #656.

DeviceCollection used the underlying List<T>'s enumerator. But we replace
entries in the list with nulls to save memory movement. This commit adds a
custom enumerator that skips nulls in the list.
2017-10-05 23:00:57 +01:00
Fraser Waters 386d4e6a19 Fix bug where count overrides didn't effect ComputeSize
ComputeSize and ElementCount should match each other (and they do when
read direct from XML spec files). However when using the override file to
change count only ElementCount was effected. This is now fixed so that
ComputeSize is set and also so that ElementCount gets reset to 0 if the
count value isn't an integer.
2017-10-05 15:32:40 +01:00
Fraser Waters 8ed1e20a7a Generate legacy overloads for GetProgramResourceiv 2017-10-05 15:29:56 +01:00
Fraser Waters bf6d047b0c Generate legacy overloads for GetProgramResourceName 2017-10-05 15:27:42 +01:00
Fraser Waters 368c984288 Generate legacy overloads for GetProgramBinary 2017-10-05 15:20:24 +01:00
Fraser Waters c2bd45f676 Generate legacy overloads for GetTranslatedShaderSource 2017-10-05 15:17:59 +01:00