Commit graph

6762 commits

Author SHA1 Message Date
Tzach Shabtay
b06169b457 Removed the stubs for System.Diagnostics.Debug from Android & IOS
This looks like it was once a Xamarin limitation, but it’s not anymore.
Note: tested this on Android, but not on IOS (tested compilation on IOS
only).
Fixes #447
2016-12-11 18:03:29 -05:00
Tzach Shabtay
0e20faf896 Android- fix a crash when the game view is closed before it started running
When the game view is closed, if it hasn’t started running yet the
stopwatch would still be null- added a null check.
2016-12-11 17:50:38 -05:00
Tzach Shabtay
57ceff19b9 Android- Fix crash when querying for surface when window info was not created yet
HasSurface is called by ReadyToRender property to query if the surface
was created, but it’s possible that the window info was not created
yet, added a missing null check.
2016-12-11 17:47:26 -05:00
Manuel Zanin
8ffe3bc504 Moved AngleWindowInfo and EglAnglePlatformFactory under src 2016-11-29 11:34:16 +01:00
Jonas Boesch
fc33246600 Use existing ANGLE definitions 2016-11-29 11:32:23 +01:00
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
varon
1581ac7b8a Merge pull request #454 from leezer3/patch1
Fix wrong XML param name tag
2016-11-25 19:44:21 +02:00
varon
7dda6ffa14 Merge pull request #455 from rejurime/patch-1
Fix #440
2016-11-25 19:40:47 +02:00
René Juan Rico Mendoza
2ff5041ea6 Fix #440 2016-11-23 12:58:03 -03:00
Christopher Lees
c78a6c7844 Fix wrong XML param name tag 2016-11-23 14:42:29 +00:00
varon
c6ca549923 Merge pull request #450 from varon/readme-maintainer-request
Add request for maintainers to readme
2016-11-23 01:22:32 +02:00
varon
13549f5966 Add request for maintainers to readme 2016-11-23 01:21:38 +02:00
varon
75d22ff9e3 Merge pull request #434 from bawaaaaah/patch-1
Fix wrong obsolete message
2016-10-24 12:20:14 +02: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
19eee6f3a5 Update readme for 2.0.0 release news (#431)
* Update readme with 2.0.0 news

* Fix link; Add note about OpenTK.Next.

* better markdown formatting for older news entries
2016-09-23 20:51:52 +02:00
Harry
01e5ac9cd3 Merge pull request #427 from varon/nuget-name-fix
Fix OpenTK assembly name error
2016-09-23 16:41:22 +02:00
varon
844eb285ef fix OpenTK assembly name error. 2016-09-19 01:36:11 +02:00
Harry
d50c2fcea0 Merge pull request #418 from varon/fake-build-system
New build system
2016-08-15 10:23:06 +02:00
varon
ffbd5e9637 execute permission on build.sh 2016-08-15 09:41:55 +02:00
varon
2afe5c1f1a Converted paket templates to project types again 2016-08-14 00:18:16 +02:00
varon
985aa6e683 Added nuget packages to appveyor artifacts 2016-08-14 00:18:15 +02:00
varon
4d14ad1c29 Removed debug output from build.fsx 2016-08-14 00:18:15 +02:00
varon
ea1e42a65e Corrected project exclusions 2016-08-14 00:18:15 +02:00
varon
e546cae95d Updated CI server build commands to produce NuGet packages. 2016-08-14 00:18:14 +02:00
varon
ec8104fbda Temporarily disabled GLWidget from builds 2016-08-14 00:18:14 +02:00
varon
cdd5f75e0c Updated GLWidget to .net 4.5; Added GtkSharp dependency for it. 2016-08-14 00:18:13 +02:00
varon
028ada11a0 temporarily disabled Xamarin build elements for CI testing 2016-08-14 00:18:13 +02:00
varon
8c8e90c904 Updated README instructions 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
23b905b392 updated build script to support limited non-xamarin builds 2016-08-14 00:18:11 +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
69298df9fb Disabled unit tests temporarily 2016-08-14 00:18:09 +02:00
varon
5c68791d74 Added build.fsx to solution 2016-08-14 00:18:09 +02:00
varon
9667074da0 Updated .gitignore 2016-08-14 00:18:08 +02:00
varon
7ca257f4b7 Added initial parts of build framework 2016-08-14 00:18:08 +02:00
Harry
a582c96003 Merge pull request #417 from varon/restructure_repo
Restructure OpenTK repository
2016-08-12 12:43:25 +02:00
varon
ab5bd5cedd Merge pull request #421 from cra0zy/issuetemplate
Improve issue template
2016-07-22 11:16:55 +02:00
cra0zy
2ae2f3f628 Improve Issue Template 2016-07-20 13:22:51 +02:00
varon
ef037fa9e5 Merge pull request #420 from varon/website-nuget-news
Add website and pre-release NuGet package to news
2016-07-19 14:35:59 +02:00
varon
5cd10e9f3f Add website and pre-release NuGet package to news 2016-07-19 14:33:35 +02:00
varon
2fe4cb8d09 Merge pull request #419 from varon/github-issue-template
Add github issue template
2016-07-19 13:53:43 +02:00
varon
95374609fc Added github issue template 2016-07-18 11:27:49 +02:00