Opentk/Source/OpenTK
Stefanos A. b9f57ba4d2 [OpenTK] Use ASCII encoding
Most OpenGL versions work with single-byte ASCII strings exclusively.
OpenGL 4.2 adds UTF8 encoded comments to GLSL shaders. Unfortunately,
UTF16 (.Net) to UTF8 conversions will usually modify the length of the
resulting byte array.

This is not currently possible to implement inside OpenTK, since the
binding generator does not know which length parameter corresponds to a
string parameter.

For this reason, and to maintain compatibility with older OpenGL
versions, we perform a destructive UTF16-to-ASCII encoding, which
replaces unsupported characters by '?'. This allows multi-byte post-4.2.
GLSL shaders to work as expected.

If non-destructive round-tripping of strings is required, the user will
have to use the IntPtr overload for string parameters and perform the
UTF16-to-UTF8 encoding/decoding manually. This need is very unlikely to
arise in practice.
2014-01-16 14:32:11 +01:00
..
Audio [Audio] Don't crash when Alc.GetString() returns null 2014-01-12 22:05:15 +01:00
Compute Disabled OpenCL bindings (#define EXPERIMENTAL in project options to re-enable). 2010-10-03 13:19:05 +00:00
Graphics [Graphics] Added missing documentation comment 2014-01-03 02:18:28 +01:00
Input [OpenTK] Protect against invalid axis/button ids 2014-01-15 01:24:20 +01:00
Math [Math] Added MathHelper.Clamp 2014-01-06 01:52:08 +01:00
Platform [OpenTK] Fixed polling 2014-01-15 01:19:45 +01:00
Properties Updated project files 2013-12-05 09:03:12 +01:00
AutoGeneratedAttribute.cs Rewrite support for [Slot] attribute 2013-11-26 01:31:10 +01:00
BindingsBase.cs [OpenTK] Use ASCII encoding 2014-01-16 14:32:11 +01:00
BlittableValueType.cs Eliminated cls-compliance warnings in BlittableValueType 2013-12-15 22:02:21 +01:00
Configuration.cs Delay joystick initialization until necessary 2013-12-24 17:18:01 +01:00
ContextHandle.cs Normalize line endings and set the mime-type=text/plain and eol-style=native properties on all files. 2009-02-22 10:43:35 +00:00
DisplayDevice.cs Fixed a few warnings with XML comments 2013-01-24 01:26:33 +01:00
DisplayIndex.cs Normalized line endings 2013-10-11 01:58:54 +02:00
DisplayResolution.cs Added conditional compilation and the necessary classes to compile OpenTK without referencing System.Drawing.dll. To build without System.Drawing, add "MINIMAL" to the conditional compilation symbols. Note that this is an experimental feature that will result in a source- and binary-incompatible dll. 2011-12-08 00:03:14 +00:00
Exceptions.cs Fixed a large amount of documentation warnings. 2009-06-04 11:22:20 +00:00
FrameEventArgs.cs Fixed line endings and set svn:eol-style to native and svn:mime-type to text/plain for .cs files. 2009-09-03 19:01:11 +00:00
GameWindow.cs [OpenTK] Use LegacyJoystickDriver for IJoystickDriver implementation 2014-01-14 23:53:24 +01:00
GameWindowFlags.cs Fixed license header. 2009-07-18 08:24:45 +00:00
IGameWindow.cs Marked IGameWindow as public. 2009-09-26 21:34:19 +00:00
INativeWindow.cs [OpenTK] Suggest alternative to obsolete INativeWindow.InputDriver property 2014-01-14 23:40:23 +01:00
InteropHelper.cs Initial work on Pin<> statements (WIP) 2013-11-25 20:00:22 +01:00
IntPtrEqualityComparer.cs Implemented new multi-mouse API on Mac 2010-11-24 23:49:40 +00:00
KeyPressEventArgs.cs Made KeyChar property setter internal instead of private. Useful for reusing KeyPressEventArgs structures (instead of allocating a new one on each and every character event). 2009-09-26 21:55:23 +00:00
Minimal.cs Fixed incorrect self-assignment statements 2013-10-12 15:16:05 +02:00
NativeWindow.cs Enabled KeyDown and KeyUp events in NativeWindow. 2013-11-22 18:03:17 +01:00
OpenTK.Android.csproj Added Xamarin.Android target 2013-10-12 05:08:27 +02:00
OpenTK.csproj [X11] Added INotify.cs to project files 2014-01-14 18:36:36 +01:00
OpenTK.dll.config Added mapping for libXi 2013-11-09 18:55:35 +01:00
RewrittenAttribute.cs Update to latest version from git 2013-11-26 19:07:01 +01:00
SlotAttribute.cs Regenerated bindings 2013-11-27 00:03:21 +01:00
Toolkit.cs Made DPI-awareness configurable (issue #6) 2013-12-02 22:18:16 +01:00
ToolkitOptions.cs [Input] Corrected malformed documentation comments 2014-01-03 02:17:42 +01:00
WindowBorder.cs Revert WindowBorder and WindowState value changes. 2009-10-19 21:32:33 +00:00
WindowState.cs Revert WindowBorder and WindowState value changes. 2009-10-19 21:32:33 +00:00