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.
Jarl Gullberg [Sat, 16 Sep 2017 14:20:00 +0000 (16:20 +0200)]
Removed redundant WindowInfo initializer.
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
Jarl Gullberg [Fri, 15 Sep 2017 16:14:32 +0000 (18:14 +0200)]
Add InternalsVisibleTo override in build script.
Jarl Gullberg [Fri, 15 Sep 2017 14:57:46 +0000 (16:57 +0200)]
Bump language version to 7.0.
Jarl Gullberg [Fri, 15 Sep 2017 10:57:28 +0000 (12:57 +0200)]
Add explanatory comment.
Jarl Gullberg [Fri, 15 Sep 2017 10:44:47 +0000 (12:44 +0200)]
Remove redundant MakeCurrent call.
Jarl Gullberg [Fri, 15 Sep 2017 10:42:57 +0000 (12:42 +0200)]
Use GLArea MakeCurrent method in disposal as well.
Jarl Gullberg [Fri, 15 Sep 2017 10:42:28 +0000 (12:42 +0200)]
Use GLArea MakeCurrent method.
Jarl Gullberg [Fri, 15 Sep 2017 10:41:36 +0000 (12:41 +0200)]
Remove redundant SwapBuffers 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.
Jarl Gullberg [Fri, 15 Sep 2017 10:40:21 +0000 (12:40 +0200)]
Remove duplicate RenderFrame event (GLArea has one already).
Jarl Gullberg [Fri, 15 Sep 2017 10:39:47 +0000 (12:39 +0200)]
Remove properties that are no longer relevant or used.
Jarl Gullberg [Fri, 15 Sep 2017 10:38:49 +0000 (12:38 +0200)]
Remove manual visual selection from the X11 initialization.
Jarl Gullberg [Fri, 15 Sep 2017 10:37:28 +0000 (12:37 +0200)]
Add buffer flag selection.
Jarl Gullberg [Fri, 15 Sep 2017 09:52:50 +0000 (11:52 +0200)]
Remove GLVersion properties, and use the underlying GLArea implementation.
Jarl Gullberg [Fri, 15 Sep 2017 09:51:11 +0000 (11:51 +0200)]
Initialize an OpenTK::GraphicsContext from the foreign GDK context.
Jarl Gullberg [Fri, 15 Sep 2017 09:21:22 +0000 (11:21 +0200)]
Inherit from GLArea instead of DrawingArea.
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.
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
Fraser Waters [Sat, 9 Sep 2017 09:39:26 +0000 (10:39 +0100)]
Add some tests for the Half type
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
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
varon [Sat, 2 Sep 2017 23:20:38 +0000 (01:20 +0200)]
Merge pull request #631 from Frassle/prtemplate
Add a pull request template
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
varon [Sat, 2 Sep 2017 08:18:26 +0000 (10:18 +0200)]
Merge pull request #644 from Frassle/rewriteexception
Add BindingsNotRewrittenException
Rosen Iliev [Thu, 31 Aug 2017 07:47:56 +0000 (10:47 +0300)]
Update XInputJoystick.cs
Debug message for programmers
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
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
Fraser Waters [Mon, 28 Aug 2017 16:14:19 +0000 (17:14 +0100)]
Replace manually written code using NotImplementedException with BindingsNotRewrittenException
Fraser Waters [Mon, 28 Aug 2017 16:10:06 +0000 (17:10 +0100)]
Rerun Bind.exe
Fraser Waters [Mon, 28 Aug 2017 16:09:43 +0000 (17:09 +0100)]
Change binding generator to emit BindingsNotRewrittenException rather than NotImplementedException
Fraser Waters [Mon, 28 Aug 2017 16:09:18 +0000 (17:09 +0100)]
Add BindingsNotRewrittenException
Jarl Gullberg [Mon, 28 Aug 2017 15:01:05 +0000 (17:01 +0200)]
Correct altered logic.
Jarl Gullberg [Mon, 28 Aug 2017 14:58:44 +0000 (16:58 +0200)]
Correct odd line breaks and remove duplicate debug option.
Jarl Gullberg [Mon, 28 Aug 2017 14:57:49 +0000 (16:57 +0200)]
Use 'a' instead of 'i' for the short assembly option.
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
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.
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/
Fraser Waters [Sat, 26 Aug 2017 21:17:04 +0000 (22:17 +0100)]
Fix mscorlib 4.0.0.0 reference added by Rewrite.exe
Fraser Waters [Sat, 26 Aug 2017 12:43:22 +0000 (13:43 +0100)]
Fix style errors in iPhoneOS project
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.
Fraser Waters [Tue, 22 Aug 2017 12:20:45 +0000 (13:20 +0100)]
Add build status to README
Fraser Waters [Tue, 22 Aug 2017 12:04:36 +0000 (13:04 +0100)]
Revert GLWidget back to 4.5 framework due to gtk3 dependency
Fraser Waters [Tue, 22 Aug 2017 10:54:00 +0000 (11:54 +0100)]
Revert GLControl and GLWidget to target 2.0 framework
Jarl Gullberg [Fri, 4 Aug 2017 21:32:47 +0000 (23:32 +0200)]
Correct target command line arguments.
Jarl Gullberg [Thu, 20 Jul 2017 20:43:13 +0000 (22:43 +0200)]
Update options to the new v2 API.
Jarl Gullberg [Mon, 26 Jun 2017 19:24:32 +0000 (21:24 +0200)]
Updated calls to Rewrite in the OpenTK project.
Jarl Gullberg [Mon, 26 Jun 2017 19:13:02 +0000 (21:13 +0200)]
Inverted unclear check and changed it check the dllimport option directly.
Jarl Gullberg [Mon, 26 Jun 2017 19:11:59 +0000 (21:11 +0200)]
Removed passing of options and replaced checks with option object access.
Jarl Gullberg [Mon, 26 Jun 2017 19:05:58 +0000 (21:05 +0200)]
Added some early argument verification.
Jarl Gullberg [Mon, 26 Jun 2017 19:01:30 +0000 (21:01 +0200)]
Added option parsing to the main program.
Jarl Gullberg [Mon, 26 Jun 2017 19:01:01 +0000 (21:01 +0200)]
Added help option and moved required argument to the top.
Jarl Gullberg [Mon, 26 Jun 2017 18:53:12 +0000 (20:53 +0200)]
Added option class.
Jarl Gullberg [Fri, 4 Aug 2017 20:21:56 +0000 (22:21 +0200)]
Add CommandLineParser to Generator.Rewrite.
VperuS [Thu, 17 Aug 2017 05:32:22 +0000 (08:32 +0300)]
Fix RefreshRate return 0 on MacOS
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
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
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.
Fraser Waters [Sun, 13 Aug 2017 13:36:51 +0000 (14:36 +0100)]
Fix out String parameters
Fraser Waters [Sun, 13 Aug 2017 13:34:19 +0000 (14:34 +0100)]
Remove unused variables in Rewrite
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
UnknownShadow200 [Tue, 8 Aug 2017 00:03:38 +0000 (10:03 +1000)]
Missed one replacement of current_resolution_index to current_sizes_index
Fraser Waters [Mon, 7 Aug 2017 16:57:40 +0000 (17:57 +0100)]
Fix SA1000 in Platform\iPhoneOS\iPhoneOSGameView.cs
Fixes "The keyword 'typeof' must not be followed by a space."
UnknownShadow200 [Mon, 7 Aug 2017 14:13:23 +0000 (00:13 +1000)]
X11DisplayDevice - Use XRRSizes array directly if dev.Bounds is empty
Directly indexing into the array returned from XRRSizes is the way khronos recommends at https://www.khronos.org/opengl/wiki/Programming_OpenGL_in_Linux:_Changing_the_Screen_Resolution
The old way was multiplying that index by depths.Length, as an index into the available_res list. This is incorrect because it doesn't account for when a display device has multiple refresh rates.
Fraser Waters [Sun, 6 Aug 2017 17:39:21 +0000 (18:39 +0100)]
Merge pull request #625 from Frassle/opengl4.6
Add OpenGL 4.6 Support
Fraser Waters [Sun, 6 Aug 2017 17:11:09 +0000 (18:11 +0100)]
Merge pull request #624 from Nihlus/cocoa-machport-leak-fix
Fix leaking Cocoa Machports on macOS
Fraser Waters [Sun, 6 Aug 2017 17:06:36 +0000 (18:06 +0100)]
Fix casting bug introduced in
127c6fd6
A "&" operator was accidently removed when updating variables to
auto-properties.
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
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.
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
Jarl Gullberg [Fri, 4 Aug 2017 16:47:47 +0000 (18:47 +0200)]
Correct documentation output directory.
Jarl Gullberg [Fri, 4 Aug 2017 16:46:17 +0000 (18:46 +0200)]
Use local variable instead of reusing the field.
Jarl Gullberg [Fri, 4 Aug 2017 16:40:16 +0000 (18:40 +0200)]
Reuse selectors.
Jarl Gullberg [Fri, 4 Aug 2017 16:39:44 +0000 (18:39 +0200)]
Move early return out of the autorelease pool.
Fraser Waters [Fri, 4 Aug 2017 16:23:19 +0000 (17:23 +0100)]
Update README and RELEASE_NOTES
Fraser Waters [Fri, 4 Aug 2017 15:56:29 +0000 (16:56 +0100)]
Rerun Generator.Bind
Fraser Waters [Fri, 4 Aug 2017 15:55:59 +0000 (16:55 +0100)]
Add two new types to Generator.Bind
GLeglClientBufferEXT, and GLVULKANPROCNV. Both are mapped to IntPtrs.
Fraser Waters [Fri, 4 Aug 2017 15:32:26 +0000 (16:32 +0100)]
Regenerate signatures.xml from OpenGL-Registry
Generated from commit
c21e602b9fda1d3bbaecb08194592f67e6a0649b
https://github.com/KhronosGroup/OpenGL-Registry/raw/master/xml/gl.xml
Jarl Gullberg [Fri, 4 Aug 2017 15:41:45 +0000 (17:41 +0200)]
Correct screwy formatting.
Jarl Gullberg [Sun, 9 Jul 2017 21:13:32 +0000 (23:13 +0200)]
Broke the autorelease code out into a class and replaced the usage.
Jarl Gullberg [Thu, 29 Jun 2017 10:43:19 +0000 (12:43 +0200)]
Moved the autorelease pool to the context.
Jarl Gullberg [Fri, 23 Jun 2017 12:37:11 +0000 (14:37 +0200)]
Implemented an autorelease pool for Cocoa's NativeWindow implementation.
Jarl Gullberg [Sun, 30 Jul 2017 16:58:19 +0000 (18:58 +0200)]
Correct missing parameter documentation.
Jarl Gullberg [Sun, 30 Jul 2017 16:57:18 +0000 (18:57 +0200)]
Documented Options class in the converter.
Jarl Gullberg [Sun, 30 Jul 2017 16:54:43 +0000 (18:54 +0200)]
Documented WrapperTypes enum.
Jarl Gullberg [Sun, 30 Jul 2017 16:52:44 +0000 (18:52 +0200)]
Documented FunctionBody class.
Jarl Gullberg [Sun, 30 Jul 2017 16:47:40 +0000 (18:47 +0200)]
Add missing documentation, and pull indentation in by one.
Jarl Gullberg [Sun, 30 Jul 2017 16:46:29 +0000 (18:46 +0200)]
Remove documentation for missing parameter.
Jarl Gullberg [Sun, 30 Jul 2017 16:45:52 +0000 (18:45 +0200)]
Enable XML documentation output for the supporting tools.
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
Jarl Gullberg [Fri, 4 Aug 2017 11:58:39 +0000 (13:58 +0200)]
Add comment explaining the release notes overwrite.
Jarl Gullberg [Sun, 30 Jul 2017 15:59:19 +0000 (17:59 +0200)]
Correct arithmetic operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:59:09 +0000 (17:59 +0200)]
Correct equality comparsion operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:58:41 +0000 (17:58 +0200)]
Correct base call operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:58:15 +0000 (17:58 +0200)]
Correct cast operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:47:43 +0000 (17:47 +0200)]
Correct cast operator position.
Jarl Gullberg [Sun, 30 Jul 2017 15:46:43 +0000 (17:46 +0200)]
Remove redundant base constructor call.
Jarl Gullberg [Sun, 30 Jul 2017 15:46:28 +0000 (17:46 +0200)]
Enable SA1003.
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