Commit graph

7297 commits

Author SHA1 Message Date
Fraser Waters
e222486004 Generate legacy overloads for GetObjectPtrLabel 2017-10-05 13:42:39 +01:00
Fraser Waters
d9918639fb Generate legacy overloads for GetObjectLabel 2017-10-05 13:42:38 +01:00
Fraser Waters
bb456e47a8 Generate legacy overloads for EdgeFlagv 2017-10-05 12:54:04 +01:00
Fraser Waters
ffa26fb204 Add feature to Bind to generate legacy array overloads 2017-10-05 12:37:23 +01:00
Fraser Waters
6bd1f0e603 Remove ShaderSource override that had no effect 2017-10-04 22:26:49 +01:00
Fraser Waters
74822fb42f Removing some dead code in Bind
This change doesn't effect the output of Bind.
2017-10-04 20:02:22 +01:00
Fraser Waters
201849b888 Remove trailing whitespace from overrides.xml 2017-10-04 14:32:46 +01:00
Fraser Waters
cd0e300785 Merge pull request #641 from Frassle/vector
Add Distance[Squared] methods to Vector(2/3)[d]
2017-10-03 12:16:59 +01:00
Jarl Gullberg
9768febfab
Rename GraphicsContextFlags to ContextFlags and remove the setter. 2017-10-01 20:35:04 +02:00
Jarl Gullberg
881b7553d9
Enable error checking for debug contexts. 2017-10-01 20:16:45 +02:00
Jarl Gullberg
c8ca1f33df
Remove obsolete and redundant double buffering assignment. 2017-10-01 20:15:26 +02:00
Jarl Gullberg
cbae16b7a1
Correct formatting. 2017-10-01 20:14:53 +02:00
Jarl Gullberg
2caeaf40e1
Correct field naming. 2017-10-01 20:14:39 +02:00
Jarl Gullberg
6e40aebeb3
Remove GTK2 code.
GLArea is only properly supported for GTK >= 3.16.
2017-10-01 20:14:15 +02:00
Jarl Gullberg
72dedf5018
Revert addition of InternalsVisibleTo attribute for the OpenTK assembly. 2017-10-01 20:13:00 +02:00
Jarl Gullberg
d3f5a87809
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.
2017-10-01 20:11:58 +02:00
Jarl Gullberg
b1f90c380e
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.
2017-10-01 20:06:50 +02:00
Jarl Gullberg
db4546d896 Merge pull request #653 from Nihlus/getaddress-wgl-fix
Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities
2017-09-24 12:05:56 +02:00
Jarl Gullberg
1f33a6dd84
Use Wgl::GetAddress instead of Wgl::GetProcAddress in Utilities. 2017-09-20 16:52:45 +02:00
Fraser Waters
4f9e057358 Add Distance[Squared] methods to Vector3[d] 2017-09-17 14:37:51 +01:00
Fraser Waters
9d596f674b Add Distance[Squared] methods to Vector2[d] 2017-09-17 14:37:51 +01:00
Fraser Waters
211fceddf7 Remove erroneous comment slashes 2017-09-17 14:34:20 +01:00
Jarl Gullberg
29863f13da
Removed redundant WindowInfo initializer. 2017-09-16 16:20:00 +02:00
Jarl Gullberg
5df8f47d18
Bump AppVeyor image to 2017 to support C# 7.0 language features 2017-09-15 18:33:31 +02:00
Jarl Gullberg
82f0d4a5fd
Add InternalsVisibleTo override in build script. 2017-09-15 18:14:32 +02:00
Jarl Gullberg
67a9669917
Bump language version to 7.0. 2017-09-15 16:57:46 +02:00
Jarl Gullberg
e6e2764c55
Add explanatory comment. 2017-09-15 12:57:28 +02:00
Jarl Gullberg
4089de86a5
Remove redundant MakeCurrent call. 2017-09-15 12:44:47 +02:00
Jarl Gullberg
eb317df44c
Use GLArea MakeCurrent method in disposal as well. 2017-09-15 12:42:57 +02:00
Jarl Gullberg
ed126403b3
Use GLArea MakeCurrent method. 2017-09-15 12:42:28 +02:00
Jarl Gullberg
9dd03dd769
Remove redundant SwapBuffers call, the base OnDrawn already does this. 2017-09-15 12:41:36 +02:00
Jarl Gullberg
6d4bb30596
Remove redundant MakeCurrent call, the base OnDrawn already does this. 2017-09-15 12:41:23 +02:00
Jarl Gullberg
e9f27ff630
Remove duplicate RenderFrame event (GLArea has one already). 2017-09-15 12:40:21 +02:00
Jarl Gullberg
6a40207b9f
Remove properties that are no longer relevant or used. 2017-09-15 12:39:47 +02:00
Jarl Gullberg
649cce05f7
Remove manual visual selection from the X11 initialization. 2017-09-15 12:38:49 +02:00
Jarl Gullberg
e879b73145
Add buffer flag selection. 2017-09-15 12:37:28 +02:00
Jarl Gullberg
c485327da5
Remove GLVersion properties, and use the underlying GLArea implementation. 2017-09-15 11:52:50 +02:00
Jarl Gullberg
456d7cde37
Initialize an OpenTK::GraphicsContext from the foreign GDK context. 2017-09-15 11:51:11 +02:00
Jarl Gullberg
d677aef6c3
Inherit from GLArea instead of DrawingArea. 2017-09-15 11:21:22 +02:00
Jarl Gullberg
d4112a6e95
Add OpenTK.GLWidget as a friend assembly, allowing it to access internals. 2017-09-15 11:21:10 +02:00
varon
9215744415 Merge pull request #650 from Frassle/half
Add some tests for the Half type
2017-09-13 12:19:48 +02:00
Fraser Waters
05abff631a Add some tests for the Half type 2017-09-10 19:39:47 +01:00
varon
077d7c7098 Merge pull request #634 from Frassle/utf8
Change BindingBase to use UTF8, not ASCII, strings
2017-09-03 11:29:55 +02:00
varon
f3044c259a Merge pull request #627 from Nihlus/rewrite-new-1-better-options
Simplify option parsing for Generator.Rewrite
2017-09-03 11:28:09 +02:00
varon
a9f6b2c38c Merge pull request #631 from Frassle/prtemplate
Add a pull request template
2017-09-03 01:20:38 +02:00
varon
d9f8120f0d Merge pull request #645 from winterhell/develop
Prevent crash when XInput is not present
2017-09-03 01:19:27 +02:00
varon
11c24a80d9 Merge pull request #644 from Frassle/rewriteexception
Add BindingsNotRewrittenException
2017-09-02 10:18:26 +02:00
Rosen Iliev
33ed6727bf Update XInputJoystick.cs
Debug message for programmers
2017-08-31 10:47:56 +03:00
Rosen Iliev
8e5faec07c Prevent crash when XInput is not present
Now returns from the function instead of throwing an exception
2017-08-30 18:10:56 +03:00
Fraser Waters
96ef07b229 Merge pull request #643 from Frassle/outoptimize
Optimize assignment to vector math out parameters
2017-08-30 13:13:42 +01:00