aboutsummaryrefslogtreecommitdiffstatsci
path: root/Backends/CairoBackend/src/GLDevice.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-23 06:22:00 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-12-23 06:22:00 +0100
commit11215d2ae24b6de448e3f7abdda3afc9124b9dfb (patch)
treedec71fd3d5030393009f343e48916a45e71be49f /Backends/CairoBackend/src/GLDevice.cs
parent1aa0f18efa7f4f9c198e2e4a037a78673365b9b7 (diff)
update Drawing2d package version, crow version v1.0.1v1.0.1-beta
Diffstat (limited to 'Backends/CairoBackend/src/GLDevice.cs')
-rw-r--r--Backends/CairoBackend/src/GLDevice.cs18
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);
+ }
+
+ }
+}
+