diff options
Diffstat (limited to 'Backends/CairoBackend/src/GLDevice.cs')
| -rw-r--r-- | Backends/CairoBackend/src/GLDevice.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Backends/CairoBackend/src/GLDevice.cs b/Backends/CairoBackend/src/GLDevice.cs new file mode 100644 index 00000000..3c90592f --- /dev/null +++ b/Backends/CairoBackend/src/GLDevice.cs @@ -0,0 +1,18 @@ +// Copyright (c) 2021 Jean-Philippe Bruyère <jp_bruyere@hotmail.com> +// +// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT) +using System; +using Drawing2D; + +namespace Crow.CairoBackend +{ + public abstract class GLDevice : CairoDevice + { + protected GLDevice (IntPtr handle, bool owner = true) : base (handle, owner) {} + public void SetThreadAware (bool value) { + NativeMethods.cairo_gl_device_set_thread_aware (handle, value ? 1 : 0); + } + + } +} + |