objc2_gl_kit/generated/
GLKMathTypes.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8#[repr(C)]
10#[derive(Clone, Copy, Debug, PartialEq)]
11pub struct GLKMatrix2 {
12 pub m: [c_float; 4],
13}
14
15unsafe impl Encode for GLKMatrix2 {
16 const ENCODING: Encoding = Encoding::Struct("_GLKMatrix2", &[<[c_float; 4]>::ENCODING]);
17}
18
19unsafe impl RefEncode for GLKMatrix2 {
20 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
21}
22
23#[repr(C)]
25#[derive(Clone, Copy, Debug, PartialEq)]
26pub struct GLKMatrix3 {
27 pub m: [c_float; 9],
28}
29
30unsafe impl Encode for GLKMatrix3 {
31 const ENCODING: Encoding = Encoding::Struct("_GLKMatrix3", &[<[c_float; 9]>::ENCODING]);
32}
33
34unsafe impl RefEncode for GLKMatrix3 {
35 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
36}
37
38#[repr(C, align(16))]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub struct GLKMatrix4 {
42 pub m: [c_float; 16],
43}
44
45unsafe impl Encode for GLKMatrix4 {
46 const ENCODING: Encoding = Encoding::Struct("_GLKMatrix4", &[<[c_float; 16]>::ENCODING]);
47}
48
49unsafe impl RefEncode for GLKMatrix4 {
50 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
51}
52
53#[repr(C, align(8))]
55#[derive(Clone, Copy, Debug, PartialEq)]
56pub struct GLKVector2 {
57 pub v: [c_float; 2],
58}
59
60unsafe impl Encode for GLKVector2 {
61 const ENCODING: Encoding = Encoding::Struct("_GLKVector2", &[<[c_float; 2]>::ENCODING]);
62}
63
64unsafe impl RefEncode for GLKVector2 {
65 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
66}
67
68#[repr(C)]
70#[derive(Clone, Copy, Debug, PartialEq)]
71pub struct GLKVector3 {
72 pub v: [c_float; 3],
73}
74
75unsafe impl Encode for GLKVector3 {
76 const ENCODING: Encoding = Encoding::Struct("_GLKVector3", &[<[c_float; 3]>::ENCODING]);
77}
78
79unsafe impl RefEncode for GLKVector3 {
80 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
81}
82
83#[repr(C, align(16))]
85#[derive(Clone, Copy, Debug, PartialEq)]
86pub struct GLKVector4 {
87 pub v: [c_float; 4],
88}
89
90unsafe impl Encode for GLKVector4 {
91 const ENCODING: Encoding = Encoding::Struct("_GLKVector4", &[<[c_float; 4]>::ENCODING]);
92}
93
94unsafe impl RefEncode for GLKVector4 {
95 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
96}
97
98#[repr(C, align(16))]
100#[derive(Clone, Copy, Debug, PartialEq)]
101pub struct GLKQuaternion {
102 pub q: [c_float; 4],
103}
104
105unsafe impl Encode for GLKQuaternion {
106 const ENCODING: Encoding = Encoding::Struct("_GLKQuaternion", &[<[c_float; 4]>::ENCODING]);
107}
108
109unsafe impl RefEncode for GLKQuaternion {
110 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
111}