platform/core/csapi/opentk.git
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

6 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

6 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

6 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

6 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

6 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

6 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.

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

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

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

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

6 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

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

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

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

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

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

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

6 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

6 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

6 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.

6 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

6 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]

6 years agoRename GraphicsContextFlags to ContextFlags and remove the setter.
Jarl Gullberg [Sun, 1 Oct 2017 18:35:04 +0000 (20:35 +0200)]
Rename GraphicsContextFlags to ContextFlags and remove the setter.

6 years agoEnable error checking for debug contexts.
Jarl Gullberg [Sun, 1 Oct 2017 18:16:45 +0000 (20:16 +0200)]
Enable error checking for debug contexts.

6 years agoRemove obsolete and redundant double buffering assignment.
Jarl Gullberg [Sun, 1 Oct 2017 18:15:26 +0000 (20:15 +0200)]
Remove obsolete and redundant double buffering assignment.

6 years agoCorrect formatting.
Jarl Gullberg [Sun, 1 Oct 2017 18:14:53 +0000 (20:14 +0200)]
Correct formatting.

6 years agoCorrect field naming.
Jarl Gullberg [Sun, 1 Oct 2017 18:14:39 +0000 (20:14 +0200)]
Correct field naming.

6 years agoRemove GTK2 code.
Jarl Gullberg [Sun, 1 Oct 2017 18:14:15 +0000 (20:14 +0200)]
Remove GTK2 code.

GLArea is only properly supported for GTK >= 3.16.

6 years agoRevert addition of InternalsVisibleTo attribute for the OpenTK assembly.
Jarl Gullberg [Sun, 1 Oct 2017 18:13:00 +0000 (20:13 +0200)]
Revert addition of InternalsVisibleTo attribute for the OpenTK assembly.

6 years agoOverride context creation in GLArea.
Jarl Gullberg [Sun, 1 Oct 2017 18:11:58 +0000 (20:11 +0200)]
Override context creation in GLArea.

This allows forward compatible and debug contexts to be created, and
provides more descriptive exceptions in the case where the context
cannot be created with the requested settings.

6 years agoAdd builtin frame time measurement.
Jarl Gullberg [Sun, 1 Oct 2017 18:06:50 +0000 (20:06 +0200)]
Add builtin frame time measurement.

GLArea automatically synchronizes to GDK's refresh rate, which may lead
to incorrect frame time measurements if it's not correctly measured.

This property is guaranteed to always contain the actual live frame
delta of the previous frame in render functions.

6 years agoMerge pull request #653 from Nihlus/getaddress-wgl-fix
Jarl Gullberg [Sun, 24 Sep 2017 10:05:56 +0000 (12:05 +0200)]
Merge pull request #653 from Nihlus/getaddress-wgl-fix

Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities

6 years agoUse Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities.
Jarl Gullberg [Wed, 20 Sep 2017 14:52:45 +0000 (16:52 +0200)]
Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities.

6 years agoAdd Distance[Squared] methods to Vector3[d]
Fraser Waters [Sat, 26 Aug 2017 12:12:12 +0000 (13:12 +0100)]
Add Distance[Squared] methods to Vector3[d]

6 years agoAdd Distance[Squared] methods to Vector2[d]
Fraser Waters [Sat, 26 Aug 2017 11:58:22 +0000 (12:58 +0100)]
Add Distance[Squared] methods to Vector2[d]

6 years agoRemove erroneous comment slashes
Fraser Waters [Sat, 26 Aug 2017 12:09:38 +0000 (13:09 +0100)]
Remove erroneous comment slashes

6 years agoRemoved redundant WindowInfo initializer.
Jarl Gullberg [Sat, 16 Sep 2017 14:20:00 +0000 (16:20 +0200)]
Removed redundant WindowInfo initializer.

6 years agoBump AppVeyor image to 2017 to support C# 7.0 language features
Jarl Gullberg [Fri, 15 Sep 2017 16:33:31 +0000 (18:33 +0200)]
Bump AppVeyor image to 2017 to support C# 7.0 language features

6 years agoAdd InternalsVisibleTo override in build script.
Jarl Gullberg [Fri, 15 Sep 2017 16:14:32 +0000 (18:14 +0200)]
Add InternalsVisibleTo override in build script.

6 years agoBump language version to 7.0.
Jarl Gullberg [Fri, 15 Sep 2017 14:57:46 +0000 (16:57 +0200)]
Bump language version to 7.0.

6 years agoAdd explanatory comment.
Jarl Gullberg [Fri, 15 Sep 2017 10:57:28 +0000 (12:57 +0200)]
Add explanatory comment.

6 years agoRemove redundant MakeCurrent call.
Jarl Gullberg [Fri, 15 Sep 2017 10:44:47 +0000 (12:44 +0200)]
Remove redundant MakeCurrent call.

6 years agoUse GLArea MakeCurrent method in disposal as well.
Jarl Gullberg [Fri, 15 Sep 2017 10:42:57 +0000 (12:42 +0200)]
Use GLArea MakeCurrent method in disposal as well.

6 years agoUse GLArea MakeCurrent method.
Jarl Gullberg [Fri, 15 Sep 2017 10:42:28 +0000 (12:42 +0200)]
Use GLArea MakeCurrent method.

6 years agoRemove redundant SwapBuffers call, the base OnDrawn already does this.
Jarl Gullberg [Fri, 15 Sep 2017 10:41:36 +0000 (12:41 +0200)]
Remove redundant SwapBuffers call, the base OnDrawn already does this.

6 years agoRemove redundant MakeCurrent call, the base OnDrawn already does this.
Jarl Gullberg [Fri, 15 Sep 2017 10:41:23 +0000 (12:41 +0200)]
Remove redundant MakeCurrent call, the base OnDrawn already does this.

6 years agoRemove duplicate RenderFrame event (GLArea has one already).
Jarl Gullberg [Fri, 15 Sep 2017 10:40:21 +0000 (12:40 +0200)]
Remove duplicate RenderFrame event (GLArea has one already).

6 years agoRemove properties that are no longer relevant or used.
Jarl Gullberg [Fri, 15 Sep 2017 10:39:47 +0000 (12:39 +0200)]
Remove properties that are no longer relevant or used.

6 years agoRemove manual visual selection from the X11 initialization.
Jarl Gullberg [Fri, 15 Sep 2017 10:38:49 +0000 (12:38 +0200)]
Remove manual visual selection from the X11 initialization.

6 years agoAdd buffer flag selection.
Jarl Gullberg [Fri, 15 Sep 2017 10:37:28 +0000 (12:37 +0200)]
Add buffer flag selection.

6 years agoRemove GLVersion properties, and use the underlying GLArea implementation.
Jarl Gullberg [Fri, 15 Sep 2017 09:52:50 +0000 (11:52 +0200)]
Remove GLVersion properties, and use the underlying GLArea implementation.

6 years agoInitialize an OpenTK::GraphicsContext from the foreign GDK context.
Jarl Gullberg [Fri, 15 Sep 2017 09:51:11 +0000 (11:51 +0200)]
Initialize an OpenTK::GraphicsContext from the foreign GDK context.

6 years agoInherit from GLArea instead of DrawingArea.
Jarl Gullberg [Fri, 15 Sep 2017 09:21:22 +0000 (11:21 +0200)]
Inherit from GLArea instead of DrawingArea.

6 years agoAdd OpenTK.GLWidget as a friend assembly, allowing it to access internals.
Jarl Gullberg [Fri, 15 Sep 2017 09:21:10 +0000 (11:21 +0200)]
Add OpenTK.GLWidget as a friend assembly, allowing it to access internals.

6 years agoMerge pull request #650 from Frassle/half
varon [Wed, 13 Sep 2017 10:19:48 +0000 (12:19 +0200)]
Merge pull request #650 from Frassle/half

Add some tests for the Half type

6 years agoAdd some tests for the Half type
Fraser Waters [Sat, 9 Sep 2017 09:39:26 +0000 (10:39 +0100)]
Add some tests for the Half type

6 years agoMerge pull request #634 from Frassle/utf8
varon [Sun, 3 Sep 2017 09:29:55 +0000 (11:29 +0200)]
Merge pull request #634 from Frassle/utf8

Change BindingBase to use UTF8, not ASCII, strings

6 years agoMerge pull request #627 from Nihlus/rewrite-new-1-better-options
varon [Sun, 3 Sep 2017 09:28:09 +0000 (11:28 +0200)]
Merge pull request #627 from Nihlus/rewrite-new-1-better-options

Simplify option parsing for Generator.Rewrite

6 years agoMerge pull request #631 from Frassle/prtemplate
varon [Sat, 2 Sep 2017 23:20:38 +0000 (01:20 +0200)]
Merge pull request #631 from Frassle/prtemplate

Add a pull request template

6 years agoMerge pull request #645 from winterhell/develop
varon [Sat, 2 Sep 2017 23:19:27 +0000 (01:19 +0200)]
Merge pull request #645 from winterhell/develop

Prevent crash when XInput is not present

6 years agoMerge pull request #644 from Frassle/rewriteexception
varon [Sat, 2 Sep 2017 08:18:26 +0000 (10:18 +0200)]
Merge pull request #644 from Frassle/rewriteexception

Add BindingsNotRewrittenException

6 years agoUpdate XInputJoystick.cs
Rosen Iliev [Thu, 31 Aug 2017 07:47:56 +0000 (10:47 +0300)]
Update XInputJoystick.cs

Debug message for programmers

6 years agoPrevent crash when XInput is not present
Rosen Iliev [Wed, 30 Aug 2017 15:10:56 +0000 (18:10 +0300)]
Prevent crash when XInput is not present

Now returns from the function instead of throwing an exception

6 years agoMerge pull request #643 from Frassle/outoptimize
Fraser Waters [Wed, 30 Aug 2017 12:13:42 +0000 (13:13 +0100)]
Merge pull request #643 from Frassle/outoptimize

Optimize assignment to vector math out parameters

6 years agoReplace manually written code using NotImplementedException with BindingsNotRewritten...
Fraser Waters [Mon, 28 Aug 2017 16:14:19 +0000 (17:14 +0100)]
Replace manually written code using NotImplementedException with BindingsNotRewrittenException

6 years agoRerun Bind.exe
Fraser Waters [Mon, 28 Aug 2017 16:10:06 +0000 (17:10 +0100)]
Rerun Bind.exe

6 years agoChange binding generator to emit BindingsNotRewrittenException rather than NotImpleme...
Fraser Waters [Mon, 28 Aug 2017 16:09:43 +0000 (17:09 +0100)]
Change binding generator to emit BindingsNotRewrittenException rather than NotImplementedException

6 years agoAdd BindingsNotRewrittenException
Fraser Waters [Mon, 28 Aug 2017 16:09:18 +0000 (17:09 +0100)]
Add BindingsNotRewrittenException

6 years agoCorrect altered logic.
Jarl Gullberg [Mon, 28 Aug 2017 15:01:05 +0000 (17:01 +0200)]
Correct altered logic.

6 years agoCorrect odd line breaks and remove duplicate debug option.
Jarl Gullberg [Mon, 28 Aug 2017 14:58:44 +0000 (16:58 +0200)]
Correct odd line breaks and remove duplicate debug option.

6 years agoUse 'a' instead of 'i' for the short assembly option.
Jarl Gullberg [Mon, 28 Aug 2017 14:57:49 +0000 (16:57 +0200)]
Use 'a' instead of 'i' for the short assembly option.

6 years agoAdd remarks about not reusing the same variable to ref/out methods
Fraser Waters [Mon, 28 Aug 2017 14:52:04 +0000 (15:52 +0100)]
Add remarks about not reusing the same variable to ref/out methods

6 years agoOptimize assignment to vector math out parameters
Fraser Waters [Sun, 27 Aug 2017 15:11:00 +0000 (16:11 +0100)]
Optimize assignment to vector math out parameters

See #500 for more details.

Instead of using the pattern:
        result = new Vector(x, y, z)
Which would allocate and copy a vector instance, instead assign the fields
directly:
        result.X = x;
        result.Y = y;
        result.Z = z;
This should be a small improvment in performance.

6 years agoAdd a pull request template
Fraser Waters [Mon, 7 Aug 2017 13:20:11 +0000 (14:20 +0100)]
Add a pull request template

Based on one from ArasP:
http://aras-p.info/blog/2017/05/07/Users-POV-and-Empathy/

6 years agoFix mscorlib 4.0.0.0 reference added by Rewrite.exe
Fraser Waters [Sat, 26 Aug 2017 21:17:04 +0000 (22:17 +0100)]
Fix mscorlib 4.0.0.0 reference added by Rewrite.exe

6 years agoFix style errors in iPhoneOS project
Fraser Waters [Sat, 26 Aug 2017 12:43:22 +0000 (13:43 +0100)]
Fix style errors in iPhoneOS project

6 years agoMerge pull request #637 from VPeruS/macos-refresh-rate
Fraser Waters [Sat, 26 Aug 2017 11:49:52 +0000 (12:49 +0100)]
Merge pull request #637 from VPeruS/macos-refresh-rate

Fix DisplayDevice.RefreshRate being 0 for some monitors on MacOS.

Use CoreVideo CVDisplayLink to get correct display refresh rate. Previous implementation can sometimes return 0 according to https://developer.apple.com/documentation/coregraphics/1454661-cgdisplaymodegetrefreshrate.

6 years agoAdd build status to README
Fraser Waters [Tue, 22 Aug 2017 12:20:45 +0000 (13:20 +0100)]
Add build status to README

6 years agoRevert GLWidget back to 4.5 framework due to gtk3 dependency
Fraser Waters [Tue, 22 Aug 2017 12:04:36 +0000 (13:04 +0100)]
Revert GLWidget back to 4.5 framework due to gtk3 dependency

6 years agoRevert GLControl and GLWidget to target 2.0 framework
Fraser Waters [Tue, 22 Aug 2017 10:54:00 +0000 (11:54 +0100)]
Revert GLControl and GLWidget to target 2.0 framework

6 years agoCorrect target command line arguments.
Jarl Gullberg [Fri, 4 Aug 2017 21:32:47 +0000 (23:32 +0200)]
Correct target command line arguments.

6 years agoUpdate options to the new v2 API.
Jarl Gullberg [Thu, 20 Jul 2017 20:43:13 +0000 (22:43 +0200)]
Update options to the new v2 API.

6 years agoUpdated calls to Rewrite in the OpenTK project.
Jarl Gullberg [Mon, 26 Jun 2017 19:24:32 +0000 (21:24 +0200)]
Updated calls to Rewrite in the OpenTK project.

6 years agoInverted unclear check and changed it check the dllimport option directly.
Jarl Gullberg [Mon, 26 Jun 2017 19:13:02 +0000 (21:13 +0200)]
Inverted unclear check and changed it check the dllimport option directly.

6 years agoRemoved passing of options and replaced checks with option object access.
Jarl Gullberg [Mon, 26 Jun 2017 19:11:59 +0000 (21:11 +0200)]
Removed passing of options and replaced checks with option object access.

6 years agoAdded some early argument verification.
Jarl Gullberg [Mon, 26 Jun 2017 19:05:58 +0000 (21:05 +0200)]
Added some early argument verification.

6 years agoAdded option parsing to the main program.
Jarl Gullberg [Mon, 26 Jun 2017 19:01:30 +0000 (21:01 +0200)]
Added option parsing to the main program.

6 years agoAdded help option and moved required argument to the top.
Jarl Gullberg [Mon, 26 Jun 2017 19:01:01 +0000 (21:01 +0200)]
Added help option and moved required argument to the top.

6 years agoAdded option class.
Jarl Gullberg [Mon, 26 Jun 2017 18:53:12 +0000 (20:53 +0200)]
Added option class.

6 years agoAdd CommandLineParser to Generator.Rewrite.
Jarl Gullberg [Fri, 4 Aug 2017 20:21:56 +0000 (22:21 +0200)]
Add CommandLineParser to Generator.Rewrite.

6 years agoFix RefreshRate return 0 on MacOS
VperuS [Thu, 17 Aug 2017 05:32:22 +0000 (08:32 +0300)]
Fix RefreshRate return 0 on MacOS

6 years agoMerge pull request #618 from Nihlus/myget-continuous-nuget
Jarl Gullberg [Mon, 14 Aug 2017 17:11:19 +0000 (19:11 +0200)]
Merge pull request #618 from Nihlus/myget-continuous-nuget

Add continuous MyGet package feed

6 years agoMerge pull request #623 from Nihlus/enable-xml-doc-output
Jarl Gullberg [Mon, 14 Aug 2017 17:11:07 +0000 (19:11 +0200)]
Merge pull request #623 from Nihlus/enable-xml-doc-output

Enable XML documentation output for supporting projects

6 years agoChange BindingBase to use UTF8, not ASCII, strings
Fraser Waters [Sun, 13 Aug 2017 16:03:20 +0000 (17:03 +0100)]
Change BindingBase to use UTF8, not ASCII, strings

From the OpenGL 4.6 core specification, section 22.2:
        String queries return pointers to UTF-8 encoded,
        null-terminated static strings describing properties of the
        current GL context.

From the GLSL 4.6 specification, section 3.1:
        The source character set used for the OpenGL shading languages
        is Unicode in the UTF-8 encoding scheme.

It used to be that strings were ASCII, but ASCII is a safe subset of
UTF8 so any existing code that assumed strings were encoded as ASCII
will continue to work.

6 years agoFix out String parameters
Fraser Waters [Sun, 13 Aug 2017 13:36:51 +0000 (14:36 +0100)]
Fix out String parameters

6 years agoRemove unused variables in Rewrite
Fraser Waters [Sun, 13 Aug 2017 13:34:19 +0000 (14:34 +0100)]
Remove unused variables in Rewrite

6 years agoMerge pull request #632 from UnknownShadow200/develop
Fraser Waters [Tue, 8 Aug 2017 16:53:41 +0000 (17:53 +0100)]
Merge pull request #632 from UnknownShadow200/develop

X11DisplayDevice - Use XRRSizes array directly if dev.Bounds is empty