platform/core/csapi/opentk.git
7 years agoMerge pull request #630 from UnknownShadow200/develop
Fraser Waters [Sun, 6 Aug 2017 16:55:32 +0000 (17:55 +0100)]
Merge pull request #630 from UnknownShadow200/develop

Allocate SystemDefaultCharSize instead of 1 byte per char for buffer used in WinGLNative.HandleDropFiles

7 years agoUse Marshal.SystemDefaultCharSize instead of hardcoding 2 bytes per char
UnknownShadow200 [Sat, 5 Aug 2017 22:36:51 +0000 (08:36 +1000)]
Use Marshal.SystemDefaultCharSize instead of hardcoding 2 bytes per char

Also move Marshal.FreeHGlobal up because buffer doesn't need to persist after PtrToStringAuto was called.

7 years agoAllocate 2 instead of 1 byte per char for buffer used in WinGLNative.HandleDropFiles
UnknownShadow200 [Sat, 5 Aug 2017 13:56:42 +0000 (23:56 +1000)]
Allocate 2 instead of 1 byte per char for buffer used in WinGLNative.HandleDropFiles

DragQueryFile returns number of characters. Previously, a buffer of 'number of characters' bytes was being allocated.

This change fixes crashing when the platform uses a character set with more than one byte per character. (unicode charset has 2 bytes)

Fixes #626

7 years agoMerge pull request #620 from Nihlus/cleanup-9-symbol-spacing
Jarl Gullberg [Fri, 4 Aug 2017 15:25:29 +0000 (17:25 +0200)]
Merge pull request #620 from Nihlus/cleanup-9-symbol-spacing

[Cleanup] Symbol Spacing

7 years agoCorrect arithmetic operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:59:19 +0000 (17:59 +0200)]
Correct arithmetic operator position.

7 years agoCorrect equality comparsion operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:59:09 +0000 (17:59 +0200)]
Correct equality comparsion operator position.

7 years agoCorrect base call operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:58:41 +0000 (17:58 +0200)]
Correct base call operator position.

7 years agoCorrect cast operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:58:15 +0000 (17:58 +0200)]
Correct cast operator position.

7 years agoCorrect cast operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:47:43 +0000 (17:47 +0200)]
Correct cast operator position.

7 years agoRemove redundant base constructor call.
Jarl Gullberg [Sun, 30 Jul 2017 15:46:43 +0000 (17:46 +0200)]
Remove redundant base constructor call.

7 years agoEnable SA1003.
Jarl Gullberg [Sun, 30 Jul 2017 15:46:28 +0000 (17:46 +0200)]
Enable SA1003.

7 years agoMerge pull request #619 from Nihlus/cleanup-8-semicolon-spacing
Jarl Gullberg [Fri, 4 Aug 2017 10:30:10 +0000 (12:30 +0200)]
Merge pull request #619 from Nihlus/cleanup-8-semicolon-spacing

[Cleanup] Semicolon spacing

7 years agoCorrect semicolon spacing in XWindowInfoInitializer.cs
Jarl Gullberg [Fri, 4 Aug 2017 10:04:59 +0000 (12:04 +0200)]
Correct semicolon spacing in XWindowInfoInitializer.cs

7 years agoCorrect semicolon spacing in API.cs
Jarl Gullberg [Fri, 4 Aug 2017 10:04:46 +0000 (12:04 +0200)]
Correct semicolon spacing in API.cs

7 years agoCorrect semicolon spacing in Generator.Bind.
Jarl Gullberg [Fri, 28 Jul 2017 11:43:22 +0000 (13:43 +0200)]
Correct semicolon spacing in Generator.Bind.

7 years agoCorrect semicolon spacing in OpenTK.
Jarl Gullberg [Fri, 28 Jul 2017 11:43:12 +0000 (13:43 +0200)]
Correct semicolon spacing in OpenTK.

7 years agoEnable SA1002.
Jarl Gullberg [Fri, 28 Jul 2017 11:40:52 +0000 (13:40 +0200)]
Enable SA1002.

7 years agoMerge pull request #613 from Nihlus/cleanup-7-comma-spacing
Jarl Gullberg [Fri, 4 Aug 2017 09:41:19 +0000 (11:41 +0200)]
Merge pull request #613 from Nihlus/cleanup-7-comma-spacing

[Cleanup] Comma spacing

7 years agoExtend travis timeout to 20m again.
Jarl Gullberg [Sun, 30 Jul 2017 21:45:56 +0000 (23:45 +0200)]
Extend travis timeout to 20m again.

7 years agoRemove travis timeout override.
Jarl Gullberg [Sun, 30 Jul 2017 21:13:06 +0000 (23:13 +0200)]
Remove travis timeout override.

7 years agoExtend travis timeout to 30m.
Jarl Gullberg [Sun, 30 Jul 2017 18:58:39 +0000 (20:58 +0200)]
Extend travis timeout to 30m.

7 years agoExtend travis timeout to 20m.
Jarl Gullberg [Sun, 30 Jul 2017 18:16:55 +0000 (20:16 +0200)]
Extend travis timeout to 20m.

7 years agoCorrect comma spacing in DisplayService.
Jarl Gullberg [Fri, 28 Jul 2017 11:34:33 +0000 (13:34 +0200)]
Correct comma spacing in DisplayService.

7 years agoCorrect comma spacing in GLObsolete.
Jarl Gullberg [Fri, 28 Jul 2017 11:34:23 +0000 (13:34 +0200)]
Correct comma spacing in GLObsolete.

7 years agoRegenerate bindings to correct comma spacing.
Jarl Gullberg [Fri, 28 Jul 2017 11:25:57 +0000 (13:25 +0200)]
Regenerate bindings to correct comma spacing.

7 years agoCorrect method generation to account for SA1001.
Jarl Gullberg [Fri, 28 Jul 2017 10:56:20 +0000 (12:56 +0200)]
Correct method generation to account for SA1001.

7 years agoCorrect comma spacing in OpenTK, excluding generated files.
Jarl Gullberg [Fri, 28 Jul 2017 10:43:10 +0000 (12:43 +0200)]
Correct comma spacing in OpenTK, excluding generated files.

7 years agoCorrect comma spacing in Generator.Rewrite.
Jarl Gullberg [Fri, 28 Jul 2017 10:38:54 +0000 (12:38 +0200)]
Correct comma spacing in Generator.Rewrite.

7 years agoEnable SA1001.
Jarl Gullberg [Fri, 28 Jul 2017 10:38:39 +0000 (12:38 +0200)]
Enable SA1001.

7 years agoMerge pull request #590 from Frassle/gamewindowtests
Fraser Waters [Wed, 2 Aug 2017 14:04:47 +0000 (15:04 +0100)]
Merge pull request #590 from Frassle/gamewindowtests

GameWindow tests and some X11 fixes

7 years agoMerge pull request #597 from ppy/fix-white-flash
Fraser Waters [Tue, 1 Aug 2017 12:50:30 +0000 (13:50 +0100)]
Merge pull request #597 from ppy/fix-white-flash

Fix white flash when starting GameWindow based application on windows

7 years agoAdd comment regarding performance
Dean Herbert [Mon, 31 Jul 2017 13:31:02 +0000 (22:31 +0900)]
Add comment regarding performance

7 years agoAdd comment about setting background color
Dean Herbert [Mon, 31 Jul 2017 05:55:43 +0000 (14:55 +0900)]
Add comment about setting background color

7 years agoWait for ConfigureNotify when changing X11 Bounds
Fraser Waters [Fri, 28 Jul 2017 16:02:59 +0000 (17:02 +0100)]
Wait for ConfigureNotify when changing X11 Bounds

7 years agoChange client_rectangle to client_size
Fraser Waters [Sun, 30 Jul 2017 20:22:33 +0000 (21:22 +0100)]
Change client_rectangle to client_size

The Location part of client_rectangle was never used.

7 years agoChange X11 entry assembly search and provide null fallback
Fraser Waters [Fri, 28 Jul 2017 15:26:46 +0000 (16:26 +0100)]
Change X11 entry assembly search and provide null fallback

7 years agoStart a virtual framebuffer for travisCI
Fraser Waters [Sun, 23 Jul 2017 15:30:58 +0000 (16:30 +0100)]
Start a virtual framebuffer for travisCI

7 years agoAdd GameWindow tests
Fraser Waters [Sun, 23 Jul 2017 09:50:25 +0000 (10:50 +0100)]
Add GameWindow tests

7 years agoAdd debug actions to run xUnit to Tests.fsproj
Fraser Waters [Sun, 23 Jul 2017 09:49:58 +0000 (10:49 +0100)]
Add debug actions to run xUnit to Tests.fsproj

7 years agoMerge pull request #615 from Nihlus/fake-use-build-instead-of-rebuild
Jarl Gullberg [Sun, 30 Jul 2017 20:53:57 +0000 (22:53 +0200)]
Merge pull request #615 from Nihlus/fake-use-build-instead-of-rebuild

Use the Build target instead of Rebuild in FAKE

7 years agoUse the Build target instead of Rebuild in FAKE to avoid redundant rebuilds.
Jarl Gullberg [Sun, 30 Jul 2017 20:36:16 +0000 (22:36 +0200)]
Use the Build target instead of Rebuild in FAKE to avoid redundant rebuilds.

7 years agoMerge pull request #614 from Nihlus/fix-stylecop-rules-release-rewrtier
Jarl Gullberg [Sun, 30 Jul 2017 16:37:39 +0000 (18:37 +0200)]
Merge pull request #614 from Nihlus/fix-stylecop-rules-release-rewrtier

Move StyleCop properties to global section for rewriter

7 years agoMove StyleCop properties to global section.
Jarl Gullberg [Sun, 30 Jul 2017 16:36:12 +0000 (18:36 +0200)]
Move StyleCop properties to global section.

7 years agoMerge pull request #608 from Nihlus/cleanup-6-keyword-spacing
Jarl Gullberg [Sun, 30 Jul 2017 15:28:04 +0000 (17:28 +0200)]
Merge pull request #608 from Nihlus/cleanup-6-keyword-spacing

Correct keyword spacing

7 years agoMerge pull request #609 from leezer3/RailDriver
Jarl Gullberg [Fri, 28 Jul 2017 11:37:42 +0000 (13:37 +0200)]
Merge pull request #609 from leezer3/RailDriver

Windows HID: Implement generic Consumer device which returns a button collection

7 years agoCorrect keyword spacing in OpenTK.
Jarl Gullberg [Fri, 28 Jul 2017 10:29:22 +0000 (12:29 +0200)]
Correct keyword spacing in OpenTK.

7 years agoCorrect keyword spacing in Generator.Bind.
Jarl Gullberg [Fri, 28 Jul 2017 10:23:33 +0000 (12:23 +0200)]
Correct keyword spacing in Generator.Bind.

7 years agoMerge pull request #607 from Nihlus/purge-regions-mobile
Jarl Gullberg [Fri, 28 Jul 2017 10:13:53 +0000 (12:13 +0200)]
Merge pull request #607 from Nihlus/purge-regions-mobile

Correct mobile projects for StyleCop compliance.

7 years agoUse explicit modifiers for Android code.
Jarl Gullberg [Fri, 28 Jul 2017 10:08:57 +0000 (12:08 +0200)]
Use explicit modifiers for Android code.

7 years agoUse explicit modifiers for iOS code.
Jarl Gullberg [Fri, 28 Jul 2017 10:06:13 +0000 (12:06 +0200)]
Use explicit modifiers for iOS code.

7 years agoRemove regions from iOS and correct brace style.
Jarl Gullberg [Fri, 28 Jul 2017 10:01:28 +0000 (12:01 +0200)]
Remove regions from iOS and correct brace style.

7 years agoRemove regions from Android.
Jarl Gullberg [Fri, 28 Jul 2017 10:01:12 +0000 (12:01 +0200)]
Remove regions from Android.

7 years agoMerge pull request #600 from Nihlus/stylecop-1-initial
Jarl Gullberg [Fri, 28 Jul 2017 09:22:32 +0000 (11:22 +0200)]
Merge pull request #600 from Nihlus/stylecop-1-initial

Add StyleCop.Analyzers to projects

7 years agoMerge pull request #588 from Frassle/issue517
Jarl Gullberg [Fri, 28 Jul 2017 09:22:05 +0000 (11:22 +0200)]
Merge pull request #588 from Frassle/issue517

Change StringBuilder parameters to out Strings

7 years agoFix Helper methods to use out Strings
Fraser Waters [Thu, 27 Jul 2017 11:21:21 +0000 (12:21 +0100)]
Fix Helper methods to use out Strings

7 years agoRun Generator.Bind
Fraser Waters [Thu, 27 Jul 2017 10:56:33 +0000 (11:56 +0100)]
Run Generator.Bind

7 years agoUse "out String" parameters instead of "StringBuilder"
Fraser Waters [Sun, 23 Jul 2017 10:54:40 +0000 (11:54 +0100)]
Use "out String" parameters instead of "StringBuilder"

7 years agoRun Generator.Bind
Fraser Waters [Thu, 27 Jul 2017 10:48:38 +0000 (11:48 +0100)]
Run Generator.Bind

7 years agoEmit CountAttributes during binding
Fraser Waters [Mon, 17 Jul 2017 09:39:21 +0000 (10:39 +0100)]
Emit CountAttributes during binding

Adds a new parameter attribute CountAttribute that is emitted during
binding. CountAttribute is based on the "len" attribute in the
specifications. It describes what the expected count/length of the
parameter is.

During rewrite we remove these attributes.

7 years agoUpdate Bind project to Framework 4.6.1
Fraser Waters [Sat, 22 Jul 2017 13:51:10 +0000 (14:51 +0100)]
Update Bind project to Framework 4.6.1

7 years agoImplement generic Consumer device which returns a button collection
Christopher Lees [Thu, 27 Jul 2017 15:39:37 +0000 (16:39 +0100)]
Implement generic Consumer device which returns a button collection

7 years agoMerge pull request #602 from Nihlus/unix-unofficial-xamarin-android
Jarl Gullberg [Thu, 27 Jul 2017 14:56:26 +0000 (16:56 +0200)]
Merge pull request #602 from Nihlus/unix-unofficial-xamarin-android

Support building OpenTK.Android on Linux

7 years agoMerge pull request #606 from Frassle/runbind
Jarl Gullberg [Thu, 27 Jul 2017 10:40:50 +0000 (12:40 +0200)]
Merge pull request #606 from Frassle/runbind

Run Generator.Bind

7 years agoRun Generator.Bind
Fraser Waters [Thu, 27 Jul 2017 10:17:20 +0000 (11:17 +0100)]
Run Generator.Bind

Fixes a load of whitespace errors and missing access modifies in ES.
Changes WaitSync to no longer return WaitSyncStatus (correct according to
https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glWaitSync.xhtml,
looks like 020bb696f6acdf1b0a9454a713c16e54713cf267 fixed this in the override
but Bind wasn't rerun).

7 years agoMerge pull request #605 from Nihlus/myget-parameter-workaround
Jarl Gullberg [Thu, 27 Jul 2017 10:14:59 +0000 (12:14 +0200)]
Merge pull request #605 from Nihlus/myget-parameter-workaround

Set NuGet packages to always build when building via MyGet

7 years agoAdd declaration of BuildTarget outside of the condition.
Jarl Gullberg [Thu, 27 Jul 2017 10:01:21 +0000 (12:01 +0200)]
Add declaration of BuildTarget outside of the condition.

7 years agoStrip trailing newlines.
Jarl Gullberg [Thu, 27 Jul 2017 09:58:41 +0000 (11:58 +0200)]
Strip trailing newlines.

7 years agoAdd check for MyGet as the build runner and strip trailing newlines.
Jarl Gullberg [Thu, 27 Jul 2017 09:58:30 +0000 (11:58 +0200)]
Add check for MyGet as the build runner and strip trailing newlines.

7 years agoMerge pull request #598 from ppy/no-child-window
varon [Wed, 26 Jul 2017 18:05:58 +0000 (20:05 +0200)]
Merge pull request #598 from ppy/no-child-window

Remove child_window to support exclusive full screen in more scenarios

7 years agoMerge pull request #604 from Nihlus/enable-glwidget-nupack
varon [Wed, 26 Jul 2017 17:59:42 +0000 (19:59 +0200)]
Merge pull request #604 from Nihlus/enable-glwidget-nupack

Remove GLWidget exclusion from nuget packing

7 years agoRemove GLWidget exclusion from nuget packing.
Jarl Gullberg [Wed, 26 Jul 2017 15:07:11 +0000 (17:07 +0200)]
Remove GLWidget exclusion from nuget packing.

7 years agoReadd missing drawing namespace.
Jarl Gullberg [Wed, 26 Jul 2017 13:19:16 +0000 (15:19 +0200)]
Readd missing drawing namespace.

7 years agoAdd conditional directory overrides for Unix.
Jarl Gullberg [Wed, 26 Jul 2017 13:18:59 +0000 (15:18 +0200)]
Add conditional directory overrides for Unix.

7 years agoRemoved accidental terminal command. Window focusing is hard.
Jarl Gullberg [Wed, 26 Jul 2017 14:22:52 +0000 (16:22 +0200)]
Removed accidental terminal command. Window focusing is hard.

7 years agoMake sure that StyleCop.Analyzers is excluded from NuGet dependencies.
Jarl Gullberg [Wed, 26 Jul 2017 13:57:16 +0000 (15:57 +0200)]
Make sure that StyleCop.Analyzers is excluded from NuGet dependencies.

7 years agoDrop Link attribute in favor of Link tag to allow building with MSBuild 14
Jarl Gullberg [Tue, 25 Jul 2017 21:32:26 +0000 (23:32 +0200)]
Drop Link attribute in favor of Link tag to allow building with MSBuild 14

7 years agoAdded three undocumented rules.
Jarl Gullberg [Tue, 25 Jul 2017 21:24:34 +0000 (23:24 +0200)]
Added three undocumented rules.

7 years agoMove exception rule to its corresponding block.
Jarl Gullberg [Tue, 25 Jul 2017 20:49:20 +0000 (22:49 +0200)]
Move exception rule to its corresponding block.

7 years agoEnabled compliant rules in the SA15 block.
Jarl Gullberg [Tue, 25 Jul 2017 20:48:40 +0000 (22:48 +0200)]
Enabled compliant rules in the SA15 block.

7 years agoEnabled compliant rules in the SA14 block.
Jarl Gullberg [Tue, 25 Jul 2017 20:33:21 +0000 (22:33 +0200)]
Enabled compliant rules in the SA14 block.

7 years agoEnabled compliant rules in the SA13 block.
Jarl Gullberg [Tue, 25 Jul 2017 14:57:23 +0000 (16:57 +0200)]
Enabled compliant rules in the SA13 block.

7 years agoAdded intentional metadata to some rules and enabled compliant ones in the SA12 block.
Jarl Gullberg [Tue, 25 Jul 2017 14:26:31 +0000 (16:26 +0200)]
Added intentional metadata to some rules and enabled compliant ones in the SA12 block.

7 years agoDisabled noncompliant rules after scanning the other projects.
Jarl Gullberg [Tue, 25 Jul 2017 14:14:23 +0000 (16:14 +0200)]
Disabled noncompliant rules after scanning the other projects.

7 years agoForgot to add StyleCop.Analyzers to the other projects as well.
Jarl Gullberg [Tue, 25 Jul 2017 13:49:07 +0000 (15:49 +0200)]
Forgot to add StyleCop.Analyzers to the other projects as well.

7 years agoEnabled compliant rules in the SA10 block.
Jarl Gullberg [Tue, 25 Jul 2017 13:23:49 +0000 (15:23 +0200)]
Enabled compliant rules in the SA10 block.

7 years agoEnabled SA1004.
Jarl Gullberg [Tue, 25 Jul 2017 12:55:00 +0000 (14:55 +0200)]
Enabled SA1004.

7 years agoEnabled SA1003.
Jarl Gullberg [Tue, 25 Jul 2017 12:54:10 +0000 (14:54 +0200)]
Enabled SA1003.

7 years agoEnabled some adhered rules.
Jarl Gullberg [Tue, 25 Jul 2017 12:52:54 +0000 (14:52 +0200)]
Enabled some adhered rules.

7 years agoEnabled StyleCop inspections for all projects. This replaces AllRules.
Jarl Gullberg [Tue, 25 Jul 2017 12:47:07 +0000 (14:47 +0200)]
Enabled StyleCop inspections for all projects. This replaces AllRules.

7 years agoAdded stylecop configuration file and rule set.
Jarl Gullberg [Tue, 25 Jul 2017 12:29:00 +0000 (14:29 +0200)]
Added stylecop configuration file and rule set.

7 years agoAdded StyleCop.Analyzers to OpenTK.GLWidget
Jarl Gullberg [Tue, 25 Jul 2017 11:36:25 +0000 (13:36 +0200)]
Added StyleCop.Analyzers to OpenTK.GLWidget

7 years agoAdded StyleCop.Analyzers to the solution.
Jarl Gullberg [Tue, 25 Jul 2017 11:33:57 +0000 (13:33 +0200)]
Added StyleCop.Analyzers to the solution.

7 years agoMerge pull request #603 from Nihlus/nuget-include-debugging-symbols
Jarl Gullberg [Wed, 26 Jul 2017 14:40:27 +0000 (16:40 +0200)]
Merge pull request #603 from Nihlus/nuget-include-debugging-symbols

Ensure that all projects bundle their debugging symbols

7 years agoEnsure that all projects bundle their debugging symbols.
Jarl Gullberg [Wed, 26 Jul 2017 14:13:20 +0000 (16:13 +0200)]
Ensure that all projects bundle their debugging symbols.

7 years agoMerge pull request #601 from UnknownShadow200/develop
Fraser Waters [Wed, 26 Jul 2017 07:58:52 +0000 (08:58 +0100)]
Merge pull request #601 from UnknownShadow200/develop

Update bugs/issues urls to point to OpenTK github issues instead of defunct OpenTK.com

7 years agoUpdate bugs/issues urls to point to OpenTK github issues instead of defunct OpenTK.com
UnknownShadow200 [Wed, 26 Jul 2017 07:20:00 +0000 (17:20 +1000)]
Update bugs/issues urls to point to OpenTK github issues instead of defunct OpenTK.com

7 years agoRemove child_window to support exclusive full screen in more scenarios
Dean Herbert [Tue, 25 Jul 2017 02:37:16 +0000 (11:37 +0900)]
Remove child_window to support exclusive full screen in more scenarios

7 years agoFix white flash when starting GameWindow based application on windows
Dean Herbert [Tue, 25 Jul 2017 02:37:44 +0000 (11:37 +0900)]
Fix white flash when starting GameWindow based application on windows

7 years agoMerge pull request #594 from VPeruS/sdl-position
Jarl Gullberg [Mon, 24 Jul 2017 22:36:01 +0000 (00:36 +0200)]
Merge pull request #594 from VPeruS/sdl-position

Fix cursor incorreclty moved out of window

7 years agoFix cursor incorreclty moved out of window
Vlad Kalyuzhny [Mon, 24 Jul 2017 21:36:33 +0000 (00:36 +0300)]
Fix cursor incorreclty moved out of window