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
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
ContextHandle.cs
DisplayDevice.cs Fixed a few warnings with XML comments 2013-01-24 01:26:33 +01:00
DisplayIndex.cs
DisplayResolution.cs
Exceptions.cs
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
IntPtrEqualityComparer.cs Implemented new multi-mouse API on Mac 2010-11-24 23:49:40 +00:00
KeyPressEventArgs.cs
Minimal.cs
NativeWindow.cs
OpenTK.Android.csproj
OpenTK.csproj [X11] Added INotify.cs to project files 2014-01-14 18:36:36 +01:00
OpenTK.dll.config
RewrittenAttribute.cs
SlotAttribute.cs
Toolkit.cs
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