diff options
| author | tslil clingman <> | 2021-10-30 16:54:03 -0400 |
|---|---|---|
| committer | tslil clingman <> | 2021-10-30 16:56:41 -0400 |
| commit | 6ead90c0f0e9b9a44c7c1f7137f437faa29fa750 (patch) | |
| tree | 38cbaff4f606689a149865d5708dadac47ee43db /src/sfml/window/context_settings.zig | |
| parent | 48dee0817f5fe8c09a085f0150e0c6b4a699ab7c (diff) | |
Switched to tracking zig-sfml-wrapper as submodule
Diffstat (limited to 'src/sfml/window/context_settings.zig')
| -rw-r--r-- | src/sfml/window/context_settings.zig | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/sfml/window/context_settings.zig b/src/sfml/window/context_settings.zig deleted file mode 100644 index 19b8f03..0000000 --- a/src/sfml/window/context_settings.zig +++ /dev/null @@ -1,28 +0,0 @@ -const sf = @import("../sfml.zig"); - -pub const ContextSettings = packed struct { - const PaddingType = @import("std").meta.Int(.unsigned, @bitSizeOf(c_int) - @bitSizeOf(bool)); - - depth_bits: c_uint = 0, - stencil_bits: c_uint = 0, - antialiasing_level: c_uint = 0, - major_version: c_uint = 1, - minor_version: c_uint = 1, - attribute_flags: u32 = 0, - srgb_capable: bool = false, - _padding: PaddingType = 0, - - pub const Attribute = struct { - pub const default: u32 = 0; - pub const core: u32 = 1; - pub const debug: u32 = 4; - }; - - pub fn _toCSFML(self: ContextSettings) sf.c.sfContextSettings { - return @bitCast(sf.c.sfContextSettings, self); - } - - pub fn _fromCSFML(context_settings: sf.c.sfContextSettings) ContextSettings { - return @bitCast(ContextSettings, context_settings); - } -};
\ No newline at end of file |
