platform/core/csapi/opentk.git
6 years agoFix to able to recover from GraphicsModeException in the override OnH… (#658) v3.0.0
iRon [Mon, 8 Jan 2018 21:31:45 +0000 (22:31 +0100)]
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

6 years agoMerge pull request #715 from Nihlus/improve-gitignore
Fraser Waters [Sun, 7 Jan 2018 10:32:23 +0000 (10:32 +0000)]
Merge pull request #715 from Nihlus/improve-gitignore

Improve .gitignore

6 years agoMerge pull request #711 from copygirl/patch-1
Jarl Gullberg [Sat, 6 Jan 2018 20:24:16 +0000 (21:24 +0100)]
Merge pull request #711 from copygirl/patch-1

Replace NativeWindow cursor_visible field with implementation's CursorVisible

6 years agoFix brace formatting in NativeWindow.CursorVisible
copygirl [Sat, 6 Jan 2018 20:18:48 +0000 (21:18 +0100)]
Fix brace formatting in NativeWindow.CursorVisible

6 years agoMerge pull request #714 from ThomasD13/quaternion
Jarl Gullberg [Sat, 6 Jan 2018 19:52:35 +0000 (20:52 +0100)]
Merge pull request #714 from ThomasD13/quaternion

Quaternion

6 years agoRemoved empty lines
Unknown [Sat, 6 Jan 2018 19:16:36 +0000 (20:16 +0100)]
Removed empty lines

6 years agoFixed params and names
Unknown [Sat, 6 Jan 2018 18:50:03 +0000 (19:50 +0100)]
Fixed params and names

6 years agoMerge pull request #705 from Nihlus/add-contributing-guidelines
Jarl Gullberg [Sat, 6 Jan 2018 10:20:24 +0000 (11:20 +0100)]
Merge pull request #705 from Nihlus/add-contributing-guidelines

Add contribution guidelines

6 years agoUpdate conditionals and formatting
copygirl [Fri, 5 Jan 2018 17:43:03 +0000 (18:43 +0100)]
Update conditionals and formatting

6 years agoRemove an unneeded check and comment
copygirl [Fri, 5 Jan 2018 14:30:02 +0000 (15:30 +0100)]
Remove an unneeded check and comment

6 years agoMove cursor visible check into implementations
copygirl [Tue, 2 Jan 2018 00:30:35 +0000 (01:30 +0100)]
Move cursor visible check into implementations

6 years agoReplace cursor_visible with implementation
copygirl [Mon, 1 Jan 2018 20:20:17 +0000 (21:20 +0100)]
Replace cursor_visible with implementation

INativeWindow implementations already have their own private fields storing cursor visibility

6 years agoMerge pull request #707 from Frassle/paket
Jarl Gullberg [Fri, 5 Jan 2018 15:02:18 +0000 (16:02 +0100)]
Merge pull request #707 from Frassle/paket

Sync paket project and add CI support

6 years agoRun paket install
Fraser Waters [Fri, 5 Jan 2018 12:58:23 +0000 (12:58 +0000)]
Run paket install

6 years agoRemove conditional StyleCop support
Fraser Waters [Fri, 5 Jan 2018 12:55:22 +0000 (12:55 +0000)]
Remove conditional StyleCop support

6 years agoRestructured Quaternion tests
Unknown [Wed, 3 Jan 2018 19:36:29 +0000 (20:36 +0100)]
Restructured Quaternion tests

6 years agoRefactored helper unit test classes
Unknown [Wed, 3 Jan 2018 18:40:11 +0000 (19:40 +0100)]
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.

6 years agoUpdate .gitignore.
Jarl Gullberg [Wed, 3 Jan 2018 14:10:58 +0000 (15:10 +0100)]
Update .gitignore.

6 years agoReformat document to conform to typical column width.
Jarl Gullberg [Wed, 3 Jan 2018 13:20:37 +0000 (14:20 +0100)]
Reformat document to conform to typical column width.

6 years agoRemove bad style guide link, replace with explanation.
Jarl Gullberg [Wed, 3 Jan 2018 13:08:58 +0000 (14:08 +0100)]
Remove bad style guide link, replace with explanation.

6 years agoCorrect typo.
Jarl Gullberg [Tue, 2 Jan 2018 20:08:51 +0000 (21:08 +0100)]
Correct typo.

6 years agoFixed typos
Unknown [Tue, 2 Jan 2018 19:24:15 +0000 (20:24 +0100)]
Fixed typos

6 years agoProvide fix for converting euler angles to quaternion
Unknown [Tue, 2 Jan 2018 16:53:04 +0000 (17:53 +0100)]
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.

6 years agoAdd unit tests which reveal converting problems with euler angles
Unknown [Tue, 2 Jan 2018 16:47:33 +0000 (17:47 +0100)]
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)

6 years agoMerge pull request #712 from VPeruS/patch-2
Fraser Waters [Tue, 2 Jan 2018 13:51:25 +0000 (13:51 +0000)]
Merge pull request #712 from VPeruS/patch-2

Fix formating in MathHelper.cs

6 years agoFix formating in MathHelper.cs
VperuS [Tue, 2 Jan 2018 13:06:09 +0000 (15:06 +0200)]
Fix formating in MathHelper.cs

6 years agoAdd paket checks to CI
Fraser Waters [Sat, 30 Dec 2017 17:29:41 +0000 (17:29 +0000)]
Add paket checks to CI

6 years agoMerge pull request #708 from Frassle/xunitmath
Jarl Gullberg [Mon, 1 Jan 2018 21:25:34 +0000 (22:25 +0100)]
Merge pull request #708 from Frassle/xunitmath

xUnit math tests

6 years agoxUnit math tests
Fraser Waters [Wed, 27 Dec 2017 16:05:13 +0000 (16:05 +0000)]
xUnit math tests

6 years agoMerge pull request #709 from Frassle/buildfixes
Fraser Waters [Mon, 1 Jan 2018 19:51:22 +0000 (19:51 +0000)]
Merge pull request #709 from Frassle/buildfixes

Couple of build system fixes

6 years agoFix issues with GenerateBindings target
Fraser Waters [Sat, 30 Dec 2017 18:43:26 +0000 (18:43 +0000)]
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.

6 years agoRemove and ignore AsssemblyInfo files (built by FAKE)
Fraser Waters [Sat, 30 Dec 2017 18:16:10 +0000 (18:16 +0000)]
Remove and ignore AsssemblyInfo files (built by FAKE)

6 years agoUpdate based on feedback.
Jarl Gullberg [Sun, 31 Dec 2017 19:12:47 +0000 (20:12 +0100)]
Update based on feedback.

6 years agoMerge pull request #706 from Nihlus/discord-in-readme
Fraser Waters [Sat, 30 Dec 2017 16:42:53 +0000 (16:42 +0000)]
Merge pull request #706 from Nihlus/discord-in-readme

Add Discord chat link to the README

6 years agoMerge pull request #697 from Frassle/cecil
Jarl Gullberg [Sat, 30 Dec 2017 14:04:08 +0000 (15:04 +0100)]
Merge pull request #697 from Frassle/cecil

Use custom cecil assembly resolver

6 years agoAdd Discord chat link to the README.
Jarl Gullberg [Thu, 17 Aug 2017 10:27:14 +0000 (12:27 +0200)]
Add Discord chat link to the README.

6 years agoAdded contribution guidelines.
Jarl Gullberg [Sun, 25 Jun 2017 17:24:37 +0000 (19:24 +0200)]
Added contribution guidelines.

6 years agoMerge pull request #700 from Frassle/stylecop
Jarl Gullberg [Sat, 30 Dec 2017 13:40:20 +0000 (14:40 +0100)]
Merge pull request #700 from Frassle/stylecop

Conditional stylecop activation

6 years agoMerge pull request #704 from Frassle/paket
Jarl Gullberg [Sat, 30 Dec 2017 13:40:05 +0000 (14:40 +0100)]
Merge pull request #704 from Frassle/paket

Update paket conditions and references

6 years agoRun paket install
Fraser Waters [Wed, 27 Dec 2017 22:25:07 +0000 (22:25 +0000)]
Run paket install

6 years agoAdd .paket/Paket.Restore.targets to .gitignore
Fraser Waters [Wed, 27 Dec 2017 21:28:34 +0000 (21:28 +0000)]
Add .paket/Paket.Restore.targets to .gitignore

6 years agoAdd ability to disable/enable stylecop rules
Fraser Waters [Wed, 27 Dec 2017 08:03:29 +0000 (08:03 +0000)]
Add ability to disable/enable stylecop rules

6 years agoFix StyleCop issues in GLControl
Fraser Waters [Wed, 27 Dec 2017 08:30:36 +0000 (08:30 +0000)]
Fix StyleCop issues in GLControl

6 years agoMerge pull request #703 from Nihlus/remove-bindings-from.git
Jarl Gullberg [Wed, 27 Dec 2017 20:52:42 +0000 (21:52 +0100)]
Merge pull request #703 from Nihlus/remove-bindings-from.git

Remove bindings from Git

6 years agoUse Path.Combine instead of absolute path.
Jarl Gullberg [Wed, 27 Dec 2017 20:22:37 +0000 (21:22 +0100)]
Use Path.Combine instead of absolute path.

6 years agoUpdate README.md
Jarl Gullberg [Wed, 27 Dec 2017 19:46:39 +0000 (20:46 +0100)]
Update README.md

6 years agoAdd binding generation as an additional onetime build step.
Jarl Gullberg [Wed, 27 Dec 2017 19:04:37 +0000 (20:04 +0100)]
Add binding generation as an additional onetime build step.

6 years agoRemove bindings from source control.
Jarl Gullberg [Wed, 27 Dec 2017 19:04:04 +0000 (20:04 +0100)]
Remove bindings from source control.

6 years agoMerge branch 'develop' of github.com:opentk/opentk into remove-bindings-from.git
Jarl Gullberg [Wed, 27 Dec 2017 18:48:33 +0000 (19:48 +0100)]
Merge branch 'develop' of github.com:opentk/opentk into remove-bindings-from.git

6 years agoAdd binding generation step to build script.
Jarl Gullberg [Wed, 27 Dec 2017 18:48:27 +0000 (19:48 +0100)]
Add binding generation step to build script.

6 years agoMerge pull request #698 from Frassle/specupdate
Jarl Gullberg [Wed, 27 Dec 2017 17:57:12 +0000 (18:57 +0100)]
Merge pull request #698 from Frassle/specupdate

Update bindings from OpenGL-Registry

6 years agoMerge pull request #663 from Frassle/issue656
Fraser Waters [Tue, 26 Dec 2017 21:24:03 +0000 (21:24 +0000)]
Merge pull request #663 from Frassle/issue656

Skip null entries when enumerating DeviceCollection

6 years agoAdd DebugProc to ES11
Fraser Waters [Tue, 26 Dec 2017 21:19:36 +0000 (21:19 +0000)]
Add DebugProc to ES11

6 years agoMerge pull request #699 from Frassle/testrm
Fraser Waters [Tue, 26 Dec 2017 19:50:09 +0000 (19:50 +0000)]
Merge pull request #699 from Frassle/testrm

Remove Test.API.Desktop

6 years agoRemove Test.API.Desktop
Fraser Waters [Tue, 26 Dec 2017 18:42:20 +0000 (18:42 +0000)]
Remove Test.API.Desktop

6 years agoRerun Generator.Bind
Fraser Waters [Tue, 26 Dec 2017 18:38:18 +0000 (18:38 +0000)]
Rerun Generator.Bind

6 years agoRegenerate signatures.xml from OpenGL-Registry
Fraser Waters [Tue, 26 Dec 2017 18:37:26 +0000 (18:37 +0000)]
Regenerate signatures.xml from OpenGL-Registry

Generated from commit 681c365c012ac9d3bcadd67de10af4730eb460e0

https://raw.githubusercontent.com/KhronosGroup/OpenGL-Registry/681c365c012ac9d3bcadd67de10af4730eb460e0/xml/gl.xml

6 years agoUpdate Converter README to refer to new github xml specs
Fraser Waters [Tue, 26 Dec 2017 18:33:30 +0000 (18:33 +0000)]
Update Converter README to refer to new github xml specs

6 years agoUse custom cecil assembly resolver
Fraser Waters [Thu, 7 Sep 2017 16:10:39 +0000 (17:10 +0100)]
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.

6 years agoMerge pull request #695 from tzachshabtay/develop
Jarl Gullberg [Mon, 25 Dec 2017 23:15:24 +0000 (00:15 +0100)]
Merge pull request #695 from tzachshabtay/develop

 Game Window- allow configuring separate update thread

6 years agoGame Window- allow configuring separate update thread
Tzach Shabtay [Sat, 23 Dec 2017 06:58:07 +0000 (01:58 -0500)]
Game Window- allow configuring separate update thread

6 years agoMerge remote-tracking branch 'opentk/develop' into develop
Tzach Shabtay [Wed, 20 Dec 2017 03:35:10 +0000 (22:35 -0500)]
Merge remote-tracking branch 'opentk/develop' into develop

6 years agoMerge pull request #691 from SparkusK/develop
varon [Mon, 11 Dec 2017 09:40:16 +0000 (11:40 +0200)]
Merge pull request #691 from SparkusK/develop

Stop taking X locks on display when attempting MakeCurrent() calls.

6 years agoRemove a lock on a read-only operation, in IsCurrent()
Shane Kelly [Sat, 9 Dec 2017 10:19:41 +0000 (12:19 +0200)]
Remove a lock on a read-only operation, in IsCurrent()

6 years agoMerge branch 'develop' of https://github.com/opentk/opentk into develop
Shane Kelly [Sat, 9 Dec 2017 07:49:12 +0000 (09:49 +0200)]
Merge branch 'develop' of https://github.com/opentk/opentk into develop

6 years agoStop using DisplayLocks for every MakeCurrent context call.
Shane Kelly [Sat, 9 Dec 2017 07:39:44 +0000 (09:39 +0200)]
Stop using DisplayLocks for every MakeCurrent context call.

6 years agoMerge pull request #681 from VPeruS/missing-xml
varon [Wed, 6 Dec 2017 14:51:48 +0000 (16:51 +0200)]
Merge pull request #681 from VPeruS/missing-xml

Add xml docs based on HelpText

6 years agoEnglish grammar in comments
VperuS [Mon, 20 Nov 2017 23:40:51 +0000 (01:40 +0200)]
English grammar in comments

6 years agoApply required changes
VperuS [Mon, 20 Nov 2017 04:14:44 +0000 (06:14 +0200)]
Apply required changes

6 years agoAdd xml docs based on HelpText
VperuS [Sat, 18 Nov 2017 16:24:46 +0000 (18:24 +0200)]
Add xml docs based on HelpText

7 years agoMerge pull request #662 from Frassle/outstr
Jarl Gullberg [Thu, 2 Nov 2017 10:29:43 +0000 (11:29 +0100)]
Merge pull request #662 from Frassle/outstr

Add required count attribute overrides

7 years agoAdd missing count attribute to ExtGetProgramBinarySourceQCOM
Fraser Waters [Thu, 5 Oct 2017 17:28:36 +0000 (18:28 +0100)]
Add missing count attribute to ExtGetProgramBinarySourceQCOM

Also extends Rewrite to understand the new syntax of "*name".

7 years agoAdd count attribute to GetTranslatedShaderSource out string parameter
Fraser Waters [Thu, 5 Oct 2017 15:26:22 +0000 (16:26 +0100)]
Add count attribute to GetTranslatedShaderSource out string parameter

7 years agoAdd count attribute to GetPerfQueryInfoINTEL out string parameter
Fraser Waters [Thu, 5 Oct 2017 15:07:04 +0000 (16:07 +0100)]
Add count attribute to GetPerfQueryInfoINTEL out string parameter

7 years agoAdd count attributes to GetPerfCounterInfoINTEL out string/array parameters
Fraser Waters [Thu, 5 Oct 2017 14:46:15 +0000 (15:46 +0100)]
Add count attributes to GetPerfCounterInfoINTEL out string/array parameters

7 years agoOverride flow direction for glGetPerfQueryIdByNameINTEL
Fraser Waters [Wed, 4 Oct 2017 12:49:33 +0000 (13:49 +0100)]
Override flow direction for glGetPerfQueryIdByNameINTEL

The function in the OpenGL specification is not const correct.

7 years agoFix bug in Rewrite that didn't detect missing CountAttributes
Fraser Waters [Wed, 4 Oct 2017 10:35:26 +0000 (11:35 +0100)]
Fix bug in Rewrite that didn't detect missing CountAttributes

7 years agoMerge pull request #661 from Frassle/bindfix
Jarl Gullberg [Thu, 19 Oct 2017 19:06:19 +0000 (21:06 +0200)]
Merge pull request #661 from Frassle/bindfix

Binding Generator fixes related to legacy array overloads

7 years agoMerge pull request #652 from Nihlus/glwidget-glarea
Jarl Gullberg [Thu, 19 Oct 2017 19:03:11 +0000 (21:03 +0200)]
Merge pull request #652 from Nihlus/glwidget-glarea

Base GLWidget on GLArea instead of DrawingArea

7 years agoMerge pull request #667 from anegostudios/doctyron
Jarl Gullberg [Thu, 19 Oct 2017 18:59:55 +0000 (20:59 +0200)]
Merge pull request #667 from anegostudios/doctyron

Fix broken manual link in README.md using archive.org

7 years agoUse older version where more links work
Tyron Madlener [Thu, 12 Oct 2017 09:58:56 +0000 (11:58 +0200)]
Use older version where more links work

7 years agoFix dead manual link using archive.org
Tyron Madlener [Thu, 12 Oct 2017 09:55:41 +0000 (11:55 +0200)]
Fix dead manual link using archive.org

7 years agoSkip null entries when enumerating DeviceCollection
Fraser Waters [Thu, 5 Oct 2017 21:47:08 +0000 (22:47 +0100)]
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.

7 years agoFix bug where count overrides didn't effect ComputeSize
Fraser Waters [Thu, 5 Oct 2017 14:32:39 +0000 (15:32 +0100)]
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.

7 years agoGenerate legacy overloads for GetProgramResourceiv
Fraser Waters [Thu, 5 Oct 2017 14:29:56 +0000 (15:29 +0100)]
Generate legacy overloads for GetProgramResourceiv

7 years agoGenerate legacy overloads for GetProgramResourceName
Fraser Waters [Thu, 5 Oct 2017 14:27:42 +0000 (15:27 +0100)]
Generate legacy overloads for GetProgramResourceName

7 years agoGenerate legacy overloads for GetProgramBinary
Fraser Waters [Thu, 5 Oct 2017 14:20:24 +0000 (15:20 +0100)]
Generate legacy overloads for GetProgramBinary

7 years agoGenerate legacy overloads for GetTranslatedShaderSource
Fraser Waters [Thu, 5 Oct 2017 14:17:59 +0000 (15:17 +0100)]
Generate legacy overloads for GetTranslatedShaderSource

7 years agoGenerate legacy overloads for QCOM_extended_get
Fraser Waters [Thu, 5 Oct 2017 14:06:10 +0000 (15:06 +0100)]
Generate legacy overloads for QCOM_extended_get

7 years agoGenerate legacy overloads for GetProgramPipelineInfoLog
Fraser Waters [Thu, 5 Oct 2017 13:58:19 +0000 (14:58 +0100)]
Generate legacy overloads for GetProgramPipelineInfoLog

7 years agoRemove unused GetPointerv overloads
Fraser Waters [Thu, 5 Oct 2017 13:51:48 +0000 (14:51 +0100)]
Remove unused GetPointerv overloads

7 years agoGenerate legacy overloads for VertexAttrib1fv
Fraser Waters [Thu, 5 Oct 2017 12:41:25 +0000 (13:41 +0100)]
Generate legacy overloads for VertexAttrib1fv

7 years agoGenerate legacy overloads for GetObjectPtrLabel
Fraser Waters [Thu, 5 Oct 2017 12:31:04 +0000 (13:31 +0100)]
Generate legacy overloads for GetObjectPtrLabel

7 years agoGenerate legacy overloads for GetObjectLabel
Fraser Waters [Thu, 5 Oct 2017 11:33:07 +0000 (12:33 +0100)]
Generate legacy overloads for GetObjectLabel

7 years agoGenerate legacy overloads for EdgeFlagv
Fraser Waters [Thu, 5 Oct 2017 11:37:02 +0000 (12:37 +0100)]
Generate legacy overloads for EdgeFlagv

7 years agoAdd feature to Bind to generate legacy array overloads
Fraser Waters [Thu, 5 Oct 2017 11:33:19 +0000 (12:33 +0100)]
Add feature to Bind to generate legacy array overloads

7 years agoRemove ShaderSource override that had no effect
Fraser Waters [Wed, 4 Oct 2017 21:26:49 +0000 (22:26 +0100)]
Remove ShaderSource override that had no effect

7 years agoRemoving some dead code in Bind
Fraser Waters [Wed, 4 Oct 2017 19:00:53 +0000 (20:00 +0100)]
Removing some dead code in Bind

This change doesn't effect the output of Bind.

7 years agoRemove trailing whitespace from overrides.xml
Fraser Waters [Wed, 4 Oct 2017 13:32:19 +0000 (14:32 +0100)]
Remove trailing whitespace from overrides.xml

7 years agoMerge pull request #641 from Frassle/vector
Fraser Waters [Tue, 3 Oct 2017 11:16:59 +0000 (12:16 +0100)]
Merge pull request #641 from Frassle/vector

Add Distance[Squared] methods to Vector(2/3)[d]