diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-24 03:00:25 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-24 03:00:25 +0100 |
| commit | f005d76468dc4c6a368b6f1f6eca69da25214e80 (patch) | |
| tree | 14a70c7fb9a58be9083dbd7492ecd94d030c18a9 /Backends/CairoBackend/src/GLDevice.cs | |
| parent | 362d83b9556355b1d3dfb6cb892896ed33371521 (diff) | |
default Crow.CairoBackend ok
Diffstat (limited to 'Backends/CairoBackend/src/GLDevice.cs')
| -rw-r--r-- | Backends/CairoBackend/src/GLDevice.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Backends/CairoBackend/src/GLDevice.cs b/Backends/CairoBackend/src/GLDevice.cs new file mode 100644 index 00000000..c7992b74 --- /dev/null +++ b/Backends/CairoBackend/src/GLDevice.cs @@ -0,0 +1,17 @@ +// 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; + +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); + } + + } +} + |