thindx/headers/d3d9types.h/enumerations/
cull.rs

1#[allow(unused_imports)] use crate::*;
2
3use winapi::shared::d3d9types::*;
4
5
6
7/// \[[docs.microsoft.com](https://docs.microsoft.com/en-us/windows/win32/direct3d9/d3dcull)\]
8/// D3DCULL
9///
10/// Defines the supported culling modes ([None](crate::Cull::None), [CW](crate::Cull::CW), [CCW](crate::Cull::CCW))
11#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
12#[repr(transparent)] pub struct Cull(D3DCULL);
13
14enumish! { Cull => D3DCULL; None, CW, CCW }
15
16#[allow(non_upper_case_globals)] impl Cull { // These are enum-like
17    pub const None      : Cull = Cull(D3DCULL_NONE); // 1
18    pub const CW        : Cull = Cull(D3DCULL_CW);
19    pub const CCW       : Cull = Cull(D3DCULL_CCW);
20}
21
22#[cfg(feature = "impl-poor-defaults")]
23impl Default for Cull {
24    fn default() -> Self { Cull::None } // 1
25}