Commit graph

435 commits

Author SHA1 Message Date
Jonas Boesch
84a210bda5 Bugfix: Creating a second GraphicsContext forced context sharing.
This fix will keep existing behavior (forced sharing) in the default case, but adds a new constructor that allows explicitly specifying the shared context. A user can now explicitly specify null for the shared context to get a new non-shared context.
2016-11-28 12:21:18 +01:00
Jonas Boesch
9d29c8c19b Added AngleWindowInfo and AnglePlatformFactory
Both WindowInfo and PlatformFactory wrap the actual platform-specific WindowInfo and PlatformFactory.

For offscreen rendering, AngleWindowInfo can be used with a DummyWindowInfo.

The API to add additional surfaces was added to IAngleWindowInfo, since all those calls need the Display parameter that is only available on EglWindowInfo (which is not exposed to users).
2016-11-28 12:21:18 +01:00
Jonas Boesch
df66598182 Added Angle-related enums and definitions
+ GraphicsContextFlags now has Angle and Offscreen flags.
+ Egl now has PLATFORM_ANGLE related const ints.
+ Added eglGetPlatformDisplayEXT p/invoke definition
+ Added eglQuerySurfacePointerANGLE p/invoke definition
+ EglWindowInfo.CreatePbufferSurface was commented out. Enabled and fixed it.
+ GraphicsContextFlags.Offscreen will make the context create a PbufferSurface instead of a WindowSurface in EglContext
+ SurfaceType enum to select surface type for SelectGraphicsMode
2016-11-28 12:20:59 +01:00
Jonas Boesch
7b795a02e1 Bugfix: Non-null shared contexts for Egl threw Exception
The shared context parameter can be either the EglContext directly, or
the facade, and we cast to see what it is.
2016-11-28 12:12:10 +01:00
Christopher Lees
7ef7c12c2b Joystick Buttons:
* Remove JoystickButton enum (Use zero-based int as button index instead)
* Change to using a long to store button states
* Max buttons now 64 (Unable to go further without using an array)
2016-11-27 19:23:44 +00:00
Christopher Lees
c78a6c7844 Fix wrong XML param name tag 2016-11-23 14:42:29 +00:00
Samuel Lemaitre
d050252bab Fix wrong obsolete message
Fix wrong obsolete message for method "public static Matrix4 Rotate(Quaternion q)"
from CreateRotation to CreateFromQuaternion
2016-09-30 15:07:48 +02:00
varon
844eb285ef fix OpenTK assembly name error. 2016-09-19 01:36:11 +02:00
varon
2afe5c1f1a Converted paket templates to project types again 2016-08-14 00:18:16 +02:00
varon
ea1e42a65e Corrected project exclusions 2016-08-14 00:18:15 +02:00
varon
cdd5f75e0c Updated GLWidget to .net 4.5; Added GtkSharp dependency for it. 2016-08-14 00:18:13 +02:00
varon
89cf3ae534 Possible fix for mono pathing issues on CI 2016-08-14 00:18:12 +02:00
varon
4dfe4298d0 Updated paket/project references 2016-08-14 00:18:12 +02:00
varon
e7498d4971 removed OpenTK.DLL include from Android and iOS OpenTK nuget packages 2016-08-14 00:18:11 +02:00
varon
7cd1cdcbe1 Updated paket templates to work with the OpenTK projects 2016-08-14 00:18:10 +02:00
varon
cdacb73f0b Added necessary paket files 2016-08-14 00:18:10 +02:00
varon
f03f55f24d Updated assemblyinfo 2016-08-14 00:18:10 +02:00
varon
c4e938a7db Removed old build configurations from projects 2016-07-17 22:36:57 +02:00
varon
63ea75330b Fixed release build output locations 2016-07-17 22:34:43 +02:00
varon
2ea8334e71 Fixed OpenTK Projects Generator.Rewrite pathing 2016-07-17 22:31:14 +02:00
varon
5f7da1815d Added .gitignore for Resource.designer.cs 2016-07-17 22:28:53 +02:00
varon
8504e0f543 Removed GlobalAssemblyInfo references 2016-07-17 22:10:06 +02:00
varon
bae84f2dfa Changed debug build output locations for projects 2016-07-17 22:09:12 +02:00
varon
cd9a7fe780 Removed Build.UpdateVersion project 2016-07-17 22:00:50 +02:00
varon
88ba7a3655 Renamed GLWidget to OpenTK.GLWidget 2016-07-17 22:00:19 +02:00
varon
fe7be9e63a Renamed GLControl to OpenTK.GLControl 2016-07-17 21:59:59 +02:00
varon
430ee41d9c Renamed Converter to Generator.Converter 2016-07-17 21:59:25 +02:00
varon
1ccd5f4018 Renamed Bind project to Generator.Bind 2016-07-17 21:59:05 +02:00
varon
468542c3db Moved OpenTK to source folder 2016-07-17 21:36:42 +02:00
varon
bb355b6011 moved GlWidget to source folder 2016-07-17 21:36:27 +02:00
varon
3a800fb61f moved GLControl to src folder 2016-07-17 21:36:09 +02:00
varon
80b8e23620 Moved Generator.Rewrite to src folder 2016-07-17 21:35:51 +02:00
varon
0fc4bc8d7e Moved Build.UpdateVersion to src folder 2016-07-17 21:35:34 +02:00
varon
0fe698bcd3 Moved Convert project to src folder 2016-07-17 21:35:03 +02:00
varon
5e712d35fa Moved Bind project to src filder 2016-07-17 21:33:48 +02:00