objc2_gl_kit/generated/
GLKEffects.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4#[cfg(feature = "objc2-open-gl")]
5#[cfg(target_os = "macos")]
6use objc2_open_gl::*;
7
8use crate::*;
9
10/// [Apple's documentation](https://developer.apple.com/documentation/glkit/glkvertexattrib?language=objc)
11// NS_ENUM
12#[cfg(feature = "objc2-open-gl")]
13#[cfg(target_os = "macos")]
14#[repr(transparent)]
15#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
16pub struct GLKVertexAttrib(pub GLint);
17#[cfg(feature = "objc2-open-gl")]
18#[cfg(target_os = "macos")]
19impl GLKVertexAttrib {
20    #[doc(alias = "GLKVertexAttribPosition")]
21    pub const Position: Self = Self(0);
22    #[doc(alias = "GLKVertexAttribNormal")]
23    pub const Normal: Self = Self(1);
24    #[doc(alias = "GLKVertexAttribColor")]
25    pub const Color: Self = Self(2);
26    #[doc(alias = "GLKVertexAttribTexCoord0")]
27    pub const TexCoord0: Self = Self(3);
28    #[doc(alias = "GLKVertexAttribTexCoord1")]
29    pub const TexCoord1: Self = Self(4);
30}
31
32#[cfg(feature = "objc2-open-gl")]
33#[cfg(target_os = "macos")]
34unsafe impl Encode for GLKVertexAttrib {
35    const ENCODING: Encoding = GLint::ENCODING;
36}
37
38#[cfg(feature = "objc2-open-gl")]
39#[cfg(target_os = "macos")]
40unsafe impl RefEncode for GLKVertexAttrib {
41    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
42}