thefiddler [Thu, 14 Aug 2014 08:30:25 +0000 (10:30 +0200)]
[Bind] Added ES 3.1 generator
thefiddler [Thu, 14 Aug 2014 08:30:14 +0000 (10:30 +0200)]
[Bind] Do not re-translate translated enum names
thefiddler [Thu, 14 Aug 2014 06:29:53 +0000 (08:29 +0200)]
[GL] Fixed COMPRESSED_SRGB_ALPHA_BPTC_UNORM token
thefiddler [Thu, 14 Aug 2014 06:27:31 +0000 (08:27 +0200)]
[GL] Fixed TEXTURE_BINDING_RECTANGLE token
thefiddler [Thu, 14 Aug 2014 06:13:09 +0000 (08:13 +0200)]
[GL] Removed duplicate bindings
thefiddler [Thu, 14 Aug 2014 06:12:14 +0000 (08:12 +0200)]
[GL] Added missing VertexAttribDPointerType enum
This enum used to be there, but somehow disappeared from the 4.5 specs.
It’s back now.
thefiddler [Thu, 14 Aug 2014 06:11:30 +0000 (08:11 +0200)]
[ES] Implemented ES 3.1 binding generator
thefiddler [Thu, 14 Aug 2014 06:11:11 +0000 (08:11 +0200)]
[GL][ES] Implemented ARB_ES_3_1_compatibility
MemoryBarrier and MemoryBarrierByRegion now use the same enum name.
thefiddler [Thu, 14 Aug 2014 06:05:17 +0000 (08:05 +0200)]
[ES] Typo corrections in the ES 3.1 bindings
thefiddler [Wed, 13 Aug 2014 22:22:07 +0000 (00:22 +0200)]
[ES] Implemented bindings for ES 3.1 (2/2)
Implemented core functionality:
- KHR_shader_atomic_counters
- KHR_shader_image_load_store
- KHR_shader_storage_buffer_object
- KHR_stencil_texturing
- KHR_texture_gather
- KHR_texture_storage_multisample
- KHR_vertex_attrib_binding
thefiddler [Wed, 13 Aug 2014 13:01:51 +0000 (15:01 +0200)]
[ES] Implemented bindings for ES 3.1 (1/2)
Implemented core functionality:
- KHR_compute_shader
- KHR_draw_indirect
- KHR_explicit_uniform_location
- KHR_framebuffer_no_attachments
- KHR_program_interface_queries
- KHR_separate_shader_objects
thefiddler [Wed, 13 Aug 2014 09:23:33 +0000 (11:23 +0200)]
[Bind] Moved GL overrides to parent folder
thefiddler [Wed, 13 Aug 2014 09:22:52 +0000 (11:22 +0200)]
[GL] Added a missing enum
thefiddler [Wed, 13 Aug 2014 09:22:37 +0000 (11:22 +0200)]
[Bind] Allow multiple overrides files
Multiple overrides files allow us to split overrides by extension,
simplifying maintenance.
thefiddler [Tue, 12 Aug 2014 22:32:08 +0000 (00:32 +0200)]
[GL] Implemented ARB_direct_state_access
See http://www.opengl.org/registry/specs/ARB/direct_state_access.txt
thefiddler [Tue, 12 Aug 2014 22:31:38 +0000 (00:31 +0200)]
[GL] Added missing tokens for 4.2-4.4
thefiddler [Tue, 12 Aug 2014 15:11:45 +0000 (17:11 +0200)]
[GL][ES] Implemented KHR_context_robustness
thefiddler [Tue, 12 Aug 2014 14:49:32 +0000 (16:49 +0200)]
[GL] Implemented ARB_get_texture_sub_image
Also fixed KHR_context_flush_control tokens in OpenGL ES.
thefiddler [Tue, 12 Aug 2014 12:44:48 +0000 (14:44 +0200)]
[GL][ES] Implemented KHR_context_flush_control
thefiddler [Mon, 11 Aug 2014 22:16:50 +0000 (00:16 +0200)]
[GL] Implemented ARB_conditional_render_inverted
thefiddler [Mon, 11 Aug 2014 22:10:46 +0000 (00:10 +0200)]
[GL] Implemented ARB_cull_distance
thefiddler [Mon, 11 Aug 2014 22:08:15 +0000 (00:08 +0200)]
[GL][ES] Added tokens for backwards compatibility
The 4.5 spec moves BLEND_ADVANCED_COHERENT_KHR from
KHR_blend_equation_advanced to KHR_blend_equation_advanced_coherent.
Add a deprecated token to maintain binary compatibility.
thefiddler [Mon, 11 Aug 2014 21:54:58 +0000 (23:54 +0200)]
[GL] Added ARB_clip_control
thefiddler [Tue, 2 Sep 2014 11:03:42 +0000 (13:03 +0200)]
Merge pull request #173 from thefiddler/buffersize_to_int
[Bind] Add int overloads to buffer size (IntPtr) parameters
thefiddler [Tue, 2 Sep 2014 11:02:01 +0000 (13:02 +0200)]
Merge pull request #174 from thefiddler/issue171
[GL] Added int overload to DrawElements for OpenGL4
thefiddler [Tue, 2 Sep 2014 11:01:57 +0000 (13:01 +0200)]
Merge pull request #175 from thefiddler/mono360
[Build] Update Travis CI to mono 3.6.0
thefiddler [Tue, 2 Sep 2014 08:58:00 +0000 (10:58 +0200)]
[Build] Update Travis CI to mono 3.6.0
thefiddler [Tue, 2 Sep 2014 07:58:29 +0000 (09:58 +0200)]
[GL] Added int overload to DrawElements for OpenGL4
thefiddler [Tue, 2 Sep 2014 08:53:25 +0000 (10:53 +0200)]
Merge pull request #172 from thefiddler/intptr_fix
[Rewrite] Cast int32 overloads to native int
thefiddler [Tue, 2 Sep 2014 07:48:39 +0000 (09:48 +0200)]
[Bind] Add int overloads to buffer size (IntPtr) parameters
As a convenience, int overloads are provided for IntPtr size
parameters (corresponding to BufferSize or size_t). In the vast
majority of cases, a 32bit int is sufficient for buffer sizes,
so these overloads avoid the necessity of annoying (IntPtr) casts.
If more than 2^31-1 elements are required, the IntPtr overloads
remain available. (As always, this requires a 64bit runtime
environment.)
thefiddler [Mon, 1 Sep 2014 16:09:46 +0000 (18:09 +0200)]
[Rewrite] Cast int32 overloads to native int
Int32 parameters should be converted to native int when
the native signature expects the latter.
thefiddler [Sun, 10 Aug 2014 10:10:07 +0000 (12:10 +0200)]
Merge pull request #164 from thefiddler/x11_scrollfix
[X11] Fix legacy scrolling and absolute pointer motion
thefiddler [Sun, 10 Aug 2014 00:56:37 +0000 (02:56 +0200)]
[X11] Fixed core X11 scrolling and absolute y motions
thefiddler [Sat, 9 Aug 2014 20:09:32 +0000 (22:09 +0200)]
[X11] Fixed absolute motion valuators
thefiddler [Sat, 9 Aug 2014 20:09:16 +0000 (22:09 +0200)]
[X11] Added strong-typed enum for XIValuatorInfo.mode
thefiddler [Sat, 9 Aug 2014 19:47:09 +0000 (21:47 +0200)]
[X11] Check before using motion/scroll valuators
These valuators are not available on all systems. We now check
explicitly for support, instead of returning invalid results.
Additionally, unknown valuator names are now printed to the
debug log.
thefiddler [Sat, 9 Aug 2014 19:46:55 +0000 (21:46 +0200)]
[X11] Added XGetAtomName() function
thefiddler [Sat, 9 Aug 2014 19:29:34 +0000 (21:29 +0200)]
Merge pull request #163 from thefiddler/sdl_guid_crash
[SDL] Workaround for a Mono crash in SDL.JoystickGetGUID
thefiddler [Sat, 9 Aug 2014 19:17:49 +0000 (21:17 +0200)]
[SDL] Workaround for a Mono crash in SDL.JoystickGetGUID
It appears that Mono 3.4.0 fails to marshal SDL_JoystickGUID
correctly when used as a return value. Changing the fixed buffer
to a couple of long fields allows the struct to be marshalled
correctly.
thefiddler [Tue, 29 Jul 2014 21:37:06 +0000 (23:37 +0200)]
Merge pull request #160 from thefiddler/pad_db_hat
[Input] Implemented JoystickHat GamePad mapping
thefiddler [Tue, 29 Jul 2014 21:21:37 +0000 (23:21 +0200)]
[Input] Cleaned up line endings and joystick hat mapping
Andrew O'Connor [Sun, 27 Jul 2014 13:54:36 +0000 (14:54 +0100)]
[Input][SDL] Fix JoystickHat bugs
On SDL, DPad inputs were not correctly translated from joystick
hat inputs.
Updated MappedGamePadDriver so that it will correctly recognize
combined joystick hat directions e.g. DPadLeft should be true when
DownLeft, Left, or UpLeft are returned from the joystick hat.
thefiddler [Fri, 25 Jul 2014 21:26:03 +0000 (23:26 +0200)]
[Input] Implemented JoystickHat GamePad mapping
thefiddler [Wed, 23 Jul 2014 23:14:05 +0000 (01:14 +0200)]
[Docs] Updated documentation for 1.1.4c release
thefiddler [Wed, 23 Jul 2014 23:10:22 +0000 (01:10 +0200)]
[Input] Corrected invalid GUID in GamePad database
thefiddler [Wed, 23 Jul 2014 22:37:01 +0000 (00:37 +0200)]
[Docs] Updated documentation for 1.1.4b release
thefiddler [Wed, 23 Jul 2014 22:30:59 +0000 (00:30 +0200)]
Merge pull request #159 from thefiddler/joydb
[Input] Sync GamePad database with SDL 2.0.4
thefiddler [Wed, 23 Jul 2014 22:19:41 +0000 (00:19 +0200)]
[Input] Sync GamePad database with SDL 2.0.4
thefiddler [Wed, 23 Jul 2014 21:53:16 +0000 (23:53 +0200)]
Merge pull request #158 from thefiddler/fuzzfix
[Mac] Improve stability under Cocoa
thefiddler [Wed, 23 Jul 2014 21:23:14 +0000 (23:23 +0200)]
[Mac] Release input driver before other resources
The input driver relies on the existence of a CFRunLoop. Releasing it
first ensures that a CFRunLoop is available for its complete life cycle.
thefiddler [Wed, 23 Jul 2014 21:22:00 +0000 (23:22 +0200)]
[Mac] Do not use autorelease pool
Avoids a potential crash on shutdown.
thefiddler [Wed, 23 Jul 2014 21:21:04 +0000 (23:21 +0200)]
[Mac] Correctly release mach port
The event tap is released automatically along with the mach port. Fixes
crash on shutdown.
thefiddler [Wed, 23 Jul 2014 19:24:24 +0000 (21:24 +0200)]
[Graphics] Implemented structural equality
GraphicsContexts are now considered equal if they store the same
context handle. Debugging information is also improved.
thefiddler [Wed, 23 Jul 2014 19:23:25 +0000 (21:23 +0200)]
[Mac] Removed stored delegate list
The stored delegate list would store delegates indefinitely, causing a
memory leak. It is now the responsibility of each class to maintain
references to any callback functions it defines.
thefiddler [Wed, 23 Jul 2014 19:22:22 +0000 (21:22 +0200)]
[OpenTK] Removed the finalizer in OpenTK.Toolkit
This resolves crashes related to the platform factory being reset while
resources are still live.
thefiddler [Wed, 23 Jul 2014 19:20:28 +0000 (21:20 +0200)]
[OpenTK] Dispose() now clear the list of resources
thefiddler [Wed, 23 Jul 2014 19:19:46 +0000 (21:19 +0200)]
[Mac] Explicitly close removed devices
Devices are now explicitly closed when they a DeviceRemoved event is
received. Additionally, exceptions are no longer allowed to escape into
unmanaged code, where they might crash the runtime.
thefiddler [Wed, 23 Jul 2014 19:18:34 +0000 (21:18 +0200)]
[Mac] Mark callback calling convention
Callbacks are now explicitly marked as unmanaged pointers with the
correct (platform-defined) calling convention. Exceptions raised inside
these callbacks are no longer allowed to escape into unmanaged code,
where they will crash the runtime.
Additionally, the window is now only closed on the UI thread, and only
if it is actually open.
thefiddler [Wed, 23 Jul 2014 19:15:16 +0000 (21:15 +0200)]
[Mac] Only dispose context on UI thread
thefiddler [Wed, 23 Jul 2014 19:14:47 +0000 (21:14 +0200)]
[Mac]] Add NSApplication.IsUIThread property
This can be used to check whether it is safe to access UI components in
the calling thread.
thefiddler [Wed, 23 Jul 2014 12:36:09 +0000 (14:36 +0200)]
[Mac] Resource registration moved to the facades
thefiddler [Wed, 23 Jul 2014 12:35:51 +0000 (14:35 +0200)]
[Mac] Ensure Cocoa bindings are initialized first
thefiddler [Wed, 23 Jul 2014 12:35:33 +0000 (14:35 +0200)]
[OpenTK] Register GraphicsContext and NativeWindow
thefiddler [Wed, 23 Jul 2014 12:34:52 +0000 (14:34 +0200)]
[OpenTK] Added IPlatformFactory.RegisterResource()
thefiddler [Wed, 23 Jul 2014 08:10:37 +0000 (10:10 +0200)]
[Mac] Do not set callback delegates to null
This is done automatically by the GC once they are eligible for
collection.
thefiddler [Wed, 23 Jul 2014 08:10:08 +0000 (10:10 +0200)]
[Mac] Store a reference to callback delegates
This avoids a potential crashes by the GC reclaiming the delegates
prematurely.
thefiddler [Wed, 23 Jul 2014 08:08:57 +0000 (10:08 +0200)]
[OpenTK] Reduce duplication in GraphicsContextBase
Inheritors now take advantage of base class functionality to avoid
duplicating finalizers and warning messages.
thefiddler [Wed, 23 Jul 2014 07:21:28 +0000 (09:21 +0200)]
[Mac] Register platform resources for disposal
thefiddler [Wed, 23 Jul 2014 07:21:20 +0000 (09:21 +0200)]
[OpenTK] Add allocated resource registry
thefiddler [Wed, 23 Jul 2014 07:20:51 +0000 (09:20 +0200)]
[Mac] Do not execute run loop prematurely
Fixes a potential crash when destroying and recreating OpenTK.Toolkit.
thefiddler [Wed, 23 Jul 2014 07:05:29 +0000 (09:05 +0200)]
[OpenTK] Additional constructor and doc cleanup
thefiddler [Wed, 23 Jul 2014 07:05:01 +0000 (09:05 +0200)]
[Mac] More defensive programming
CocoaNativeWindow now checks for and reports failures to allocate
resources in its constructor. Additionally, it no longer calls UI
methods in the finalizer thread, as those methods will crash on Cocoa.
thefiddler [Wed, 23 Jul 2014 07:03:18 +0000 (09:03 +0200)]
[OpenTK] Re-add static Factory constructor
There are static methods that rely on `OpenTK.Platform.Factory` having
a static constructor. We need to fix those first, before we can remove
this constructor.
thefiddler [Tue, 22 Jul 2014 19:02:33 +0000 (21:02 +0200)]
[Mac] CursorVisible should only apply when changed
This fixes an issue where `NativeWindow.Dispose()` would move the mouse
cursor.
thefiddler [Tue, 22 Jul 2014 14:29:52 +0000 (16:29 +0200)]
[Mac] Do not use Autorelease pool
thefiddler [Tue, 22 Jul 2014 14:29:37 +0000 (16:29 +0200)]
[Mac] Added objc_disposeClassPair binding
thefiddler [Tue, 22 Jul 2014 14:29:21 +0000 (16:29 +0200)]
[Mac] Close CocoaNativeWindow in Dispose()
Also fix various memory management issues regarding the `MouseCursor`
and `Icon` properties.
thefiddler [Tue, 22 Jul 2014 14:20:46 +0000 (16:20 +0200)]
[Mac] Retain CFRunLoop while it is in use
thefiddler [Tue, 22 Jul 2014 14:19:43 +0000 (16:19 +0200)]
[Mac] Added CFRetain binding
thefiddler [Tue, 22 Jul 2014 12:29:20 +0000 (14:29 +0200)]
[OpenTK] Correctly reinitialize platform factory
thefiddler [Tue, 22 Jul 2014 12:28:48 +0000 (14:28 +0200)]
[Mac] Correctly shutdown HID input driver
thefiddler [Mon, 21 Jul 2014 16:07:23 +0000 (18:07 +0200)]
[Docs] Updated documentation for release
thefiddler [Mon, 21 Jul 2014 16:05:20 +0000 (18:05 +0200)]
Merge pull request #157 from thefiddler/warnfix
Fix all build warnings on VS2013 and Mono 3.4.0
thefiddler [Mon, 21 Jul 2014 15:56:10 +0000 (17:56 +0200)]
Merge pull request #156 from thefiddler/buildfix
Use "Preserve Newest" option on OpenTK.dll.config
thefiddler [Mon, 21 Jul 2014 15:55:12 +0000 (17:55 +0200)]
Fixed compilation warnings on Mono 3.4.0
thefiddler [Mon, 21 Jul 2014 15:52:17 +0000 (17:52 +0200)]
Fixed compilation warnings on Mono 3.4.0
thefiddler [Mon, 21 Jul 2014 15:48:14 +0000 (17:48 +0200)]
Fixed compilation warnings on Mono 3.4.0
thefiddler [Mon, 21 Jul 2014 15:46:39 +0000 (17:46 +0200)]
Fixed compilation warnings on Mono 3.4.0
thefiddler [Mon, 21 Jul 2014 15:20:19 +0000 (17:20 +0200)]
[Examples] Fixed all warnings
thefiddler [Mon, 21 Jul 2014 14:55:07 +0000 (16:55 +0200)]
[Compat] Use Preserve Newest in dll.config
This speeds up compilation times significantly.
thefiddler [Mon, 21 Jul 2014 14:53:36 +0000 (16:53 +0200)]
[ES][GL] Regenerated bindings
thefiddler [Mon, 21 Jul 2014 14:53:24 +0000 (16:53 +0200)]
[ES][GL] Added missing documentation comments
thefiddler [Mon, 21 Jul 2014 14:53:02 +0000 (16:53 +0200)]
[Bind] Fixed an issue where CLS-compliance was incorrectly overriden
thefiddler [Mon, 21 Jul 2014 14:49:24 +0000 (16:49 +0200)]
Cleaned up the remaining obsolete warnings
thefiddler [Mon, 21 Jul 2014 14:39:58 +0000 (16:39 +0200)]
Cleaned up a number of obsolete warnings
thefiddler [Mon, 21 Jul 2014 14:34:21 +0000 (16:34 +0200)]
[GL] BufferObjects and TextureUnit are not obsolete
thefiddler [Mon, 21 Jul 2014 14:25:21 +0000 (16:25 +0200)]
[Bind] Implemented CLS-compliant checks for Enums
thefiddler [Mon, 21 Jul 2014 14:03:37 +0000 (16:03 +0200)]
Fixed a large number of warnings
thefiddler [Mon, 21 Jul 2014 14:02:56 +0000 (16:02 +0200)]
[Bind] Added Enum.Obsolete property
thefiddler [Mon, 21 Jul 2014 14:02:32 +0000 (16:02 +0200)]
[ES] Marked obsolete enums as such