Commit graph

293 commits

Author SHA1 Message Date
Jarl Gullberg 879da06b29
Added additional identifier constraints. 2017-05-29 19:45:38 +02:00
Jarl Gullberg 19995fdc2e
Removed unused using statement. 2017-05-29 19:00:12 +02:00
Jarl Gullberg 71c900630f
Added ordinal comparison to string index search. 2017-05-29 18:59:37 +02:00
Jarl Gullberg 760e68ed4e
Removed uses of out variables and introduced a generated variable identifier class. 2017-05-29 18:57:13 +02:00
Jarl Gullberg 092ffb480c
Added a class that can identify a generated variable. 2017-05-29 18:31:39 +02:00
Jarl Gullberg bc981ceccf
Better variable naming and line breaks. 2017-05-29 18:23:33 +02:00
Jarl Gullberg f3f90691e6
Changed manual stream closing to a using statement. 2017-05-29 18:15:49 +02:00
Jarl Gullberg 9f4eb8546e
Removed obsolete manual detection of debug symbol file. 2017-05-29 18:14:46 +02:00
Jarl Gullberg a29f72663c
Changed uses of IEnumerable to List in order to prevent multiple enumerations. 2017-05-29 18:12:43 +02:00
Jarl Gullberg da71abb963
Updated Generator.Rewrite to use the new Cecil API. Dirty fix. 2017-05-26 13:48:00 +02:00
Jarl Gullberg 5a5c85ab18
Changed Mac library from libgtk to libgdk - both work, but it's the same as the others. 2017-05-22 13:19:43 +02:00
Jarl Gullberg 7f04ea5134
Corrected indents. 2017-05-21 22:27:24 +02:00
Jarl Gullberg a501a83acf
Removed unused using statement. 2017-05-21 02:32:52 +02:00
Jarl Gullberg b95197e6ca
Tightened access restrictions to native functions. 2017-05-21 02:32:09 +02:00
Jarl Gullberg 66568d567e
Corrected style of this. qualifier. 2017-05-21 02:30:50 +02:00
Jarl Gullberg a85dd49178
Added preprocessor switching for Mac GTK3. 2017-05-21 01:48:00 +02:00
Jarl Gullberg 80f8cdc63f
Added preproccessor switching for Win32 GTK3. 2017-05-21 01:45:12 +02:00
Jarl Gullberg 55dfd7a3c9
Removed unneeded inheritance from IDisposable. 2017-05-21 01:36:51 +02:00
varon 9c2c0815d1 Merge pull request #521 from tzachshabtay/develop
IOS- added a method to resize the framebuffer on device rotation
2017-05-13 10:33:42 +02:00
varon de6a4a796f Merge branch 'develop' of github.com:opentk/opentk into develop 2017-05-08 22:50:38 +02:00
varon fffb05a917 Release 3.0.0-pre 2017-05-08 22:48:40 +02:00
Neico 974e02b03e fix AngleWindowInfo compile errors on mobile introduced by #458 2017-04-30 23:20:56 +02:00
Shard White 5fd4e9acd7 Fixed typos in documentation comments 2017-04-27 08:43:21 +01:00
UnknownShadow200 5eb75fefa7 Fix default input directories for Generator.Bind 2017-03-23 15:54:40 +11:00
Tzach Shabtay 269c336719 IOS- added a method to resize the buffer on device rotation
This allows to keep aspect ratio when rotating to landscape, see here:
http://stackoverflow.com/questions/20326947/opengl-what-need-to-reconfig
-when-rotate-screen, and also here:
https://gamedev.stackexchange.com/questions/75965/how-do-i-reconfigure-m
y-gles-frame-buffer-after-a-rotation
2017-03-22 23:30:48 -04:00
varon 4e2d1ae520 Merge pull request #458 from mzanin/angle-es3
Allow using OpenGL ES3 with Angle and extract a Direct3D shared handle
2017-03-21 12:46:11 +02:00
Manuel Zanin 70ac147b5c Addressed comments 2017-03-21 10:21:22 +01:00
varon f6af0d0f4a Merge pull request #487 from spellizzari/develop
XInputGetStateEx obtained through ordinal
2017-03-20 19:48:36 +02:00
Tzach Shabtay 2b15ae3700 IOS- fixed crash on first tick
FrameEventArgs throws an exception when setting the Time to a value <=
0. With that knowledge, both the Android and the IOS implementations
had a bug when setting the time.
On IOS, that bug would cause a crash on the first tick, as the first
tick would always set to 0.
On Android the bug was probably harmless but there was a redundant
check there (and also removed the unneeded allocation that was there on
every tick).
2017-03-19 23:49:09 -04:00
varon fe9e300e09 Merge pull request #506 from pragmatrix/angle
ANGLE: keep the backbuffer's size updated when the window resizes
2017-03-19 18:40:48 +02:00
Armin Sander 89e792ee47 be sure the current context is set before calling Egl.WaitClient() 2017-03-19 15:29:00 +01:00
varon 3e38074a9f Use longs to avoid two's complement failure in approxEqual 2017-03-19 15:56:16 +02:00
varon 38efb29af0 Addint based floating point approximate comparison 2017-03-19 15:34:30 +02:00
varon a21313b41b Merge pull request #485 from leezer3/develop
Fix: Joystick hats sticking in last position on Linux
2017-03-19 12:29:00 +02:00
Armin Sander 30752ed36d ANGLE: keep the backbuffer size updated when the window resizes 2017-03-18 14:25:34 +01:00
Christopher Lees 969429d54c FIx: JoystickButton.cs not removed from Android / IOS projects 2017-03-16 22:18:14 +00:00
UnknownShadow200 9401b4dd84 Fix pointless warning when compiling Box2.cs
Showed warning "Missing XML comment for publicly visible type or member 'OpenTK.Box2.GetHashCode()' (CS1591) ", because there were five / instead of three / to indicate an XML comment.
2017-03-15 23:25:44 +11:00
varon 99b9bf65f2 Merge pull request #495 from tzachshabtay/develop
Fix broken IOS bindings
2017-03-13 09:45:37 +02:00
Tzach Shabtay e8aa0882c9 Fix broken iOS bindings 2017-03-03 22:29:47 -05:00
Andrius Bentkus 200915a46c Grammar fix. 2017-02-28 16:26:22 +02:00
Sebastien Pellizzari 69bd4420cb XInputGetStateEx obtained through ordinal 2017-02-14 09:17:41 +01:00
Christopher Lees 87f50e17bb Fix: Joystick hats sticking in last position on Linux 2017-02-11 18:49:29 +00:00
varon ae9c076748 Merge pull request #484 from leezer3/develop
Fix: Xbox controller D-Pad not working under Windows
2017-02-10 17:35:25 +02:00
varon af68ee752a Merge pull request #453 from leezer3/Joystick2
Improve Joystick Buttons
2017-02-10 17:34:44 +02:00
Christopher Lees 5890656953 Fix: Xbox controller D-Pad not working under Windows 2017-02-10 14:24:58 +00:00
varon 519d13ccde Merge pull request #481 from leezer3/NegativeAxis
Fix: Joysticks with an axis range below zero were inverted
2017-02-09 11:31:11 +02:00
Christopher Lees bf7e3ffb1e Fix: Joysticks with an axis range below zero were inverted 2017-02-05 21:36:45 +00:00
Christopher Lees 02e1891098 Fix: Incorrect documentation for MathHelper.NextPowerOfTwo
Fix: Typo in readme
2017-01-31 14:19:39 +00:00
varon 0abd2cc361 Merge pull request #476 from leezer3/develop
Fix: Some joysticks return an invalid HID page of 1
2017-01-30 22:34:22 +02:00
varon bd04c31369 Merge pull request #462 from tzachshabtay/Mobile_DebugPrintouts
Removed the stubs for System.Diagnostics.Debug from Android & IOS
2017-01-29 16:42:48 +02:00
Christopher Lees 114f02ff49 Fix: Some joysticks return an invalid HID page of 1 2017-01-27 15:50:46 +00:00
varon 12b0603dea Merge pull request #463 from tzachshabtay/RemoveRedundantPrintout
Removed redundant printout for "OnMouseMove called without moving the mouse"
2016-12-12 09:25:40 +02:00
Tzach Shabtay 51e2b3915c Removed redundant printout for "OnMouseMove called without moving the mouse"
This fixes #416.
The problem with this printout (as explained in the issue) is that on
Windows (at least for specific devices/OS) GetMouseMovePointsEx can
return duplicate points, so it’s either adding a check in the Windows
layer or remove the printout. Adding a check in the Windows layer looks
redundant though, as this is already checked in NativeWindowBase, so
removing the printout looks preferable.
2016-12-11 18:11:56 -05:00
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
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