/
glkit.yaml
319 lines (297 loc) · 8.94 KB
/
glkit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
package: org.robovm.apple.glkit
include: [corefoundation.yaml, coregraphics.yaml, foundation.yaml, opengles.yaml, uikit.yaml, dispatch.yaml]
library: GLKit
framework: GLKit
clang_args: ['-x', 'objective-c']
headers:
- /System/Library/Frameworks/GLKit.framework/Headers/GLKit.h
private_typedefs:
GLboolean: boolean
GLKTextureLoaderCallback: '@Block VoidBlock2<GLKTextureInfo, NSError>'
enums:
GLKFogMode: {}
GLKLightingType: {}
GLKTextureEnvMode: {}
GLKTextureInfoAlphaState: {}
GLKTextureInfoOrigin: {}
GLKTextureLoaderErrorCode: { first: GLKTextureLoaderErrorFileOrURLNotFound }
GLKTextureTarget: {}
GLKVertexAttrib: {}
GLKViewDrawableColorFormat: {}
GLKViewDrawableDepthFormat: {}
GLKViewDrawableMultisample: {}
GLKViewDrawableStencilFormat: {}
classes:
GLKTextureLoaderError:
extends: NSError
# Opaque types
_GLKMatrixStack:
name: GLKMatrixStack
extends: CFType
# Structs
GLKMatrix2: {}
GLKMatrix3: {}
GLKMatrix4: {}
GLKQuaternion: {}
GLKVector2: {}
GLKVector3: {}
GLKVector4: {}
GLKBaseEffect: # DONE
properties:
'useConstantColor':
name: usesConstantColor
'textureOrder':
type: NSArray<GLKEffectPropertyTexture>
GLKEffectProperty: {} # DONE
GLKEffectPropertyFog: # DONE
properties:
'mode':
type: GLKFogMode
GLKEffectPropertyLight: {} # DONE
GLKEffectPropertyMaterial: {} # DONE
GLKEffectPropertyTexture: {} # DONE
GLKEffectPropertyTransform: {} # DONE
GLKReflectionMapEffect: {} # DONE
GLKSkyboxEffect: {} # DONE
GLKTextureInfo: {} # DONE
GLKTextureLoader: # DONE
methods:
'-initWithSharegroup:':
name: init
'-textureWithContentsOf(File|URL).*':
name: loadTexture
parameters:
options:
type: GLKTextureLoaderOptions
'-textureWith(ContentsOfData|CGImage).*':
name: createTexture
parameters:
options:
type: GLKTextureLoaderOptions
'-cubeMapWithContentsOfFiles:options:queue:completionHandler:':
name: loadCubeMap
parameters:
paths:
type: List<String>
marshaler: NSArray.AsStringListMarshaler
options:
type: GLKTextureLoaderOptions
'-cubeMapWithContentsOf(File|URL).*':
name: loadCubeMap
parameters:
options:
type: GLKTextureLoaderOptions
'+textureWithContentsOf(File|URL).*':
name: loadTexture
throws: NSErrorException
parameters:
options:
type: GLKTextureLoaderOptions
'+textureWith(ContentsOfData|CGImage).*':
name: createTexture
throws: NSErrorException
parameters:
options:
type: GLKTextureLoaderOptions
'+cubeMapWithContentsOfFiles:options:error:':
name: loadCubeMap
throws: NSErrorException
parameters:
paths:
type: List<String>
marshaler: NSArray.AsStringListMarshaler
options:
type: GLKTextureLoaderOptions
'+cubeMapWithContentsOf(File|URL).*':
name: loadCubeMap
throws: NSErrorException
parameters:
options:
type: GLKTextureLoaderOptions
GLKView: # DONE
properties:
'enableSetNeedsDisplay':
name: enablesSetNeedsDisplay
methods:
'-init.*':
name: init
GLKViewController: # DONE
properties:
'pauseOnWillResignActive':
name: pausesOnWillResignActive
'resumeOnDidBecomeActive':
name: resumesOnDidBecomeActive
protocols:
GLKNamedEffect: {} # DONE
GLKViewDelegate: # DONE
methods:
'-glkView:drawInRect:':
name: draw
GLKViewControllerDelegate: # DONE
methods:
'-glkViewController:willPause:':
name: willPause
'-glkViewControllerUpdate:':
name: update
functions:
(GLK.*)GetTypeID:
class: '#{g[0]}'
name: getClassTypeID
# GLKMatrixStack
GLKMatrixStack(Scale|Translate).*:
class: GLKMatrixStack
name: '#{g[0]}'
GLKMatrixStack(Rotate)With.*:
class: GLKMatrixStack
name: '#{g[0]}'
GLKMatrixStack(Create):
class: GLKMatrixStack
name: '#{g[0]}'
return_marshaler: CFType.NoRetainMarshaler
GLKMatrixStack(.*):
class: GLKMatrixStack
name: '#{g[0]}'
# GLKMath
GLKMath(Project):
class: GLKMath
name: '#{g[0]}'
visibility: private
GLKMath(Unproject):
class: GLKMath
name: '#{g[0]}'
visibility: private
parameters:
success:
type: BooleanPtr
# GLKVector2
GLKVector2Make.*:
class: GLKVector2
name: create
GLKVector2(.*):
class: GLKVector2
name: '#{g[0]}'
# GLKVector3
GLKVector3Make.*:
class: GLKVector3
name: create
GLKVector3(.*):
class: GLKVector3
name: '#{g[0]}'
# GLKVector4
GLKVector4Make.*:
class: GLKVector4
name: create
GLKVector4(.*):
class: GLKVector4
name: '#{g[0]}'
# GLKQuaternion
GLKQuaternionMake(WithAngle).*:
class: GLKQuaternion
name: createRotation
GLKQuaternionMake.*:
class: GLKQuaternion
name: create
GLKQuaternion(.*):
class: GLKQuaternion
name: '#{g[0]}'
# GLKMatrix3
GLKMatrix3Make(WithRows|WithColumns):
class: GLKMatrix3
name: 'create#{g[0]}'
GLKMatrix3Make.*(AndTranspose):
class: GLKMatrix3
name: 'create#{g[0]}'
GLKMatrix3Make(.?Rotation):
class: GLKMatrix3
name: 'create#{g[0]}'
GLKMatrix3Make(Scale):
class: GLKMatrix3
name: 'create#{g[0]}'
GLKMatrix3Make.*:
class: GLKMatrix3
name: create
GLKMatrix3(Scale|Translate).*:
class: GLKMatrix3
name: '#{g[0]}'
GLKMatrix3(Rotate)WithVector.*:
class: GLKMatrix3
name: '#{g[0]}'
GLKMatrix3(.*):
class: GLKMatrix3
name: '#{g[0]}'
parameters:
isInvertible:
type: BooleanPtr
# GLKMatrix4
GLKMatrix4Make(WithRows|WithColumns):
class: GLKMatrix4
name: 'create#{g[0]}'
GLKMatrix4Make.*(AndTranspose):
class: GLKMatrix4
name: 'create#{g[0]}'
GLKMatrix4Make(.?Rotation):
class: GLKMatrix4
name: 'create#{g[0]}'
GLKMatrix4Make(Scale|Translation|Perspective|Frustum|Ortho|LookAt):
class: GLKMatrix4
name: 'create#{g[0]}'
GLKMatrix4Make.*:
class: GLKMatrix4
name: create
GLKMatrix4(.*):
class: GLKMatrix4
name: '#{g[0]}'
parameters:
isInvertible:
type: BooleanPtr
# Make sure we don't miss any functions if new ones are introduced in a later version
(k?GLK.*):
class: GLKit
name: 'Function__#{g[0]}'
values:
GLKQuaternion(Identity):
class: GLKQuaternion
name: '#{g[0]}'
GLKMatrix3(Identity):
class: GLKMatrix3
name: '#{g[0]}'
GLKMatrix4(Identity):
class: GLKMatrix4
name: '#{g[0]}'
# GLKError
GLKTextureLoaderErrorDomain:
class: GLKTextureLoaderError
name: getClassDomain
GLKTextureLoader(.*Error)Key:
enum: GLKErrorUserInfoKey
name: '#{g[0]}'
type: NSString
extends: NSErrorUserInfoKey
# GLKTextureLoader
GLKTextureLoader(.*):
dictionary: GLKTextureLoaderOptions
name: '#{g[0]}'
type: NSString
methods:
ApplyPremultiplication:
name: shouldApplyPremultiplication
type: boolean
GenerateMipmaps:
name: shouldGenerateMipmaps
type: boolean
OriginBottomLeft:
type: boolean
GrayscaleAsAlpha:
name: shouldTreatGrayscaleAsAlpha
type: boolean
SRGB:
type: boolean
# Make sure we don't miss any values if new ones are introduced in a later version
(k?GLK.*):
class: GLKit
name: 'Value__#{g[0]}'
constants:
# Make sure we don't miss any constants if new ones are introduced in a later version
(k?GLK.*):
class: GLKit
name: 'Constant__#{g[0]}'