Commit graph

6468 commits

Author SHA1 Message Date
Fraser Waters 8e7d66a2f4 Merge pull request #264 from Frassle/minimal
Remove NO_SYSDRAWING, replace with MINIMAL
2015-08-10 21:38:18 +01:00
Fraser Waters 9ad18583fe Remove NO_SYSDRAWING, replace with MINIMAL 2015-08-10 20:26:06 +01:00
Fraser Waters b82b2c0e8f Merge pull request #288 from zeldin/develop
[X11] Fix XIEventMask to work on any architecture
2015-08-09 10:27:40 +01:00
Marcus Comstedt f538b93ad3 Fix XIEventMask to work on any architecture
The mask part of an XIEventMask struct is actually not a pointer to an
integer containing the mask, but rather to an array of bytes each
holding 8 bits of the mask, with the first byte holding bit 0-7.
Therefore the old code would only work on little endian arches.
2015-08-08 23:46:18 +02:00
Fraser Waters bf3267c4a9 [Bind] Remove Zero-width space from overrides file 2015-07-30 18:46:30 +01:00
Fraser Waters b10ea601c6 Merge pull request #270 from Frassle/bind
[Bind] Cleaning up binding generator
2015-07-30 14:42:27 +01:00
Fraser Waters 263a1cce3e Regenerate bindings
Just white space changes.
2015-07-30 14:31:34 +01:00
Fraser Waters 0ffd3c595b [Bind] Remove Type.IndirectionLevel
Property wasn't used.
2015-07-30 14:16:10 +01:00
Fraser Waters 52ea9d68ed [Bind] Improve BindStreamWriter
Allows multiple calls to Write to build up one line of text. Splits on
new line characters even in Write. Only places tabs if line is not
otherwise empty.
2015-07-30 14:14:42 +01:00
Fraser Waters c487bafcd2 [Bind] Remove all C header code from Convert
Cleaning up old C header code from convert, we'll just deal with Khronos
XML files now. If there's a need for parsing C headers we should do that
as a separate tool that either parses and generates the OpenTK XML specs
directly generates Khronos XML specs that can then be parsed by Convert.
2015-06-08 15:38:08 +01:00
Fraser Waters 05c2e5f28f [Bind] Remove setting of DefaultOutputNamespace
Settings wasn't required to be set. The generator constructors set the
default namespace.
2015-06-07 23:16:55 +01:00
Fraser Waters 72cc73f2bf [Bind] Remove dirName
Wasn't used, always ended up as "GL2"
2015-06-07 23:01:46 +01:00
Fraser Waters e6e8b7a357 Merge pull request #261 from Frassle/resize
X11: Fix so ClientSize can resize windows with fixed borders
2015-05-29 10:40:35 +01:00
Fraser Waters 0fb149f97b X11: Fix so ClientSize can resize windows with fixed borders
Also fixes issue that NativeWindowBase.Height was setting non-client
height but Width was setting client Width. Both now set client size.

Fixes #259
2015-05-12 14:17:16 +01:00
thefiddler 788b039e32 Merge pull request #220 from Frassle/project
[Math] Vector3 Project and Unproject
2015-05-11 12:07:24 +02:00
thefiddler f3b30044d3 Merge pull request #228 from Frassle/spec
Clean up binding converter and generator
2015-05-11 12:05:13 +02:00
Fraser Waters 29e2876396 [EGL] ANGLE and EXT additions
Adds eglQuerySurfacePointerANGLE and a number of ANGLE related
constants.
Add eglGetPlatformDisplayEXT, eglCreatePlatformWindowSurfaceEXT and
eglCreatePlatformPixmapSurfaceEXT from EGL_EXT_platform_base.
2015-04-21 21:22:29 +01:00
Jonas Boesch d6779d986d GetStaticAddess checks for RenderableFlags.ES3 2015-04-21 14:36:09 +01:00
Jonas Boesch f57e411723 Added OPENGL_ES3_BIT 2015-04-21 14:34:35 +01:00
Jonas Boesch af4eab290e Updated binary dependencies for Angle
- From Chromium Repo: 05ae50dc71b4859baba5a95cb5d7ab04bbb8a47a
2015-04-21 14:11:11 +01:00
Fraser Waters bd9ff3a320 Merge pull request #247 from Frassle/travis
[travis] Use travis C# support
2015-04-12 11:37:26 +01:00
Fraser Waters ec11ad3a1b [travis] Use travis C# support
Travis now has proper support for C#,
http://docs.travis-ci.com/user/languages/csharp/
2015-04-12 11:32:59 +01:00
Fraser Waters c7ccc1908f Merge pull request #244 from Frassle/keypaddivide
[Windows] Fix detection of KeyboardDivide key
2015-04-11 09:40:50 +01:00
Fraser Waters a90db72e2d [Windows] Fix detection of KeyboardDivide key
Fixes #237
2015-04-10 23:29:20 +01:00
Fraser Waters 271fc3f235 Merge pull request #235 from looperhacks/patch-1
Fix links in Readme
2015-03-20 17:13:46 +00:00
Peter Jeschke eca035b372 Fix links in Readme 2015-03-20 17:43:42 +01:00
Fraser Waters 95d6779705 Merge pull request #193 from Frassle/threadevents
[Platform] Throw exception if ProcessEvents isn't called on main thread.
2015-03-16 15:37:06 +00:00
Fraser Waters 282f1d1f5b Merge pull request #223 from Frassle/angle
[Math] Fix NaN issue in CalculateAngle
2015-03-16 15:35:51 +00:00
Fraser Waters 3efb4e303d Merge pull request #211 from cra0zy/unixgamepad
I was hoping someone else on the project had OSX access but that's looking unlikely. The changes look fairly benign so I'm just going to merge this in. Move fast and break things right :)
2015-03-16 15:35:16 +00:00
Fraser Waters 53981e3b65 Regenerate bindings 2015-03-01 19:04:43 +00:00
Fraser Waters 8c3a5503af Update License date 2015-03-01 19:00:05 +00:00
Fraser Waters ab11fa4f6e Remove java/cpp code from binding generator 2015-03-01 18:59:21 +00:00
Fraser Waters dc372a5bf1 Change url in binding generator help 2015-03-01 18:51:21 +00:00
Fraser Waters 7427f44bbe Ask for web auth if required
Ask for authentication to download private Khronos files.
2015-03-01 14:44:28 +00:00
Fraser Waters d7c21bd3f5 Remove spec support from converter
Khronos stopped supporting .spec files in 2013. They're now over a year
old without support. As such it's not worth us continuing to support
them either.
2015-03-01 14:25:30 +00:00
Fraser Waters 75961e6895 [Math] Fix NaN issue in CalculateAngle
Clamp dot product between -1 and 1 so acos always has a valid input.
2015-02-21 10:55:39 +00:00
Fraser Waters 79fc848015 [Math] Vector3 Project and Unproject
Add methods to Vector3 to project to and from screen space.
2015-02-14 19:05:59 +00:00
Fraser Waters 7e903d6c0b Merge pull request #218 from roman-yagodin/patch-1
Clarify OpenTK.dll.config use for #217
2015-02-11 11:25:51 +00:00
Roman M. Yagodin bbbe95a78d Clarify OpenTK.dll.config use for #217 2015-02-11 08:53:12 +03:00
marko 5953907f86 Allowed Mac and Linux to use GamePad. Added Name param to GamePad. Added Xbox 360 Wireless Joystick linux config to GamePadCongifurationDatabase. 2015-01-19 19:04:59 +01:00
Fraser Waters 2de9c0b907 Fix wrap around bug in XInput.
Fixes #209. 
Negating short.MinValue would cause a wrap around back to short.MinValue. 
This resulted in joystick inputs like 0.8, 0.9, -1.00031.
2015-01-09 12:50:50 +00:00
Fraser Waters 1ca084cf8a [Input] Add IsAnyKey/ButtonDown/Pressed to input state.
Adds properties to KeyboardState, MouseState, JoystickState and GamePadState
(GamePadButtons), to see if any key or button is down. This should be faster
than iterating over all the public IsDown properties as we can make use of the
internal bit fields.

GamePadButtons uses IsButtonPressed rather than IsButtonDown like the others as
it more closely matches it's current interface (no down methods).
2014-11-27 22:05:33 +01:00
Fraser Waters a43181a802 Merge pull request #202 from Frassle/issue201
[Input] Legacy keyboard respects the KeyRepeat field.

Fixes #201.
2014-11-23 18:15:31 +01:00
Fraser Waters e855d2eb33 [Input] Legacy keyboard respects the KeyRepeat field.
If the legacy keyboard device receives a key down event with IsRepeat set it
will only raise it's own key down event if it's KeyRepeat field is set to true.

This is as documented, regression casused by refactoring. Fixes issue #201.

Also change the GameWindowState example to show setting of KeyRepeat to true
and false and how that changes the event counts for the legacy and new keyboard
devices.
2014-11-23 14:40:36 +01:00
thefiddler 6deec73fc9 Merge pull request #197 from Frassle/color
Colorspace conversion functions.
2014-11-13 11:38:51 +01:00
Fraser Waters c442a18d13 Add To/From HCY methods to Color4. 2014-11-12 19:52:15 +01:00
Fraser Waters edcb0664b1 Add To/From YUV methods to Color4. 2014-11-12 19:52:15 +01:00
Fraser Waters 679419bb67 Add To/From XYZ methods to Color4. 2014-11-12 19:52:14 +01:00
Fraser Waters 072263f29d Add To/From HSV methods to Color4. 2014-11-12 19:52:14 +01:00
Fraser Waters d09b32474b Add To/From HSL methods to Color4. 2014-11-12 19:52:14 +01:00