@nativescript/canvas 1.0.0-alpha.13 → 1.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/Canvas/common.js +137 -72
  2. package/Canvas/common.js.map +1 -1
  3. package/package.json +1 -1
  4. package/platforms/ios/CanvasNative.xcframework/Info.plist +44 -0
  5. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  6. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +1996 -0
  7. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  8. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/Utils.h +26 -0
  9. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +3873 -0
  10. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
  11. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3257 -0
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/module.modulemap +11 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/TNSCanvas.nib +0 -0
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +3998 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +21 -0
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/Utils.h +26 -0
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +3873 -0
  26. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
  27. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  28. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64.swiftsourceinfo +0 -0
  29. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  30. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64.swiftsourceinfo +0 -0
  31. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  32. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3257 -0
  33. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftdoc +0 -0
  34. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64.swiftinterface +3257 -0
  35. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  36. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3257 -0
  37. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftdoc +0 -0
  38. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64.swiftinterface +3257 -0
  39. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/module.modulemap +11 -0
  40. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/TNSCanvas.nib +0 -0
  41. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +344 -0
  42. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Info.plist +20 -0
  43. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  44. package/platforms/ios/Podfile +1 -1
@@ -0,0 +1,3998 @@
1
+ #if 0
2
+ #elif defined(__arm64__) && __arm64__
3
+ // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
4
+ #ifndef CANVASNATIVE_SWIFT_H
5
+ #define CANVASNATIVE_SWIFT_H
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wgcc-compat"
8
+
9
+ #if !defined(__has_include)
10
+ # define __has_include(x) 0
11
+ #endif
12
+ #if !defined(__has_attribute)
13
+ # define __has_attribute(x) 0
14
+ #endif
15
+ #if !defined(__has_feature)
16
+ # define __has_feature(x) 0
17
+ #endif
18
+ #if !defined(__has_warning)
19
+ # define __has_warning(x) 0
20
+ #endif
21
+
22
+ #if __has_include(<swift/objc-prologue.h>)
23
+ # include <swift/objc-prologue.h>
24
+ #endif
25
+
26
+ #pragma clang diagnostic ignored "-Wauto-import"
27
+ #include <Foundation/Foundation.h>
28
+ #include <stdint.h>
29
+ #include <stddef.h>
30
+ #include <stdbool.h>
31
+
32
+ #if !defined(SWIFT_TYPEDEFS)
33
+ # define SWIFT_TYPEDEFS 1
34
+ # if __has_include(<uchar.h>)
35
+ # include <uchar.h>
36
+ # elif !defined(__cplusplus)
37
+ typedef uint_least16_t char16_t;
38
+ typedef uint_least32_t char32_t;
39
+ # endif
40
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
41
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
42
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
43
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
44
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
45
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
46
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
47
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
48
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
49
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
50
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
51
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
52
+ #endif
53
+
54
+ #if !defined(SWIFT_PASTE)
55
+ # define SWIFT_PASTE_HELPER(x, y) x##y
56
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
57
+ #endif
58
+ #if !defined(SWIFT_METATYPE)
59
+ # define SWIFT_METATYPE(X) Class
60
+ #endif
61
+ #if !defined(SWIFT_CLASS_PROPERTY)
62
+ # if __has_feature(objc_class_property)
63
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
64
+ # else
65
+ # define SWIFT_CLASS_PROPERTY(...)
66
+ # endif
67
+ #endif
68
+
69
+ #if __has_attribute(objc_runtime_name)
70
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
71
+ #else
72
+ # define SWIFT_RUNTIME_NAME(X)
73
+ #endif
74
+ #if __has_attribute(swift_name)
75
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
76
+ #else
77
+ # define SWIFT_COMPILE_NAME(X)
78
+ #endif
79
+ #if __has_attribute(objc_method_family)
80
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
81
+ #else
82
+ # define SWIFT_METHOD_FAMILY(X)
83
+ #endif
84
+ #if __has_attribute(noescape)
85
+ # define SWIFT_NOESCAPE __attribute__((noescape))
86
+ #else
87
+ # define SWIFT_NOESCAPE
88
+ #endif
89
+ #if __has_attribute(ns_consumed)
90
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
91
+ #else
92
+ # define SWIFT_RELEASES_ARGUMENT
93
+ #endif
94
+ #if __has_attribute(warn_unused_result)
95
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
96
+ #else
97
+ # define SWIFT_WARN_UNUSED_RESULT
98
+ #endif
99
+ #if __has_attribute(noreturn)
100
+ # define SWIFT_NORETURN __attribute__((noreturn))
101
+ #else
102
+ # define SWIFT_NORETURN
103
+ #endif
104
+ #if !defined(SWIFT_CLASS_EXTRA)
105
+ # define SWIFT_CLASS_EXTRA
106
+ #endif
107
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
108
+ # define SWIFT_PROTOCOL_EXTRA
109
+ #endif
110
+ #if !defined(SWIFT_ENUM_EXTRA)
111
+ # define SWIFT_ENUM_EXTRA
112
+ #endif
113
+ #if !defined(SWIFT_CLASS)
114
+ # if __has_attribute(objc_subclassing_restricted)
115
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
116
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
117
+ # else
118
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
119
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
120
+ # endif
121
+ #endif
122
+ #if !defined(SWIFT_RESILIENT_CLASS)
123
+ # if __has_attribute(objc_class_stub)
124
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
125
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
126
+ # else
127
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
128
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
129
+ # endif
130
+ #endif
131
+
132
+ #if !defined(SWIFT_PROTOCOL)
133
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
134
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
135
+ #endif
136
+
137
+ #if !defined(SWIFT_EXTENSION)
138
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
139
+ #endif
140
+
141
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
142
+ # if __has_attribute(objc_designated_initializer)
143
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
144
+ # else
145
+ # define OBJC_DESIGNATED_INITIALIZER
146
+ # endif
147
+ #endif
148
+ #if !defined(SWIFT_ENUM_ATTR)
149
+ # if defined(__has_attribute) && __has_attribute(enum_extensibility)
150
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
151
+ # else
152
+ # define SWIFT_ENUM_ATTR(_extensibility)
153
+ # endif
154
+ #endif
155
+ #if !defined(SWIFT_ENUM)
156
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
157
+ # if __has_feature(generalized_swift_name)
158
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
159
+ # else
160
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
161
+ # endif
162
+ #endif
163
+ #if !defined(SWIFT_UNAVAILABLE)
164
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
165
+ #endif
166
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
167
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
168
+ #endif
169
+ #if !defined(SWIFT_AVAILABILITY)
170
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
171
+ #endif
172
+ #if !defined(SWIFT_WEAK_IMPORT)
173
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
174
+ #endif
175
+ #if !defined(SWIFT_DEPRECATED)
176
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
177
+ #endif
178
+ #if !defined(SWIFT_DEPRECATED_MSG)
179
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
180
+ #endif
181
+ #if __has_feature(attribute_diagnose_if_objc)
182
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
183
+ #else
184
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
185
+ #endif
186
+ #if !defined(IBSegueAction)
187
+ # define IBSegueAction
188
+ #endif
189
+ #if __has_feature(modules)
190
+ #if __has_warning("-Watimport-in-framework-header")
191
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
192
+ #endif
193
+ @import CoreFoundation;
194
+ @import CoreGraphics;
195
+ @import CoreVideo;
196
+ @import Dispatch;
197
+ @import Foundation;
198
+ @import GLKit;
199
+ @import ObjectiveC;
200
+ @import OpenGLES;
201
+ @import UIKit;
202
+ #endif
203
+
204
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
205
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
206
+ #if __has_warning("-Wpragma-clang-attribute")
207
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
208
+ #endif
209
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
210
+ #pragma clang diagnostic ignored "-Wnullability"
211
+
212
+ #if __has_attribute(external_source_symbol)
213
+ # pragma push_macro("any")
214
+ # undef any
215
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CanvasNative",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
216
+ # pragma pop_macro("any")
217
+ #endif
218
+
219
+ @class NSNumber;
220
+ @class NSCoder;
221
+
222
+ SWIFT_CLASS_NAMED("CanvasCPUView")
223
+ @interface CanvasCPUView : UIView
224
+ @property (nonatomic) BOOL ignorePixelScaling;
225
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
226
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
227
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
228
+ - (void)drawRect:(CGRect)rect;
229
+ @end
230
+
231
+ typedef SWIFT_ENUM_NAMED(NSInteger, CanvasColorStyleType, "CanvasColorStyleType", open) {
232
+ CanvasColorStyleTypeColor = 0,
233
+ CanvasColorStyleTypeGradient = 1,
234
+ CanvasColorStyleTypePattern = 2,
235
+ };
236
+
237
+ @class EAGLContext;
238
+
239
+ SWIFT_CLASS_NAMED("CanvasGLKView")
240
+ @interface CanvasGLKView : GLKView
241
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
242
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
243
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
244
+ - (void)setNeedsDisplay;
245
+ - (void)setNeedsDisplayInRect:(CGRect)rect;
246
+ - (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
247
+ @end
248
+
249
+
250
+ SWIFT_CLASS("_TtC12CanvasNative10GLRenderer")
251
+ @interface GLRenderer : NSObject <GLKViewDelegate>
252
+ - (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
253
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
254
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
255
+ @end
256
+
257
+
258
+ SWIFT_PROTOCOL("_TtP12CanvasNative17ICanvasColorStyle_")
259
+ @protocol ICanvasColorStyle
260
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
261
+ @end
262
+
263
+ @class NSString;
264
+
265
+ SWIFT_CLASS_NAMED("TNSAnimationFrame")
266
+ @interface TNSAnimationFrame : NSObject
267
+ + (void)requestAnimationFrameToLoop:(void (^ _Nonnull)(float))toLoop;
268
+ + (void)cancelAnimationFrameWithId:(NSString * _Nonnull)id;
269
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
270
+ @end
271
+
272
+ @class TNSDOMMatrix;
273
+ @protocol TNSCanvasListener;
274
+ @class TNSCanvasRenderingContext;
275
+ @class NSDictionary;
276
+
277
+ SWIFT_CLASS_NAMED("TNSCanvas")
278
+ @interface TNSCanvas : UIView
279
+ + (NSMapTable<NSString *, TNSCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
280
+ - (void * _Nullable)getViewPtr SWIFT_WARN_UNUSED_RESULT;
281
+ @property (nonatomic) BOOL ignorePixelScaling;
282
+ + (TNSDOMMatrix * _Nonnull)createSVGMatrix SWIFT_WARN_UNUSED_RESULT;
283
+ @property (nonatomic) BOOL handleInvalidationManually;
284
+ - (void)didDraw;
285
+ - (NSString * _Nonnull)toDataURL SWIFT_WARN_UNUSED_RESULT;
286
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
287
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type :(float)format SWIFT_WARN_UNUSED_RESULT;
288
+ - (void)toDataURLAsync:(void (^ _Nonnull)(NSString * _Nonnull))callback;
289
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
290
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
291
+ - (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
292
+ @property (nonatomic, readonly) BOOL isGL;
293
+ - (GLint)getId SWIFT_WARN_UNUSED_RESULT;
294
+ @property (nonatomic, readonly) float width;
295
+ @property (nonatomic, readonly) float height;
296
+ - (void)updateDirection:(NSString * _Nonnull)direction;
297
+ @property (nonatomic) int64_t context;
298
+ - (void)doDraw;
299
+ - (void)flush;
300
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
301
+ - (nonnull instancetype)initWithFrame:(CGRect)frame useCpu:(BOOL)useCpu OBJC_DESIGNATED_INITIALIZER;
302
+ - (void)setListener:(id <TNSCanvasListener> _Nullable)listener;
303
+ @property (nonatomic, readonly) float fps;
304
+ - (void)layoutSubviews;
305
+ - (void)resume;
306
+ - (void)pause;
307
+ - (void)moveToMain;
308
+ - (void)moveOffMain;
309
+ - (void)handleMoveOffMain;
310
+ - (void)handleMoveToMain;
311
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
312
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type contextAttributes:(NSDictionary * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
313
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
314
+ @end
315
+
316
+
317
+ SWIFT_PROTOCOL_NAMED("TNSCanvasListener")
318
+ @protocol TNSCanvasListener
319
+ - (void)contextReady;
320
+ @end
321
+
322
+
323
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext")
324
+ @interface TNSCanvasRenderingContext : NSObject
325
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
326
+ @end
327
+
328
+ enum TNSCompositeOperationType : NSInteger;
329
+ enum TNSImageSmoothingQuality : uint32_t;
330
+ enum TNSLineCap : NSInteger;
331
+ enum TNSLineJoin : NSInteger;
332
+ enum TNSTextAlignment : NSInteger;
333
+ enum TNSTextBaseLine : NSInteger;
334
+ @class TNSPath2D;
335
+ enum TNSFillRule : NSInteger;
336
+ @class TNSLinearGradient;
337
+ @class TNSRadialGradient;
338
+ enum TNSPatternRepetition : NSInteger;
339
+ @class TNSImageData;
340
+ @class TNSTextMetrics;
341
+
342
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
343
+ @interface TNSCanvasRenderingContext2D : TNSCanvasRenderingContext
344
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
345
+ @property (nonatomic, copy) NSString * _Nonnull font;
346
+ @property (nonatomic, copy) NSString * _Nonnull filter;
347
+ @property (nonatomic) float globalAlpha;
348
+ @property (nonatomic) enum TNSCompositeOperationType globalCompositeOperation;
349
+ @property (nonatomic) BOOL imageSmoothingEnabled;
350
+ @property (nonatomic) enum TNSImageSmoothingQuality imageSmoothingQuality;
351
+ @property (nonatomic) enum TNSLineCap lineCap;
352
+ @property (nonatomic) float lineDashOffset;
353
+ @property (nonatomic) float lineWidth;
354
+ @property (nonatomic) enum TNSLineJoin lineJoin;
355
+ @property (nonatomic) float miterLimit;
356
+ @property (nonatomic) float shadowBlur;
357
+ @property (nonatomic, copy) NSString * _Nonnull shadowColor;
358
+ @property (nonatomic) float shadowOffsetX;
359
+ @property (nonatomic) float shadowOffsetY;
360
+ @property (nonatomic) enum TNSTextAlignment textAlign;
361
+ @property (nonatomic) enum TNSTextBaseLine textBaseline;
362
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull fillStyle;
363
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull strokeStyle;
364
+ - (void)fillRect:(float)x :(float)y :(float)width :(float)height;
365
+ - (void)strokeRect:(float)x :(float)y :(float)width :(float)height;
366
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y;
367
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
368
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y;
369
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
370
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
371
+ - (void)fill;
372
+ - (void)fillWithValue:(id _Nonnull)value;
373
+ - (void)fill:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
374
+ - (void)stroke;
375
+ - (void)stroke:(TNSPath2D * _Nullable)path;
376
+ - (void)beginPath;
377
+ - (void)moveTo:(float)x :(float)y;
378
+ - (void)lineTo:(float)x :(float)y;
379
+ - (void)closePath;
380
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
381
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
382
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
383
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
384
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
385
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
386
+ - (void)clip;
387
+ - (void)clip:(id _Nonnull)value;
388
+ - (void)clip:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
389
+ - (void)clearRect:(float)x :(float)y :(float)width :(float)height;
390
+ - (void)setLineDash:(NSArray<NSNumber *> * _Nonnull)segments;
391
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
392
+ - (TNSLinearGradient * _Nonnull)createLinearGradient:(float)x0 :(float)y0 :(float)x1 :(float)y1 SWIFT_WARN_UNUSED_RESULT;
393
+ - (TNSRadialGradient * _Nonnull)createRadialGradient:(float)x0 :(float)y0 :(float)r0 :(float)x1 :(float)y1 :(float)r1 SWIFT_WARN_UNUSED_RESULT;
394
+ - (id _Nullable)createPattern:(id _Nonnull)value :(enum TNSPatternRepetition)repetition SWIFT_WARN_UNUSED_RESULT;
395
+ - (void)setTransform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
396
+ - (void)scale:(float)x :(float)y;
397
+ - (void)rotate:(float)angle;
398
+ - (void)translate:(float)x :(float)y;
399
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
400
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy;
401
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
402
+ - (void)drawImage:(id _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
403
+ - (TNSImageData * _Nonnull)createImageData:(int32_t)width :(int32_t)height SWIFT_WARN_UNUSED_RESULT;
404
+ - (TNSImageData * _Nonnull)createImageData:(TNSImageData * _Nonnull)imageData SWIFT_WARN_UNUSED_RESULT;
405
+ - (TNSImageData * _Nonnull)getImageData:(float)sx :(float)sy :(float)sw :(float)sh SWIFT_WARN_UNUSED_RESULT;
406
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy;
407
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy :(float)dirtyX :(float)dirtyY :(float)dirtyWidth :(float)dirtyHeight;
408
+ - (NSArray<NSNumber *> * _Nonnull)getLineDash SWIFT_WARN_UNUSED_RESULT;
409
+ - (void)save;
410
+ - (void)restore;
411
+ - (TNSTextMetrics * _Nonnull)measureText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
412
+ - (void)resetTransform;
413
+ - (void)transform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
414
+ - (BOOL)isPointInPath:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
415
+ - (BOOL)isPointInPath:(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
416
+ - (BOOL)isPointInPath:(TNSPath2D * _Nonnull)path :(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
417
+ - (BOOL)isPointInStroke:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
418
+ - (BOOL)isPointInStroke:(TNSPath2D * _Nonnull)path :(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
419
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
420
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
421
+ @end
422
+
423
+
424
+ SWIFT_CLASS_NAMED("TNSColorStyle")
425
+ @interface TNSColorStyle : NSObject
426
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
427
+ @end
428
+
429
+
430
+ SWIFT_CLASS_NAMED("TNSColor")
431
+ @interface TNSColor : NSObject <ICanvasColorStyle>
432
+ - (nonnull instancetype)init:(NSString * _Nonnull)color OBJC_DESIGNATED_INITIALIZER;
433
+ @property (nonatomic, readonly, copy) NSString * _Nonnull color;
434
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
435
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
436
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
437
+ @end
438
+
439
+
440
+ SWIFT_CLASS_NAMED("TNSGradient")
441
+ @interface TNSGradient : NSObject <ICanvasColorStyle>
442
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
443
+ - (void)addColorStop:(float)offset :(NSString * _Nonnull)color;
444
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
445
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
446
+ @end
447
+
448
+
449
+ SWIFT_CLASS_NAMED("TNSLinearGradient")
450
+ @interface TNSLinearGradient : TNSGradient
451
+ @end
452
+
453
+
454
+ SWIFT_CLASS_NAMED("TNSRadialGradient")
455
+ @interface TNSRadialGradient : TNSGradient
456
+ @end
457
+
458
+
459
+ SWIFT_CLASS_NAMED("TNSPattern")
460
+ @interface TNSPattern : NSObject <ICanvasColorStyle>
461
+ - (void)setTransformWithMatrix:(TNSDOMMatrix * _Nonnull)matrix;
462
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
463
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
464
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
465
+ @end
466
+
467
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSCompositeOperationType, "TNSCompositeOperationType", open) {
468
+ TNSCompositeOperationTypeSourceOver = 0,
469
+ TNSCompositeOperationTypeSourceIn = 1,
470
+ TNSCompositeOperationTypeSourceOut = 2,
471
+ TNSCompositeOperationTypeSourceAtop = 3,
472
+ TNSCompositeOperationTypeDestinationOver = 4,
473
+ TNSCompositeOperationTypeDestinationIn = 5,
474
+ TNSCompositeOperationTypeDestinationOut = 6,
475
+ TNSCompositeOperationTypeDestinationAtop = 7,
476
+ TNSCompositeOperationTypeLighter = 8,
477
+ TNSCompositeOperationTypeCopy = 9,
478
+ TNSCompositeOperationTypeXor = 10,
479
+ TNSCompositeOperationTypeMultiply = 11,
480
+ TNSCompositeOperationTypeScreen = 12,
481
+ TNSCompositeOperationTypeOverlay = 13,
482
+ TNSCompositeOperationTypeDarken = 14,
483
+ TNSCompositeOperationTypeLighten = 15,
484
+ TNSCompositeOperationTypeColorDodge = 16,
485
+ TNSCompositeOperationTypeColorBurn = 17,
486
+ TNSCompositeOperationTypeHardLight = 18,
487
+ TNSCompositeOperationTypeSoftLight = 19,
488
+ TNSCompositeOperationTypeDifference = 20,
489
+ TNSCompositeOperationTypeExclusion = 21,
490
+ TNSCompositeOperationTypeHue = 22,
491
+ TNSCompositeOperationTypeSaturation = 23,
492
+ TNSCompositeOperationTypeColor = 24,
493
+ TNSCompositeOperationTypeLuminosity = 25,
494
+ };
495
+
496
+
497
+ SWIFT_CLASS_NAMED("TNSDOMMatrix")
498
+ @interface TNSDOMMatrix : NSObject
499
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
500
+ @property (nonatomic) float a;
501
+ @property (nonatomic) float b;
502
+ @property (nonatomic) float c;
503
+ @property (nonatomic) float d;
504
+ @property (nonatomic) float e;
505
+ @property (nonatomic) float f;
506
+ @property (nonatomic) float m11;
507
+ @property (nonatomic) float m12;
508
+ @property (nonatomic) float m13;
509
+ @property (nonatomic) float m14;
510
+ @property (nonatomic) float m21;
511
+ @property (nonatomic) float m22;
512
+ @property (nonatomic) float m23;
513
+ @property (nonatomic) float m24;
514
+ @property (nonatomic) float m31;
515
+ @property (nonatomic) float m32;
516
+ @property (nonatomic) float m33;
517
+ @property (nonatomic) float m34;
518
+ @property (nonatomic) float m41;
519
+ @property (nonatomic) float m42;
520
+ @property (nonatomic) float m43;
521
+ @property (nonatomic) float m44;
522
+ @end
523
+
524
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSFillRule, "TNSFillRule", open) {
525
+ TNSFillRuleNonZero = 0,
526
+ TNSFillRuleEvenOdd = 1,
527
+ };
528
+
529
+
530
+ SWIFT_CLASS_NAMED("TNSFramebufferAttachmentParameter")
531
+ @interface TNSFramebufferAttachmentParameter : NSObject
532
+ @property (nonatomic, readonly) BOOL isTexture;
533
+ @property (nonatomic, readonly) BOOL isRenderbuffer;
534
+ @property (nonatomic, readonly) int32_t value;
535
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
536
+ - (nonnull instancetype)initWithIsTexture:(BOOL)isTexture isRenderbuffer:(BOOL)isRenderbuffer value:(int32_t)value OBJC_DESIGNATED_INITIALIZER;
537
+ @end
538
+
539
+ @class UIImage;
540
+ enum TNSImageAssetFormat : NSInteger;
541
+
542
+ SWIFT_CLASS_NAMED("TNSImageAsset")
543
+ @interface TNSImageAsset : NSObject
544
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) dispatch_queue_t _Nullable _queue;)
545
+ + (dispatch_queue_t _Nullable)_queue SWIFT_WARN_UNUSED_RESULT;
546
+ + (void)set_queue:(dispatch_queue_t _Nullable)value;
547
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
548
+ - (BOOL)loadImageFromPathWithPath:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
549
+ - (BOOL)loadImageFromUrlWithUrl:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
550
+ - (void)loadImageFromUrlAsyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
551
+ - (void)loadImageFromPathAsyncWithPath:(NSString * _Nonnull)path callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
552
+ - (BOOL)loadImageFromBytesWithArray:(NSArray<NSNumber *> * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
553
+ - (void)loadImageFromBytesAsyncWithArray:(NSArray<NSNumber *> * _Nonnull)array callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
554
+ - (BOOL)loadImageFromImageWithImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
555
+ - (void)loadImageFromImageAsyncWithImage:(UIImage * _Nonnull)image callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
556
+ - (uint8_t * _Nullable)getRawBytes SWIFT_WARN_UNUSED_RESULT;
557
+ @property (nonatomic, readonly) int32_t width;
558
+ @property (nonatomic, readonly) int32_t height;
559
+ - (void)flipX;
560
+ - (void)flipY;
561
+ - (void)scaleWithX:(uint32_t)x y:(uint32_t)y;
562
+ - (BOOL)saveWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format SWIFT_WARN_UNUSED_RESULT;
563
+ - (void)saveAsyncWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format callback:(void (^ _Nonnull)(BOOL))callback;
564
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
565
+ @end
566
+
567
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageAssetFormat, "TNSImageAssetFormat", open) {
568
+ TNSImageAssetFormatJPG = 0,
569
+ TNSImageAssetFormatPNG = 1,
570
+ TNSImageAssetFormatICO = 2,
571
+ TNSImageAssetFormatBMP = 3,
572
+ TNSImageAssetFormatTIFF = 4,
573
+ };
574
+
575
+ @class TNSImageBitmapOptions;
576
+ @class NSData;
577
+
578
+ SWIFT_CLASS_NAMED("TNSImageBitmap")
579
+ @interface TNSImageBitmap : NSObject
580
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
581
+ + (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
582
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
583
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
584
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
585
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
586
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
587
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
588
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
589
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
590
+ + (void)createFromData:(NSData * _Nonnull)data :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
591
+ + (void)createFromData:(NSData * _Nonnull)data :(float)imageWidth :(float)imageHeight :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
592
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
593
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
594
+ + (void)createFromBytes:(NSArray<NSNumber *> * _Nonnull)bytes :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
595
+ + (void)createFromBytes:(NSArray<NSNumber *> * _Nonnull)bytes :(float)imageWidth :(float)imageHeight :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
596
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
597
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
598
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
599
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
600
+ @property (nonatomic, readonly) int32_t width;
601
+ @property (nonatomic, readonly) int32_t height;
602
+ - (void)close;
603
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
604
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
605
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
606
+ @end
607
+
608
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapColorSpaceConversion, "TNSImageBitmapColorSpaceConversion", open) {
609
+ TNSImageBitmapColorSpaceConversionDefault = 0,
610
+ TNSImageBitmapColorSpaceConversionNone = 1,
611
+ };
612
+
613
+ enum TNSImageBitmapPremultiplyAlpha : NSInteger;
614
+ enum TNSImageBitmapResizeQuality : NSInteger;
615
+
616
+ SWIFT_CLASS_NAMED("TNSImageBitmapOptions")
617
+ @interface TNSImageBitmapOptions : NSObject
618
+ @property (nonatomic) BOOL flipY;
619
+ @property (nonatomic) enum TNSImageBitmapPremultiplyAlpha premultiplyAlpha;
620
+ @property (nonatomic) enum TNSImageBitmapColorSpaceConversion colorSpaceConversion;
621
+ @property (nonatomic) enum TNSImageBitmapResizeQuality resizeQuality;
622
+ @property (nonatomic) float resizeWidth;
623
+ @property (nonatomic) float resizeHeight;
624
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
625
+ @end
626
+
627
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapPremultiplyAlpha, "TNSImageBitmapPremultiplyAlpha", open) {
628
+ TNSImageBitmapPremultiplyAlphaDefault = 0,
629
+ TNSImageBitmapPremultiplyAlphaPremultiply = 1,
630
+ TNSImageBitmapPremultiplyAlphaNone = 2,
631
+ };
632
+
633
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapResizeQuality, "TNSImageBitmapResizeQuality", open) {
634
+ TNSImageBitmapResizeQualityLow = 0,
635
+ TNSImageBitmapResizeQualityMedium = 1,
636
+ TNSImageBitmapResizeQualityHigh = 2,
637
+ TNSImageBitmapResizeQualityPixelated = 3,
638
+ };
639
+
640
+
641
+ SWIFT_CLASS_NAMED("TNSImageData")
642
+ @interface TNSImageData : NSObject
643
+ @property (nonatomic, readonly, strong) NSData * _Nonnull data;
644
+ @property (nonatomic, readonly) int32_t width;
645
+ @property (nonatomic, readonly) int32_t height;
646
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
647
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
648
+ @end
649
+
650
+ typedef SWIFT_ENUM_NAMED(uint32_t, TNSImageSmoothingQuality, "TNSImageSmoothingQuality", open) {
651
+ TNSImageSmoothingQualityLow = 0,
652
+ TNSImageSmoothingQualityMedium = 1,
653
+ TNSImageSmoothingQualityHigh = 2,
654
+ };
655
+
656
+
657
+ SWIFT_CLASS_NAMED("TNSIndexedParameter")
658
+ @interface TNSIndexedParameter : NSObject
659
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
660
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
661
+ @end
662
+
663
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineCap, "TNSLineCap", open) {
664
+ TNSLineCapButt = 0,
665
+ TNSLineCapRound = 1,
666
+ TNSLineCapSquare = 2,
667
+ };
668
+
669
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineJoin, "TNSLineJoin", open) {
670
+ TNSLineJoinRound = 0,
671
+ TNSLineJoinBevel = 1,
672
+ TNSLineJoinMiter = 2,
673
+ };
674
+
675
+
676
+ SWIFT_CLASS_NAMED("TNSPath2D")
677
+ @interface TNSPath2D : NSObject
678
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
679
+ - (nonnull instancetype)initWithPath:(TNSPath2D * _Nonnull)path OBJC_DESIGNATED_INITIALIZER;
680
+ - (nonnull instancetype)initWithData:(NSString * _Nonnull)data OBJC_DESIGNATED_INITIALIZER;
681
+ - (void)addPath:(TNSPath2D * _Nonnull)path;
682
+ - (void)addPath:(TNSPath2D * _Nonnull)path :(TNSDOMMatrix * _Nullable)transform;
683
+ - (void)closePath;
684
+ - (void)moveTo:(float)x :(float)y;
685
+ - (void)lineTo:(float)x :(float)y;
686
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
687
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
688
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
689
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
690
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
691
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
692
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
693
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
694
+ @end
695
+
696
+ typedef SWIFT_ENUM(NSInteger, TNSPatternRepetition, open) {
697
+ TNSPatternRepetitionRepeat = 0,
698
+ TNSPatternRepetitionRepeatX = 1,
699
+ TNSPatternRepetitionRepeatY = 2,
700
+ TNSPatternRepetitionNoRepeat = 3,
701
+ };
702
+
703
+
704
+ SWIFT_CLASS_NAMED("TNSRender")
705
+ @interface TNSRender : NSObject
706
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
707
+ - (void)createSurface;
708
+ @end
709
+
710
+
711
+ SWIFT_CLASS_NAMED("TNSSVG")
712
+ @interface TNSSVG : UIView
713
+ @property (nonatomic) BOOL ignorePixelScaling;
714
+ @property (nonatomic, copy) NSString * _Nullable src;
715
+ @property (nonatomic, copy) NSString * _Nullable srcPath;
716
+ - (void)layoutSubviews;
717
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
718
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
719
+ - (void)drawRect:(CGRect)rect;
720
+ @end
721
+
722
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
723
+ TNSTextAlignmentStart = 0,
724
+ TNSTextAlignmentLeft = 1,
725
+ TNSTextAlignmentCenter = 2,
726
+ TNSTextAlignmentRight = 3,
727
+ TNSTextAlignmentEnd = 4,
728
+ };
729
+
730
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextBaseLine, "TNSTextBaseLine", open) {
731
+ TNSTextBaseLineTop = 0,
732
+ TNSTextBaseLineHanging = 1,
733
+ TNSTextBaseLineMiddle = 2,
734
+ TNSTextBaseLineAlphabetic = 3,
735
+ TNSTextBaseLineIdeographic = 4,
736
+ TNSTextBaseLineBottom = 5,
737
+ };
738
+
739
+
740
+ SWIFT_CLASS_NAMED("TNSTextDecoder")
741
+ @interface TNSTextDecoder : NSObject
742
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
743
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
744
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
745
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer SWIFT_WARN_UNUSED_RESULT;
746
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
747
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset length:(NSInteger)length SWIFT_WARN_UNUSED_RESULT;
748
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
749
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
750
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
751
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
752
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
753
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
754
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
755
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
756
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
757
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
758
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
759
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
760
+ - (NSString * _Nonnull)decodeWithBytes:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
761
+ - (NSString * _Nonnull)decodeWithI8:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
762
+ - (NSString * _Nonnull)decodeWithU16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
763
+ - (NSString * _Nonnull)decodeWithI16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
764
+ - (NSString * _Nonnull)decodeWithI32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
765
+ - (NSString * _Nonnull)decodeWithU32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
766
+ @end
767
+
768
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextDirection, "TNSTextDirection", open) {
769
+ TNSTextDirectionLtr = 0,
770
+ TNSTextDirectionRtl = 1,
771
+ };
772
+
773
+
774
+ SWIFT_CLASS_NAMED("TNSTextEncoder")
775
+ @interface TNSTextEncoder : NSObject
776
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
777
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
778
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
779
+ - (NSData * _Nonnull)encodeWithText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
780
+ - (NSData * _Nonnull)encodeWithPointer:(int8_t const * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
781
+ @end
782
+
783
+
784
+ SWIFT_CLASS_NAMED("TNSTextMetrics")
785
+ @interface TNSTextMetrics : NSObject
786
+ @property (nonatomic, readonly) float width;
787
+ @property (nonatomic, readonly) float actualBoundingBoxLeft;
788
+ @property (nonatomic, readonly) float actualBoundingBoxRight;
789
+ @property (nonatomic, readonly) float actualBoundingBoxAscent;
790
+ @property (nonatomic, readonly) float actualBoundingBoxDescent;
791
+ @property (nonatomic, readonly) float fontBoundingBoxAscent;
792
+ @property (nonatomic, readonly) float fontBoundingBoxDescent;
793
+ @property (nonatomic, readonly) float emHeightAscent;
794
+ @property (nonatomic, readonly) float emHeightDescent;
795
+ @property (nonatomic, readonly) float hangingBaseline;
796
+ @property (nonatomic, readonly) float alphabeticBaseline;
797
+ @property (nonatomic, readonly) float ideographicBaseline;
798
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
799
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
800
+ @end
801
+
802
+ @class NSNull;
803
+ @class TNSWebGLActiveInfo;
804
+ @class TNSWebGLShaderPrecisionFormat;
805
+
806
+ SWIFT_CLASS_NAMED("TNSWebGLRenderingContext")
807
+ @interface TNSWebGLRenderingContext : TNSCanvasRenderingContext
808
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
809
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
810
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
811
+ @property (nonatomic, readonly) int32_t drawingBufferWidth;
812
+ @property (nonatomic, readonly) int32_t drawingBufferHeight;
813
+ - (void)activeTexture:(uint32_t)texture;
814
+ - (void)attachShader:(uint32_t)program :(uint32_t)shader;
815
+ - (void)bindAttribLocation:(uint32_t)program :(uint32_t)index :(NSString * _Nonnull)name;
816
+ - (void)bindBuffer:(uint32_t)target :(uint32_t)buffer;
817
+ - (void)bindFramebuffer:(uint32_t)target :(uint32_t)framebuffer;
818
+ - (void)bindRenderbuffer:(uint32_t)target :(uint32_t)renderbuffer;
819
+ - (void)bindTexture:(uint32_t)target :(uint32_t)texture;
820
+ - (void)blendColor:(float)red :(float)green :(float)blue :(float)alpha;
821
+ - (void)blendEquation:(uint32_t)mode;
822
+ - (void)blendEquationSeparate:(uint32_t)modeRGB :(uint32_t)modeAlpha;
823
+ - (void)blendFunc:(uint32_t)sfactor :(uint32_t)dfactor;
824
+ - (void)blendFuncSeparate:(uint32_t)srcRGB :(uint32_t)dstRGB :(uint32_t)srcAlpha :(uint32_t)dstAlpha;
825
+ - (void)bufferData:(uint32_t)target size:(NSInteger)size :(uint32_t)usage;
826
+ - (void)bufferData:(uint32_t)target srcData:(NSNull * _Nonnull)srcData :(uint32_t)usage;
827
+ - (void)bufferData:(uint32_t)target i8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
828
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage;
829
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage offset:(NSInteger)offset;
830
+ - (void)bufferData:(uint32_t)target u8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
831
+ - (void)bufferData:(uint32_t)target i16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
832
+ - (void)bufferData:(uint32_t)target u16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
833
+ - (void)bufferData:(uint32_t)target i32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
834
+ - (void)bufferData:(uint32_t)target u32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
835
+ - (void)bufferData:(uint32_t)target f32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
836
+ - (void)bufferData:(uint32_t)target f64:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
837
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset :(NSNull * _Nonnull)srcData;
838
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i8:(NSArray<NSNumber *> * _Nonnull)srcData;
839
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size;
840
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size os:(NSInteger)os;
841
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u8:(NSArray<NSNumber *> * _Nonnull)srcData;
842
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i16:(NSArray<NSNumber *> * _Nonnull)srcData;
843
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u16:(NSArray<NSNumber *> * _Nonnull)srcData;
844
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i32:(NSArray<NSNumber *> * _Nonnull)srcData;
845
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u32:(NSArray<NSNumber *> * _Nonnull)srcData;
846
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f32:(NSArray<NSNumber *> * _Nonnull)srcData;
847
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f64:(NSArray<NSNumber *> * _Nonnull)srcData;
848
+ - (uint32_t)checkFramebufferStatus:(uint32_t)target SWIFT_WARN_UNUSED_RESULT;
849
+ - (void)clear:(uint32_t)mask;
850
+ - (void)clearColor:(float)red :(float)green :(float)blue :(float)alpha;
851
+ - (void)clearDepth:(float)depth;
852
+ - (void)clearStencil:(int32_t)stencil;
853
+ - (void)colorMask:(BOOL)red :(BOOL)green :(BOOL)blue :(BOOL)alpha;
854
+ - (void)commit;
855
+ - (void)compileShader:(uint32_t)shader;
856
+ - (void)compressedTexImage2D:(uint32_t)target :(int32_t)level :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(NSData * _Nullable)pixels;
857
+ - (void)compressedTexSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(NSData * _Nullable)pixels;
858
+ - (void)copyTexImage2D:(uint32_t)target :(int32_t)level :(uint32_t)internalformat :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(int32_t)border;
859
+ - (void)copyTexSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
860
+ - (uint32_t)createBuffer SWIFT_WARN_UNUSED_RESULT;
861
+ - (uint32_t)createFramebuffer SWIFT_WARN_UNUSED_RESULT;
862
+ - (uint32_t)createProgram SWIFT_WARN_UNUSED_RESULT;
863
+ - (uint32_t)createRenderbuffer SWIFT_WARN_UNUSED_RESULT;
864
+ - (uint32_t)createShader:(uint32_t)type SWIFT_WARN_UNUSED_RESULT;
865
+ - (uint32_t)createTexture SWIFT_WARN_UNUSED_RESULT;
866
+ - (void)cullFace:(uint32_t)mode;
867
+ - (void)deleteBuffer:(uint32_t)buffer;
868
+ - (void)deleteFramebuffer:(uint32_t)frameBuffer;
869
+ - (void)deleteProgram:(uint32_t)program;
870
+ - (void)deleteRenderbuffer:(uint32_t)renderbuffer;
871
+ - (void)deleteShader:(uint32_t)shader;
872
+ - (void)deleteTexture:(uint32_t)texture;
873
+ - (void)depthFunc:(uint32_t)fn;
874
+ - (void)depthMask:(BOOL)flag;
875
+ - (void)depthRange:(float)zNear :(float)zFar;
876
+ - (void)detachShader:(uint32_t)program :(uint32_t)shader;
877
+ - (void)disable:(uint32_t)cap;
878
+ - (void)disableVertexAttribArray:(uint32_t)index;
879
+ - (void)drawArrays:(uint32_t)mode :(int32_t)first :(int32_t)count;
880
+ - (void)drawElements:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset;
881
+ - (void)enable:(uint32_t)cap;
882
+ - (void)enableVertexAttribArray:(uint32_t)index;
883
+ - (void)finish;
884
+ - (void)flush;
885
+ - (void)framebufferRenderbuffer:(uint32_t)target :(uint32_t)attachment :(uint32_t)renderbuffertarget :(uint32_t)renderbuffer;
886
+ - (void)framebufferTexture2D:(uint32_t)target :(uint32_t)attachment :(uint32_t)textarget :(uint32_t)texture :(int32_t)level;
887
+ - (void)frontFace:(uint32_t)mode;
888
+ - (void)generateMipmap:(uint32_t)target;
889
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveAttrib:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
890
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveUniform:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
891
+ - (NSArray<NSNumber *> * _Nonnull)getAttachedShaders:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
892
+ - (int32_t)getAttribLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
893
+ - (int32_t)getBufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
894
+ - (id _Nonnull)getContextAttributes SWIFT_WARN_UNUSED_RESULT;
895
+ - (uint32_t)getError SWIFT_WARN_UNUSED_RESULT;
896
+ - (id _Nullable)getExtension:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
897
+ - (TNSFramebufferAttachmentParameter * _Nonnull)getFramebufferAttachmentParameter:(uint32_t)target :(uint32_t)attachment :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
898
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
899
+ - (NSString * _Nonnull)getProgramInfoLog:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
900
+ - (id _Nonnull)getProgramParameter:(uint32_t)program :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
901
+ - (int32_t)getRenderbufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
902
+ - (NSString * _Nonnull)getShaderInfoLog:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
903
+ - (id _Nonnull)getShaderParameter:(uint32_t)shader :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
904
+ - (TNSWebGLShaderPrecisionFormat * _Nonnull)getShaderPrecisionFormat:(uint32_t)shaderType :(uint32_t)precisionType SWIFT_WARN_UNUSED_RESULT;
905
+ - (NSString * _Nonnull)getShaderSource:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
906
+ - (NSArray<NSString *> * _Nonnull)getSupportedExtensions SWIFT_WARN_UNUSED_RESULT;
907
+ - (int32_t)getTexParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
908
+ - (id _Nonnull)getUniform:(uint32_t)program :(int32_t)location SWIFT_WARN_UNUSED_RESULT;
909
+ - (int32_t)getUniformLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
910
+ - (id _Nonnull)getVertexAttrib:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
911
+ - (NSInteger)getVertexAttribOffset:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
912
+ - (void)hint:(uint32_t)target :(uint32_t)mode;
913
+ - (BOOL)isBuffer:(uint32_t)buffer SWIFT_WARN_UNUSED_RESULT;
914
+ - (BOOL)isContextLost SWIFT_WARN_UNUSED_RESULT;
915
+ - (BOOL)isEnabled:(uint32_t)cap SWIFT_WARN_UNUSED_RESULT;
916
+ - (BOOL)isFramebuffer:(uint32_t)framebuffer SWIFT_WARN_UNUSED_RESULT;
917
+ - (BOOL)isProgram:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
918
+ - (BOOL)isRenderbuffer:(uint32_t)renderbuffer SWIFT_WARN_UNUSED_RESULT;
919
+ - (BOOL)isShader:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
920
+ - (BOOL)isTexture:(uint32_t)texture SWIFT_WARN_UNUSED_RESULT;
921
+ - (void)lineWidth:(float)width;
922
+ - (void)linkProgram:(uint32_t)program;
923
+ - (void)pixelStorei:(uint32_t)pname :(uint32_t)param;
924
+ - (void)polygonOffset:(float)factor :(float)units;
925
+ - (void)readPixels:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(void * _Nonnull)pixels;
926
+ - (void)readPixels:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(void * _Nonnull)pixels offset:(NSInteger)offset;
927
+ - (void)renderbufferStorage:(uint32_t)target :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
928
+ - (void)sampleCoverage:(float)value :(BOOL)invert;
929
+ - (void)scissor:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
930
+ - (void)shaderSource:(uint32_t)shader :(NSString * _Nonnull)source;
931
+ - (void)stencilFunc:(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
932
+ - (void)stencilFuncSeparate:(uint32_t)face :(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
933
+ - (void)stencilMask:(uint32_t)mask;
934
+ - (void)stencilMaskSeparate:(uint32_t)face :(uint32_t)mask;
935
+ - (void)stencilOp:(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
936
+ - (void)stencilOpSeparate:(uint32_t)face :(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
937
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
938
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)pixels;
939
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
940
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
941
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)pixels;
942
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)pixels;
943
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)pixels;
944
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
945
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
946
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
947
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
948
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
949
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
950
+ - (void)texParameterf:(uint32_t)target :(uint32_t)pname :(float)param;
951
+ - (void)texParameteri:(uint32_t)target :(uint32_t)pname :(int32_t)param;
952
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
953
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)pixels;
954
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type pixels:(void * _Nonnull)pixels size:(NSInteger)size;
955
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type pixels:(void * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
956
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)pixels;
957
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)pixels;
958
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
959
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
960
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
961
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
962
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
963
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
964
+ - (void)uniform1f:(int32_t)location :(float)v0;
965
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
966
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
967
+ - (void)uniform1i:(int32_t)location :(int32_t)v0;
968
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
969
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
970
+ - (void)uniform2f:(int32_t)location :(float)v0 :(float)v1;
971
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
972
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
973
+ - (void)uniform2i:(int32_t)location :(int32_t)v0 :(int32_t)v1;
974
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
975
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
976
+ - (void)uniform3f:(int32_t)location :(float)v0 :(float)v1 :(float)v2;
977
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
978
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
979
+ - (void)uniform3i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2;
980
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
981
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
982
+ - (void)uniform4f:(int32_t)location :(float)v0 :(float)v1 :(float)v2 :(float)v3;
983
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
984
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
985
+ - (void)uniform4i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
986
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
987
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
988
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
989
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
990
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
991
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
992
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
993
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
994
+ - (void)useProgram:(uint32_t)program;
995
+ - (void)validateProgram:(uint32_t)program;
996
+ - (void)vertexAttrib1f:(uint32_t)index :(float)v0;
997
+ - (void)vertexAttrib2f:(uint32_t)index :(float)v0 :(float)v1;
998
+ - (void)vertexAttrib3f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2;
999
+ - (void)vertexAttrib4f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2 :(float)v3;
1000
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value;
1001
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1002
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value;
1003
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1004
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value;
1005
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1006
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value;
1007
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1008
+ - (void)vertexAttribPointer:(uint32_t)index :(int32_t)size :(uint32_t)type :(BOOL)normalized :(int32_t)stride :(NSInteger)offset;
1009
+ - (void)viewport:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
1010
+ @property (nonatomic, readonly) uint32_t DEPTH_BUFFER_BIT;
1011
+ @property (nonatomic, readonly) uint32_t COLOR_BUFFER_BIT;
1012
+ @property (nonatomic, readonly) uint32_t STENCIL_BUFFER_BIT;
1013
+ @property (nonatomic, readonly) uint32_t POINTS;
1014
+ @property (nonatomic, readonly) uint32_t LINES;
1015
+ @property (nonatomic, readonly) uint32_t LINE_LOOP;
1016
+ @property (nonatomic, readonly) uint32_t LINE_STRIP;
1017
+ @property (nonatomic, readonly) uint32_t TRIANGLES;
1018
+ @property (nonatomic, readonly) uint32_t TRIANGLE_STRIP;
1019
+ @property (nonatomic, readonly) uint32_t TRIANGLE_FAN;
1020
+ @property (nonatomic, readonly) uint32_t ONE;
1021
+ @property (nonatomic, readonly) uint32_t ZERO;
1022
+ @property (nonatomic, readonly) uint32_t SRC_COLOR;
1023
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_COLOR;
1024
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA;
1025
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_ALPHA;
1026
+ @property (nonatomic, readonly) uint32_t DST_ALPHA;
1027
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_ALPHA;
1028
+ @property (nonatomic, readonly) uint32_t DST_COLOR;
1029
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_COLOR;
1030
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA_SATURATE;
1031
+ @property (nonatomic, readonly) uint32_t CONSTANT_COLOR;
1032
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_COLOR;
1033
+ @property (nonatomic, readonly) uint32_t CONSTANT_ALPHA;
1034
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_ALPHA;
1035
+ @property (nonatomic, readonly) uint32_t FUNC_ADD;
1036
+ @property (nonatomic, readonly) uint32_t FUNC_SUBTRACT;
1037
+ @property (nonatomic, readonly) uint32_t FUNC_REVERSE_SUBTRACT;
1038
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION;
1039
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_RGB;
1040
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_ALPHA;
1041
+ @property (nonatomic, readonly) uint32_t BLEND_DST_RGB;
1042
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_RGB;
1043
+ @property (nonatomic, readonly) uint32_t BLEND_DST_ALPHA;
1044
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_ALPHA;
1045
+ @property (nonatomic, readonly) uint32_t BLEND_COLOR;
1046
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER_BINDING;
1047
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER_BINDING;
1048
+ @property (nonatomic, readonly) uint32_t LINE_WIDTH;
1049
+ @property (nonatomic, readonly) uint32_t ALIASED_POINT_SIZE_RANGE;
1050
+ @property (nonatomic, readonly) uint32_t ALIASED_LINE_WIDTH_RANGE;
1051
+ @property (nonatomic, readonly) uint32_t CULL_FACE_MODE;
1052
+ @property (nonatomic, readonly) uint32_t FRONT_FACE;
1053
+ @property (nonatomic, readonly) uint32_t DEPTH_RANGE;
1054
+ @property (nonatomic, readonly) uint32_t DEPTH_WRITEMASK;
1055
+ @property (nonatomic, readonly) uint32_t DEPTH_CLEAR_VALUE;
1056
+ @property (nonatomic, readonly) uint32_t DEPTH_FUNC;
1057
+ @property (nonatomic, readonly) uint32_t STENCIL_CLEAR_VALUE;
1058
+ @property (nonatomic, readonly) uint32_t STENCIL_FUNC;
1059
+ @property (nonatomic, readonly) uint32_t STENCIL_FAIL;
1060
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_FAIL;
1061
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_PASS;
1062
+ @property (nonatomic, readonly) uint32_t STENCIL_REF;
1063
+ @property (nonatomic, readonly) uint32_t STENCIL_VALUE_MASK;
1064
+ @property (nonatomic, readonly) uint32_t STENCIL_WRITEMASK;
1065
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FUNC;
1066
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FAIL;
1067
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_FAIL;
1068
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_PASS;
1069
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_REF;
1070
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_VALUE_MASK;
1071
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_WRITEMASK;
1072
+ @property (nonatomic, readonly) uint32_t VIEWPORT;
1073
+ @property (nonatomic, readonly) uint32_t SCISSOR_BOX;
1074
+ @property (nonatomic, readonly) uint32_t COLOR_CLEAR_VALUE;
1075
+ @property (nonatomic, readonly) uint32_t COLOR_WRITEMASK;
1076
+ @property (nonatomic, readonly) uint32_t UNPACK_ALIGNMENT;
1077
+ @property (nonatomic, readonly) uint32_t PACK_ALIGNMENT;
1078
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_SIZE;
1079
+ @property (nonatomic, readonly) uint32_t MAX_VIEWPORT_DIMS;
1080
+ @property (nonatomic, readonly) uint32_t SUBPIXEL_BITS;
1081
+ @property (nonatomic, readonly) uint32_t RED_BITS;
1082
+ @property (nonatomic, readonly) uint32_t GREEN_BITS;
1083
+ @property (nonatomic, readonly) uint32_t BLUE_BITS;
1084
+ @property (nonatomic, readonly) uint32_t ALPHA_BITS;
1085
+ @property (nonatomic, readonly) uint32_t DEPTH_BITS;
1086
+ @property (nonatomic, readonly) uint32_t STENCIL_BITS;
1087
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_UNITS;
1088
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FACTOR;
1089
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D;
1090
+ @property (nonatomic, readonly) uint32_t SAMPLE_BUFFERS;
1091
+ @property (nonatomic, readonly) uint32_t SAMPLES;
1092
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_VALUE;
1093
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_INVERT;
1094
+ @property (nonatomic, readonly) uint32_t COMPRESSED_TEXTURE_FORMATS;
1095
+ @property (nonatomic, readonly) uint32_t VENDOR;
1096
+ @property (nonatomic, readonly) uint32_t RENDERER;
1097
+ @property (nonatomic, readonly) uint32_t VERSION;
1098
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_TYPE;
1099
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_FORMAT;
1100
+ @property (nonatomic, readonly) uint32_t BROWSER_DEFAULT_WEBGL;
1101
+ @property (nonatomic, readonly) uint32_t STATIC_DRAW;
1102
+ @property (nonatomic, readonly) uint32_t STREAM_DRAW;
1103
+ @property (nonatomic, readonly) uint32_t DYNAMIC_DRAW;
1104
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER;
1105
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER;
1106
+ @property (nonatomic, readonly) uint32_t BUFFER_SIZE;
1107
+ @property (nonatomic, readonly) uint32_t BUFFER_USAGE;
1108
+ @property (nonatomic, readonly) uint32_t CURRENT_VERTEX_ATTRIB;
1109
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_ENABLED;
1110
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_SIZE;
1111
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_STRIDE;
1112
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_TYPE;
1113
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_NORMALIZED;
1114
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_POINTER;
1115
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
1116
+ @property (nonatomic, readonly) uint32_t CULL_FACE;
1117
+ @property (nonatomic, readonly) uint32_t FRONT;
1118
+ @property (nonatomic, readonly) uint32_t BACK;
1119
+ @property (nonatomic, readonly) uint32_t FRONT_AND_BACK;
1120
+ @property (nonatomic, readonly) uint32_t BLEND;
1121
+ @property (nonatomic, readonly) uint32_t DEPTH_TEST;
1122
+ @property (nonatomic, readonly) uint32_t DITHER;
1123
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FILL;
1124
+ @property (nonatomic, readonly) uint32_t SAMPLE_ALPHA_TO_COVERAGE;
1125
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE;
1126
+ @property (nonatomic, readonly) uint32_t SCISSOR_TEST;
1127
+ @property (nonatomic, readonly) uint32_t STENCIL_TEST;
1128
+ @property (nonatomic, readonly) uint32_t NO_ERROR;
1129
+ @property (nonatomic, readonly) uint32_t INVALID_ENUM;
1130
+ @property (nonatomic, readonly) uint32_t INVALID_VALUE;
1131
+ @property (nonatomic, readonly) uint32_t INVALID_OPERATION;
1132
+ @property (nonatomic, readonly) uint32_t INVALID_FRAMEBUFFER_OPERATION;
1133
+ @property (nonatomic, readonly) uint32_t OUT_OF_MEMORY;
1134
+ @property (nonatomic, readonly) uint32_t CONTEXT_LOST_WEBGL;
1135
+ @property (nonatomic, readonly) uint32_t CW;
1136
+ @property (nonatomic, readonly) uint32_t CCW;
1137
+ @property (nonatomic, readonly) uint32_t DONT_CARE;
1138
+ @property (nonatomic, readonly) uint32_t FASTEST;
1139
+ @property (nonatomic, readonly) uint32_t NICEST;
1140
+ @property (nonatomic, readonly) uint32_t GENERATE_MIPMAP_HINT;
1141
+ @property (nonatomic, readonly) uint32_t BYTE;
1142
+ @property (nonatomic, readonly) uint32_t UNSIGNED_BYTE;
1143
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT;
1144
+ @property (nonatomic, readonly) uint32_t SHORT;
1145
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT;
1146
+ @property (nonatomic, readonly) uint32_t INT;
1147
+ @property (nonatomic, readonly) uint32_t FLOAT;
1148
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT;
1149
+ @property (nonatomic, readonly) uint32_t ALPHA;
1150
+ @property (nonatomic, readonly) uint32_t RGB;
1151
+ @property (nonatomic, readonly) uint32_t RGBA;
1152
+ @property (nonatomic, readonly) uint32_t LUMINANCE;
1153
+ @property (nonatomic, readonly) uint32_t LUMINANCE_ALPHA;
1154
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_4_4_4_4;
1155
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_5_5_1;
1156
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_6_5;
1157
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER;
1158
+ @property (nonatomic, readonly) uint32_t VERTEX_SHADER;
1159
+ @property (nonatomic, readonly) uint32_t COMPILE_STATUS;
1160
+ @property (nonatomic, readonly) uint32_t DELETE_STATUS;
1161
+ @property (nonatomic, readonly) uint32_t LINK_STATUS;
1162
+ @property (nonatomic, readonly) uint32_t VALIDATE_STATUS;
1163
+ @property (nonatomic, readonly) uint32_t ATTACHED_SHADERS;
1164
+ @property (nonatomic, readonly) uint32_t ACTIVE_ATTRIBUTES;
1165
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORMS;
1166
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_VECTORS;
1167
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_VECTORS;
1168
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_TEXTURE_IMAGE_UNITS;
1169
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_TEXTURE_IMAGE_UNITS;
1170
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_IMAGE_UNITS;
1171
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_ATTRIBS;
1172
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_VECTORS;
1173
+ @property (nonatomic, readonly) uint32_t SHADER_TYPE;
1174
+ @property (nonatomic, readonly) uint32_t SHADING_LANGUAGE_VERSION;
1175
+ @property (nonatomic, readonly) uint32_t CURRENT_PROGRAM;
1176
+ @property (nonatomic, readonly) uint32_t NEVER;
1177
+ @property (nonatomic, readonly) uint32_t LESS;
1178
+ @property (nonatomic, readonly) uint32_t EQUAL;
1179
+ @property (nonatomic, readonly) uint32_t LEQUAL;
1180
+ @property (nonatomic, readonly) uint32_t GREATER;
1181
+ @property (nonatomic, readonly) uint32_t NOTEQUAL;
1182
+ @property (nonatomic, readonly) uint32_t GEQUAL;
1183
+ @property (nonatomic, readonly) uint32_t ALWAYS;
1184
+ @property (nonatomic, readonly) uint32_t KEEP;
1185
+ @property (nonatomic, readonly) uint32_t REPLACE;
1186
+ @property (nonatomic, readonly) uint32_t INCR;
1187
+ @property (nonatomic, readonly) uint32_t DECR;
1188
+ @property (nonatomic, readonly) uint32_t INVERT;
1189
+ @property (nonatomic, readonly) uint32_t INCR_WRAP;
1190
+ @property (nonatomic, readonly) uint32_t DECR_WRAP;
1191
+ @property (nonatomic, readonly) uint32_t NEAREST;
1192
+ @property (nonatomic, readonly) uint32_t LINEAR;
1193
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_NEAREST;
1194
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_NEAREST;
1195
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_LINEAR;
1196
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_LINEAR;
1197
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAG_FILTER;
1198
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_FILTER;
1199
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_S;
1200
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_T;
1201
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D;
1202
+ @property (nonatomic, readonly) uint32_t TEXTURE;
1203
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP;
1204
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_CUBE_MAP;
1205
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_X;
1206
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_X;
1207
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Y;
1208
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Y;
1209
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Z;
1210
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Z;
1211
+ @property (nonatomic, readonly) uint32_t MAX_CUBE_MAP_TEXTURE_SIZE;
1212
+ @property (nonatomic, readonly) uint32_t TEXTURE0;
1213
+ @property (nonatomic, readonly) uint32_t TEXTURE1;
1214
+ @property (nonatomic, readonly) uint32_t TEXTURE2;
1215
+ @property (nonatomic, readonly) uint32_t TEXTURE3;
1216
+ @property (nonatomic, readonly) uint32_t TEXTURE4;
1217
+ @property (nonatomic, readonly) uint32_t TEXTURE5;
1218
+ @property (nonatomic, readonly) uint32_t TEXTURE6;
1219
+ @property (nonatomic, readonly) uint32_t TEXTURE7;
1220
+ @property (nonatomic, readonly) uint32_t TEXTURE8;
1221
+ @property (nonatomic, readonly) uint32_t TEXTURE9;
1222
+ @property (nonatomic, readonly) uint32_t TEXTURE10;
1223
+ @property (nonatomic, readonly) uint32_t TEXTURE11;
1224
+ @property (nonatomic, readonly) uint32_t TEXTURE12;
1225
+ @property (nonatomic, readonly) uint32_t TEXTURE13;
1226
+ @property (nonatomic, readonly) uint32_t TEXTURE14;
1227
+ @property (nonatomic, readonly) uint32_t TEXTURE15;
1228
+ @property (nonatomic, readonly) uint32_t TEXTURE16;
1229
+ @property (nonatomic, readonly) uint32_t TEXTURE17;
1230
+ @property (nonatomic, readonly) uint32_t TEXTURE18;
1231
+ @property (nonatomic, readonly) uint32_t TEXTURE19;
1232
+ @property (nonatomic, readonly) uint32_t TEXTURE20;
1233
+ @property (nonatomic, readonly) uint32_t TEXTURE21;
1234
+ @property (nonatomic, readonly) uint32_t TEXTURE22;
1235
+ @property (nonatomic, readonly) uint32_t TEXTURE23;
1236
+ @property (nonatomic, readonly) uint32_t TEXTURE24;
1237
+ @property (nonatomic, readonly) uint32_t TEXTURE25;
1238
+ @property (nonatomic, readonly) uint32_t TEXTURE26;
1239
+ @property (nonatomic, readonly) uint32_t TEXTURE27;
1240
+ @property (nonatomic, readonly) uint32_t TEXTURE28;
1241
+ @property (nonatomic, readonly) uint32_t TEXTURE29;
1242
+ @property (nonatomic, readonly) uint32_t TEXTURE30;
1243
+ @property (nonatomic, readonly) uint32_t TEXTURE31;
1244
+ @property (nonatomic, readonly) uint32_t ACTIVE_TEXTURE;
1245
+ @property (nonatomic, readonly) uint32_t REPEAT;
1246
+ @property (nonatomic, readonly) uint32_t CLAMP_TO_EDGE;
1247
+ @property (nonatomic, readonly) uint32_t MIRRORED_REPEAT;
1248
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC2;
1249
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC3;
1250
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC4;
1251
+ @property (nonatomic, readonly) uint32_t INT_VEC2;
1252
+ @property (nonatomic, readonly) uint32_t INT_VEC3;
1253
+ @property (nonatomic, readonly) uint32_t INT_VEC4;
1254
+ @property (nonatomic, readonly) uint32_t BOOL;
1255
+ @property (nonatomic, readonly) uint32_t BOOL_VEC2;
1256
+ @property (nonatomic, readonly) uint32_t BOOL_VEC3;
1257
+ @property (nonatomic, readonly) uint32_t BOOL_VEC4;
1258
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2;
1259
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3;
1260
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4;
1261
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D;
1262
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE;
1263
+ @property (nonatomic, readonly) uint32_t LOW_FLOAT;
1264
+ @property (nonatomic, readonly) uint32_t MEDIUM_FLOAT;
1265
+ @property (nonatomic, readonly) uint32_t HIGH_FLOAT;
1266
+ @property (nonatomic, readonly) uint32_t LOW_INT;
1267
+ @property (nonatomic, readonly) uint32_t MEDIUM_INT;
1268
+ @property (nonatomic, readonly) uint32_t HIGH_INT;
1269
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER;
1270
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER;
1271
+ @property (nonatomic, readonly) uint32_t RGBA4;
1272
+ @property (nonatomic, readonly) uint32_t RGB565;
1273
+ @property (nonatomic, readonly) uint32_t RGB5_A1;
1274
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT16;
1275
+ @property (nonatomic, readonly) uint32_t STENCIL_INDEX8;
1276
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
1277
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_WIDTH;
1278
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_HEIGHT;
1279
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_INTERNAL_FORMAT;
1280
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_RED_SIZE;
1281
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_GREEN_SIZE;
1282
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BLUE_SIZE;
1283
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_ALPHA_SIZE;
1284
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_DEPTH_SIZE;
1285
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_STENCIL_SIZE;
1286
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
1287
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
1288
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
1289
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
1290
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT0;
1291
+ @property (nonatomic, readonly) uint32_t DEPTH_ATTACHMENT;
1292
+ @property (nonatomic, readonly) uint32_t STENCIL_ATTACHMENT;
1293
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
1294
+ @property (nonatomic, readonly) uint32_t NONE;
1295
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_COMPLETE;
1296
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
1297
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
1298
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
1299
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_UNSUPPORTED;
1300
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_BINDING;
1301
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BINDING;
1302
+ @property (nonatomic, readonly) uint32_t MAX_RENDERBUFFER_SIZE;
1303
+ @property (nonatomic, readonly) uint32_t UNPACK_COLORSPACE_CONVERSION_WEBGL;
1304
+ @property (nonatomic, readonly) uint32_t UNPACK_FLIP_Y_WEBGL;
1305
+ @property (nonatomic, readonly) uint32_t UNPACK_PREMULTIPLY_ALPHA_WEBGL;
1306
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1307
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1308
+ @end
1309
+
1310
+
1311
+ SWIFT_CLASS_NAMED("TNSWebGL2RenderingContext")
1312
+ @interface TNSWebGL2RenderingContext : TNSWebGLRenderingContext
1313
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
1314
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
1315
+ - (void)beginQuery:(uint32_t)target :(uint32_t)query;
1316
+ - (void)beginTransformFeedback:(uint32_t)primitiveMode;
1317
+ - (void)bindBufferBase:(uint32_t)target :(uint32_t)index :(uint32_t)buffer;
1318
+ - (void)bindBufferRange:(uint32_t)target :(uint32_t)index :(uint32_t)buffer :(NSInteger)offset :(NSInteger)size;
1319
+ - (void)bindSampler:(uint32_t)unit :(uint32_t)sampler;
1320
+ - (void)bindTransformFeedback:(uint32_t)target :(uint32_t)transformFeedback;
1321
+ - (void)bindVertexArray:(uint32_t)vertexArray;
1322
+ - (void)blitFramebuffer:(int32_t)srcX0 :(int32_t)srcY0 :(int32_t)srcX1 :(int32_t)srcY1 :(int32_t)dstX0 :(int32_t)dstY0 :(int32_t)dstX1 :(int32_t)dstY1 :(uint32_t)mask :(uint32_t)filter;
1323
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1324
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1325
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1326
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1327
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1328
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1329
+ - (void)clearBufferfi:(uint32_t)buffer :(int32_t)drawbuffer :(float)depth :(int32_t)stencil;
1330
+ - (int32_t)clientWaitSync:(GLsync _Nonnull)sync :(uint32_t)flags :(uint64_t)timeout SWIFT_WARN_UNUSED_RESULT;
1331
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(int32_t)imageSize :(int32_t)offset;
1332
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1333
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1334
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1335
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1336
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1337
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1338
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format f32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1339
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format f64:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1340
+ - (void)copyBufferSubData:(uint32_t)readTarget :(uint32_t)writeTarget :(NSInteger)readOffset :(NSInteger)writeOffset :(NSInteger)size;
1341
+ - (void)copyTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
1342
+ - (uint32_t)createQuery SWIFT_WARN_UNUSED_RESULT;
1343
+ - (uint32_t)createSampler SWIFT_WARN_UNUSED_RESULT;
1344
+ - (uint32_t)createVertexArray SWIFT_WARN_UNUSED_RESULT;
1345
+ - (uint32_t)createTransformFeedback SWIFT_WARN_UNUSED_RESULT;
1346
+ - (void)deleteQuery:(uint32_t)query;
1347
+ - (void)deleteSampler:(uint32_t)sampler;
1348
+ - (void)deleteSync:(GLsync _Nonnull)sync;
1349
+ - (void)deleteTransformFeedback:(uint32_t)transformFeedback;
1350
+ - (void)deleteVertexArray:(uint32_t)vertexArray;
1351
+ - (void)drawArraysInstanced:(uint32_t)mode :(int32_t)first :(int32_t)count :(int32_t)instanceCount;
1352
+ - (void)drawElementsInstanced:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset :(int32_t)instanceCount;
1353
+ - (void)drawRangeElements:(uint32_t)mode :(uint32_t)start :(uint32_t)end :(int32_t)count :(uint32_t)type :(NSInteger)offset;
1354
+ - (void)drawBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
1355
+ - (void)endQuery:(uint32_t)target;
1356
+ - (void)endTransformFeedback;
1357
+ - (void)fenceSync:(uint32_t)condition :(uint32_t)flags;
1358
+ - (void)framebufferTextureLayer:(uint32_t)target :(uint32_t)attachment :(uint32_t)texture :(int32_t)level :(int32_t)layer;
1359
+ - (NSString * _Nonnull)getActiveUniformBlockName:(uint32_t)program :(uint32_t)uniformBlockIndex SWIFT_WARN_UNUSED_RESULT;
1360
+ - (id _Nonnull)getActiveUniformBlockParameter:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1361
+ - (id _Nonnull)getActiveUniforms:(uint32_t)program :(NSArray<NSNumber *> * _Nonnull)uniformIndices :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1362
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length;
1363
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length offset:(NSInteger)offset;
1364
+ - (int32_t)getFragDataLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
1365
+ - (id _Nonnull)getIndexedParameter:(uint32_t)target :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
1366
+ - (id _Nonnull)getInternalformatParameter:(uint32_t)target :(uint32_t)internalformat :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1367
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1368
+ - (id _Nonnull)getQuery:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1369
+ - (id _Nonnull)getQueryParameter:(uint32_t)query :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1370
+ - (id _Nonnull)getSamplerParameter:(uint32_t)sampler :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1371
+ - (id _Nonnull)getSyncParameter:(GLsync _Nonnull)sync :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1372
+ - (id _Nonnull)getTransformFeedbackVarying:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
1373
+ - (uint32_t)getUniformBlockIndex:(uint32_t)program :(NSString * _Nonnull)uniformBlockName SWIFT_WARN_UNUSED_RESULT;
1374
+ - (NSArray<NSNumber *> * _Nonnull)getUniformIndices:(uint32_t)program :(NSArray<NSString *> * _Nonnull)uniformNames SWIFT_WARN_UNUSED_RESULT;
1375
+ - (void)invalidateFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments;
1376
+ - (void)invalidateSubFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
1377
+ - (BOOL)isQuery:(uint32_t)query SWIFT_WARN_UNUSED_RESULT;
1378
+ - (BOOL)isSampler:(uint32_t)sampler SWIFT_WARN_UNUSED_RESULT;
1379
+ - (BOOL)isSync:(GLsync _Nonnull)sync SWIFT_WARN_UNUSED_RESULT;
1380
+ - (BOOL)isTransformFeedback:(uint32_t)transformFeedback SWIFT_WARN_UNUSED_RESULT;
1381
+ - (BOOL)isVertexArray:(uint32_t)vertexArray SWIFT_WARN_UNUSED_RESULT;
1382
+ - (void)pauseTransformFeedback;
1383
+ - (void)readBuffer:(uint32_t)src;
1384
+ - (void)renderbufferStorageMultisample:(uint32_t)target :(int32_t)samples :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
1385
+ - (void)resumeTransformFeedback;
1386
+ - (void)samplerParameteri:(uint32_t)sampler :(uint32_t)pname :(int32_t)param;
1387
+ - (void)samplerParameterf:(uint32_t)sampler :(uint32_t)pname :(float)param;
1388
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
1389
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type offset:(NSInteger)offset;
1390
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
1391
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size pixelOffset:(NSInteger)pixelOffset srcOffset:(int32_t)srcOffset;
1392
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)source;
1393
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)source;
1394
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)source;
1395
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)source;
1396
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)source;
1397
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)source;
1398
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)source;
1399
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)source;
1400
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1401
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1402
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1403
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1404
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1405
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1406
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1407
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
1408
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type source:(UIImage * _Nonnull)source;
1409
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
1410
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
1411
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
1412
+ - (void)texStorage2D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height;
1413
+ - (void)texStorage3D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth;
1414
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
1415
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type offset:(int32_t)offset;
1416
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)srcData;
1417
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)srcData;
1418
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)srcData;
1419
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)srcData;
1420
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)srcData;
1421
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)srcData;
1422
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)srcData;
1423
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)srcData;
1424
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1425
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1426
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1427
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1428
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1429
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1430
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1431
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
1432
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type srcData:(UIImage * _Nonnull)srcData;
1433
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
1434
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
1435
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
1436
+ - (void)transformFeedbackVaryings:(uint32_t)program :(NSArray<NSString *> * _Nonnull)varyings :(uint32_t)bufferMode;
1437
+ - (void)uniform1ui:(int32_t)location :(uint32_t)v0;
1438
+ - (void)uniform2ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1;
1439
+ - (void)uniform3ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2;
1440
+ - (void)uniform4ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
1441
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1442
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1443
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1444
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1445
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1446
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1447
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1448
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1449
+ - (void)uniformBlockBinding:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)uniformBlockBinding;
1450
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1451
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1452
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1453
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1454
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1455
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1456
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1457
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1458
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1459
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1460
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1461
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1462
+ - (void)vertexAttribDivisor:(uint32_t)index :(uint32_t)divisor;
1463
+ - (void)vertexAttribI4i:(uint32_t)index :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
1464
+ - (void)vertexAttribI4ui:(uint32_t)index :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
1465
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value;
1466
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
1467
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value;
1468
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
1469
+ @property (nonatomic, readonly) uint32_t READ_BUFFER;
1470
+ @property (nonatomic, readonly) uint32_t UNPACK_ROW_LENGTH;
1471
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_ROWS;
1472
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_PIXELS;
1473
+ @property (nonatomic, readonly) uint32_t PACK_ROW_LENGTH;
1474
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_ROWS;
1475
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_PIXELS;
1476
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_3D;
1477
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_IMAGES;
1478
+ @property (nonatomic, readonly) uint32_t UNPACK_IMAGE_HEIGHT;
1479
+ @property (nonatomic, readonly) uint32_t MAX_3D_TEXTURE_SIZE;
1480
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_VERTICES;
1481
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_INDICES;
1482
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_LOD_BIAS;
1483
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_COMPONENTS;
1484
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_COMPONENTS;
1485
+ @property (nonatomic, readonly) uint32_t MAX_ARRAY_TEXTURE_LAYERS;
1486
+ @property (nonatomic, readonly) uint32_t MIN_PROGRAM_TEXEL_OFFSET;
1487
+ @property (nonatomic, readonly) uint32_t MAX_PROGRAM_TEXEL_OFFSET;
1488
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_COMPONENTS;
1489
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER_DERIVATIVE_HINT;
1490
+ @property (nonatomic, readonly) uint32_t RASTERIZER_DISCARD;
1491
+ @property (nonatomic, readonly) uint32_t VERTEX_ARRAY_BINDING;
1492
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_OUTPUT_COMPONENTS;
1493
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_INPUT_COMPONENTS;
1494
+ @property (nonatomic, readonly) uint32_t MAX_SERVER_WAIT_TIMEOUT;
1495
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENT_INDEX;
1496
+ @property (nonatomic, readonly) uint32_t RED;
1497
+ @property (nonatomic, readonly) uint32_t RGB8;
1498
+ @property (nonatomic, readonly) uint32_t RGBA8;
1499
+ @property (nonatomic, readonly) uint32_t RGB10_A2;
1500
+ @property (nonatomic, readonly) uint32_t TEXTURE_3D;
1501
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_R;
1502
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_LOD;
1503
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LOD;
1504
+ @property (nonatomic, readonly) uint32_t TEXTURE_BASE_LEVEL;
1505
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LEVEL;
1506
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_MODE;
1507
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_FUNC;
1508
+ @property (nonatomic, readonly) uint32_t SRGB;
1509
+ @property (nonatomic, readonly) uint32_t SRGB8;
1510
+ @property (nonatomic, readonly) uint32_t SRGB8_ALPHA8;
1511
+ @property (nonatomic, readonly) uint32_t COMPARE_REF_TO_TEXTURE;
1512
+ @property (nonatomic, readonly) uint32_t RGBA32F;
1513
+ @property (nonatomic, readonly) uint32_t RGB32F;
1514
+ @property (nonatomic, readonly) uint32_t RGBA16F;
1515
+ @property (nonatomic, readonly) uint32_t RGB16F;
1516
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D_ARRAY;
1517
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D_ARRAY;
1518
+ @property (nonatomic, readonly) uint32_t R11F_G11F_B10F;
1519
+ @property (nonatomic, readonly) uint32_t RGB9_E5;
1520
+ @property (nonatomic, readonly) uint32_t RGBA32UI;
1521
+ @property (nonatomic, readonly) uint32_t RGB32UI;
1522
+ @property (nonatomic, readonly) uint32_t RGBA16UI;
1523
+ @property (nonatomic, readonly) uint32_t RGB16UI;
1524
+ @property (nonatomic, readonly) uint32_t RGBA8UI;
1525
+ @property (nonatomic, readonly) uint32_t RGB8UI;
1526
+ @property (nonatomic, readonly) uint32_t RGBA32I;
1527
+ @property (nonatomic, readonly) uint32_t RGB32I;
1528
+ @property (nonatomic, readonly) uint32_t RGBA16I;
1529
+ @property (nonatomic, readonly) uint32_t RGB16I;
1530
+ @property (nonatomic, readonly) uint32_t RGBA8I;
1531
+ @property (nonatomic, readonly) uint32_t RGB8I;
1532
+ @property (nonatomic, readonly) uint32_t RED_INTEGER;
1533
+ @property (nonatomic, readonly) uint32_t RGB_INTEGER;
1534
+ @property (nonatomic, readonly) uint32_t RGBA_INTEGER;
1535
+ @property (nonatomic, readonly) uint32_t R8;
1536
+ @property (nonatomic, readonly) uint32_t RG8;
1537
+ @property (nonatomic, readonly) uint32_t R16F;
1538
+ @property (nonatomic, readonly) uint32_t R32F;
1539
+ @property (nonatomic, readonly) uint32_t RG16F;
1540
+ @property (nonatomic, readonly) uint32_t RG32F;
1541
+ @property (nonatomic, readonly) uint32_t R8I;
1542
+ @property (nonatomic, readonly) uint32_t R8UI;
1543
+ @property (nonatomic, readonly) uint32_t R16I;
1544
+ @property (nonatomic, readonly) uint32_t R16UI;
1545
+ @property (nonatomic, readonly) uint32_t R32I;
1546
+ @property (nonatomic, readonly) uint32_t R32UI;
1547
+ @property (nonatomic, readonly) uint32_t RG8I;
1548
+ @property (nonatomic, readonly) uint32_t RG8UI;
1549
+ @property (nonatomic, readonly) uint32_t RG16I;
1550
+ @property (nonatomic, readonly) uint32_t RG16UI;
1551
+ @property (nonatomic, readonly) uint32_t RG32I;
1552
+ @property (nonatomic, readonly) uint32_t RG32UI;
1553
+ @property (nonatomic, readonly) uint32_t R8_SNORM;
1554
+ @property (nonatomic, readonly) uint32_t RG8_SNORM;
1555
+ @property (nonatomic, readonly) uint32_t RGB8_SNORM;
1556
+ @property (nonatomic, readonly) uint32_t RGBA8_SNORM;
1557
+ @property (nonatomic, readonly) uint32_t RGB10_A2UI;
1558
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_FORMAT;
1559
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_LEVELS;
1560
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_2_10_10_10_REV;
1561
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_10F_11F_11F_REV;
1562
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_5_9_9_9_REV;
1563
+ @property (nonatomic, readonly) uint32_t FLOAT_32_UNSIGNED_INT_24_8_REV;
1564
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_24_8;
1565
+ @property (nonatomic, readonly) uint32_t HALF_FLOAT;
1566
+ @property (nonatomic, readonly) uint32_t RG;
1567
+ @property (nonatomic, readonly) uint32_t RG_INTEGER;
1568
+ @property (nonatomic, readonly) uint32_t INT_2_10_10_10_REV;
1569
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT_AVAILABLE;
1570
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT;
1571
+ @property (nonatomic, readonly) uint32_t CURRENT_QUERY;
1572
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED;
1573
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED_CONSERVATIVE;
1574
+ @property (nonatomic, readonly) uint32_t MAX_DRAW_BUFFERS;
1575
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER0;
1576
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER1;
1577
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER2;
1578
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER3;
1579
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER4;
1580
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER5;
1581
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER6;
1582
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER7;
1583
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER8;
1584
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER9;
1585
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER10;
1586
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER11;
1587
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER12;
1588
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER13;
1589
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER14;
1590
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER15;
1591
+ @property (nonatomic, readonly) uint32_t MAX_COLOR_ATTACHMENTS;
1592
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT1;
1593
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT2;
1594
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT3;
1595
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT4;
1596
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT5;
1597
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT6;
1598
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT7;
1599
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT8;
1600
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT9;
1601
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT10;
1602
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT11;
1603
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT12;
1604
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT13;
1605
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT14;
1606
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT15;
1607
+ @property (nonatomic, readonly) uint32_t SAMPLER_3D;
1608
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_SHADOW;
1609
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY;
1610
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY_SHADOW;
1611
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE_SHADOW;
1612
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D;
1613
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_3D;
1614
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_CUBE;
1615
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D_ARRAY;
1616
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D;
1617
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_3D;
1618
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_CUBE;
1619
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D_ARRAY;
1620
+ @property (nonatomic, readonly) uint32_t MAX_SAMPLES;
1621
+ @property (nonatomic, readonly) uint32_t SAMPLER_BINDING;
1622
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER;
1623
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER;
1624
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER_BINDING;
1625
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER_BINDING;
1626
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER;
1627
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER;
1628
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER_BINDING;
1629
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER_BINDING;
1630
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x3;
1631
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x4;
1632
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x2;
1633
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x4;
1634
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x2;
1635
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x3;
1636
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC2;
1637
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC3;
1638
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC4;
1639
+ @property (nonatomic, readonly) uint32_t UNSIGNED_NORMALIZED;
1640
+ @property (nonatomic, readonly) uint32_t SIGNED_NORMALIZED;
1641
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_INTEGER;
1642
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_DIVISOR;
1643
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_MODE;
1644
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS;
1645
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_VARYINGS;
1646
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_START;
1647
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_SIZE;
1648
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN;
1649
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS;
1650
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS;
1651
+ @property (nonatomic, readonly) uint32_t INTERLEAVED_ATTRIBS;
1652
+ @property (nonatomic, readonly) uint32_t SEPARATE_ATTRIBS;
1653
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER;
1654
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_BINDING;
1655
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK;
1656
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PAUSED;
1657
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_ACTIVE;
1658
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BINDING;
1659
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING;
1660
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE;
1661
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_RED_SIZE;
1662
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_GREEN_SIZE;
1663
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_BLUE_SIZE;
1664
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE;
1665
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE;
1666
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE;
1667
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_DEFAULT;
1668
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
1669
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
1670
+ @property (nonatomic, readonly) uint32_t DEPTH24_STENCIL8;
1671
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER_BINDING;
1672
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER;
1673
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER;
1674
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER_BINDING;
1675
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_SAMPLES;
1676
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER;
1677
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MULTISAMPLE;
1678
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER;
1679
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_BINDING;
1680
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_START;
1681
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_SIZE;
1682
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_BLOCKS;
1683
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_BLOCKS;
1684
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_UNIFORM_BLOCKS;
1685
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BUFFER_BINDINGS;
1686
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BLOCK_SIZE;
1687
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS;
1688
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS;
1689
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_OFFSET_ALIGNMENT;
1690
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORM_BLOCKS;
1691
+ @property (nonatomic, readonly) uint32_t UNIFORM_TYPE;
1692
+ @property (nonatomic, readonly) uint32_t UNIFORM_SIZE;
1693
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_INDEX;
1694
+ @property (nonatomic, readonly) uint32_t UNIFORM_OFFSET;
1695
+ @property (nonatomic, readonly) uint32_t UNIFORM_ARRAY_STRIDE;
1696
+ @property (nonatomic, readonly) uint32_t UNIFORM_MATRIX_STRIDE;
1697
+ @property (nonatomic, readonly) uint32_t UNIFORM_IS_ROW_MAJOR;
1698
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_BINDING;
1699
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_DATA_SIZE;
1700
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORMS;
1701
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES;
1702
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER;
1703
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER;
1704
+ @property (nonatomic, readonly) uint32_t OBJECT_TYPE;
1705
+ @property (nonatomic, readonly) uint32_t SYNC_CONDITION;
1706
+ @property (nonatomic, readonly) uint32_t SYNC_STATUS;
1707
+ @property (nonatomic, readonly) uint32_t SYNC_FLAGS;
1708
+ @property (nonatomic, readonly) uint32_t SYNC_FENCE;
1709
+ @property (nonatomic, readonly) uint32_t SYNC_GPU_COMMANDS_COMPLETE;
1710
+ @property (nonatomic, readonly) uint32_t UNSIGNALED;
1711
+ @property (nonatomic, readonly) uint32_t SIGNALED;
1712
+ @property (nonatomic, readonly) uint32_t ALREADY_SIGNALED;
1713
+ @property (nonatomic, readonly) uint32_t TIMEOUT_EXPIRED;
1714
+ @property (nonatomic, readonly) uint32_t CONDITION_SATISFIED;
1715
+ @property (nonatomic, readonly) uint32_t WAIT_FAILED;
1716
+ @property (nonatomic, readonly) uint32_t SYNC_FLUSH_COMMANDS_BIT;
1717
+ @property (nonatomic, readonly) uint32_t COLOR;
1718
+ @property (nonatomic, readonly) uint32_t DEPTH;
1719
+ @property (nonatomic, readonly) uint32_t STENCIL;
1720
+ @property (nonatomic, readonly) uint32_t MIN;
1721
+ @property (nonatomic, readonly) uint32_t MAX;
1722
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT24;
1723
+ @property (nonatomic, readonly) uint32_t STREAM_READ;
1724
+ @property (nonatomic, readonly) uint32_t STREAM_COPY;
1725
+ @property (nonatomic, readonly) uint32_t STATIC_READ;
1726
+ @property (nonatomic, readonly) uint32_t STATIC_COPY;
1727
+ @property (nonatomic, readonly) uint32_t DYNAMIC_READ;
1728
+ @property (nonatomic, readonly) uint32_t DYNAMIC_COPY;
1729
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT32F;
1730
+ @property (nonatomic, readonly) uint32_t DEPTH32F_STENCIL8;
1731
+ @property (nonatomic, readonly) NSInteger INVALID_INDEX;
1732
+ @property (nonatomic, readonly) uint64_t TIMEOUT_IGNORED;
1733
+ @property (nonatomic, readonly) uint32_t MAX_CLIENT_WAIT_TIMEOUT_WEBGL;
1734
+ @end
1735
+
1736
+
1737
+ SWIFT_CLASS_NAMED("TNSWebGLActiveInfo")
1738
+ @interface TNSWebGLActiveInfo : NSObject
1739
+ @property (nonatomic, readonly, copy) NSString * _Nonnull name;
1740
+ @property (nonatomic, readonly) int32_t size;
1741
+ @property (nonatomic, readonly) uint32_t type;
1742
+ - (nonnull instancetype)initWithName:(NSString * _Nonnull)name size:(int32_t)size type:(uint32_t)type OBJC_DESIGNATED_INITIALIZER;
1743
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1744
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1745
+ @end
1746
+
1747
+
1748
+
1749
+ SWIFT_CLASS_NAMED("TNSWebGLShaderPrecisionFormat")
1750
+ @interface TNSWebGLShaderPrecisionFormat : NSObject
1751
+ @property (nonatomic, readonly) int32_t rangeMin;
1752
+ @property (nonatomic, readonly) int32_t rangeMax;
1753
+ @property (nonatomic, readonly) int32_t precision;
1754
+ - (nonnull instancetype)initWithRangeMin:(int32_t)rangeMin rangeMax:(int32_t)rangeMax precision:(int32_t)precision OBJC_DESIGNATED_INITIALIZER;
1755
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1756
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1757
+ @end
1758
+
1759
+
1760
+ SWIFT_CLASS_NAMED("TNS_ANGLE_instanced_arrays")
1761
+ @interface TNS_ANGLE_instanced_arrays : NSObject
1762
+ @property (nonatomic, readonly) int32_t VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE;
1763
+ - (nonnull instancetype)initWithContext:(TNSWebGLRenderingContext * _Nonnull)context OBJC_DESIGNATED_INITIALIZER;
1764
+ - (void)drawArraysInstancedANGLEWithMode:(int32_t)mode first:(int32_t)first count:(int32_t)count primcount:(int32_t)primcount;
1765
+ - (void)drawElementsInstancedANGLEWithMode:(int32_t)mode count:(int32_t)count type:(int32_t)type offset:(int32_t)offset primcount:(int32_t)primcount;
1766
+ - (void)vertexAttribDivisorANGLEWithIndex:(int32_t)index divisor:(int32_t)divisor;
1767
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1768
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1769
+ @end
1770
+
1771
+
1772
+ SWIFT_CLASS_NAMED("TNS_EXT_blend_minmax")
1773
+ @interface TNS_EXT_blend_minmax : NSObject
1774
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1775
+ @property (nonatomic, readonly) int32_t MIN_EXT;
1776
+ @property (nonatomic, readonly) int32_t MAX_EXT;
1777
+ @end
1778
+
1779
+
1780
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_float")
1781
+ @interface TNS_EXT_color_buffer_float : NSObject
1782
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1783
+ @property (nonatomic, readonly) int32_t R16F;
1784
+ @property (nonatomic, readonly) int32_t RG16F;
1785
+ @property (nonatomic, readonly) int32_t RGB16F;
1786
+ @property (nonatomic, readonly) int32_t R32F;
1787
+ @property (nonatomic, readonly) int32_t RG32F;
1788
+ @property (nonatomic, readonly) int32_t RGBA32F;
1789
+ @property (nonatomic, readonly) int32_t R11F_G11F_B10F;
1790
+ @end
1791
+
1792
+
1793
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_half_float")
1794
+ @interface TNS_EXT_color_buffer_half_float : NSObject
1795
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1796
+ @property (nonatomic, readonly) int32_t RGBA16F_EXT;
1797
+ @property (nonatomic, readonly) int32_t RGB16F_EXT;
1798
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
1799
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
1800
+ @end
1801
+
1802
+
1803
+ SWIFT_CLASS_NAMED("TNS_EXT_sRGB")
1804
+ @interface TNS_EXT_sRGB : NSObject
1805
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1806
+ @property (nonatomic, readonly) int32_t SRGB_EXT;
1807
+ @property (nonatomic, readonly) int32_t SRGB_ALPHA_EXT;
1808
+ @property (nonatomic, readonly) int32_t SRGB8_ALPHA8_EXT;
1809
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT;
1810
+ @end
1811
+
1812
+
1813
+ SWIFT_CLASS_NAMED("TNS_EXT_shader_texture_lod")
1814
+ @interface TNS_EXT_shader_texture_lod : NSObject
1815
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1816
+ @end
1817
+
1818
+
1819
+ SWIFT_CLASS_NAMED("TNS_EXT_texture_filter_anisotropic")
1820
+ @interface TNS_EXT_texture_filter_anisotropic : NSObject
1821
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1822
+ @property (nonatomic, readonly) int32_t MAX_TEXTURE_MAX_ANISOTROPY_EXT;
1823
+ @property (nonatomic, readonly) int32_t TEXTURE_MAX_ANISOTROPY_EXT;
1824
+ @end
1825
+
1826
+
1827
+ SWIFT_CLASS_NAMED("TNS_OES_element_index_uint")
1828
+ @interface TNS_OES_element_index_uint : NSObject
1829
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1830
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT;
1831
+ @end
1832
+
1833
+
1834
+ SWIFT_CLASS_NAMED("TNS_OES_fbo_render_mipmap")
1835
+ @interface TNS_OES_fbo_render_mipmap : NSObject
1836
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1837
+ @end
1838
+
1839
+
1840
+ SWIFT_CLASS_NAMED("TNS_OES_standard_derivatives")
1841
+ @interface TNS_OES_standard_derivatives : NSObject
1842
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1843
+ @end
1844
+
1845
+
1846
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float")
1847
+ @interface TNS_OES_texture_float : NSObject
1848
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1849
+ @end
1850
+
1851
+
1852
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float_linear")
1853
+ @interface TNS_OES_texture_float_linear : NSObject
1854
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1855
+ @end
1856
+
1857
+
1858
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float")
1859
+ @interface TNS_OES_texture_half_float : NSObject
1860
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1861
+ @property (nonatomic, readonly) int32_t HALF_FLOAT_OES;
1862
+ @end
1863
+
1864
+
1865
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float_linear")
1866
+ @interface TNS_OES_texture_half_float_linear : NSObject
1867
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1868
+ @end
1869
+
1870
+
1871
+ SWIFT_CLASS_NAMED("TNS_OES_vertex_array_object")
1872
+ @interface TNS_OES_vertex_array_object : NSObject
1873
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1874
+ @property (nonatomic, readonly) int32_t VERTEX_ARRAY_BINDING_OES;
1875
+ - (uint32_t)createVertexArrayOES SWIFT_WARN_UNUSED_RESULT;
1876
+ - (void)deleteVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
1877
+ - (BOOL)isVertexArrayOESWithArrayObject:(uint32_t)arrayObject SWIFT_WARN_UNUSED_RESULT;
1878
+ - (void)bindVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
1879
+ @end
1880
+
1881
+
1882
+ SWIFT_CLASS_NAMED("TNS_WEBGL_color_buffer_float")
1883
+ @interface TNS_WEBGL_color_buffer_float : NSObject
1884
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1885
+ @property (nonatomic, readonly) int32_t RGBA32F_EXT;
1886
+ @property (nonatomic, readonly) int32_t RGB32F_EXT;
1887
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
1888
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
1889
+ @end
1890
+
1891
+
1892
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc")
1893
+ @interface TNS_WEBGL_compressed_texture_etc : NSObject
1894
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1895
+ @property (nonatomic, readonly) int32_t COMPRESSED_R11_EAC;
1896
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_R11_EAC;
1897
+ @property (nonatomic, readonly) int32_t COMPRESSED_RG11_EAC;
1898
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_RG11_EAC;
1899
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_ETC2;
1900
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA8_ETC2_EAC;
1901
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ETC2;
1902
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
1903
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
1904
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
1905
+ @end
1906
+
1907
+
1908
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc1")
1909
+ @interface TNS_WEBGL_compressed_texture_etc1 : NSObject
1910
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1911
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_ETC1_WEBGL;
1912
+ @end
1913
+
1914
+
1915
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_pvrtc")
1916
+ @interface TNS_WEBGL_compressed_texture_pvrtc : NSObject
1917
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1918
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
1919
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
1920
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
1921
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
1922
+ @end
1923
+
1924
+
1925
+ SWIFT_CLASS_NAMED("TNS_WEBGL_depth_texture")
1926
+ @interface TNS_WEBGL_depth_texture : NSObject
1927
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1928
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT_24_8_WEBGL;
1929
+ @end
1930
+
1931
+
1932
+ SWIFT_CLASS_NAMED("TNS_WEBGL_draw_buffers")
1933
+ @interface TNS_WEBGL_draw_buffers : NSObject
1934
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT0_WEBGL;
1935
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT1_WEBGL;
1936
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT2_WEBGL;
1937
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT3_WEBGL;
1938
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT4_WEBGL;
1939
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT5_WEBGL;
1940
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT6_WEBGL;
1941
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT7_WEBGL;
1942
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT8_WEBGL;
1943
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT9_WEBGL;
1944
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT10_WEBGL;
1945
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT11_WEBGL;
1946
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT12_WEBGL;
1947
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT13_WEBGL;
1948
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT14_WEBGL;
1949
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT15_WEBGL;
1950
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER0_WEBGL;
1951
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER1_WEBGL;
1952
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER2_WEBGL;
1953
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER3_WEBGL;
1954
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER4_WEBGL;
1955
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER5_WEBGL;
1956
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER6_WEBGL;
1957
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER7_WEBGL;
1958
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER8_WEBGL;
1959
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER9_WEBGL;
1960
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER10_WEBGL;
1961
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER11_WEBGL;
1962
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER12_WEBGL;
1963
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER13_WEBGL;
1964
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER14_WEBGL;
1965
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER15_WEBGL;
1966
+ @property (nonatomic, readonly) int32_t MAX_COLOR_ATTACHMENTS_WEBGL;
1967
+ @property (nonatomic, readonly) int32_t MAX_DRAW_BUFFERS_WEBGL;
1968
+ - (void)drawBuffersWEBGLWithBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
1969
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1970
+ @end
1971
+
1972
+
1973
+ SWIFT_CLASS_NAMED("TNS_WEBGL_lose_context")
1974
+ @interface TNS_WEBGL_lose_context : NSObject
1975
+ - (nonnull instancetype)initWithCanvas:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
1976
+ - (void)loseContext;
1977
+ - (void)restoreContext;
1978
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1979
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1980
+ @end
1981
+
1982
+ @class AVPlayer;
1983
+ @class AVPlayerItemVideoOutput;
1984
+
1985
+ SWIFT_CLASS_NAMED("Utils")
1986
+ @interface Utils : NSObject
1987
+ + (CVOpenGLESTextureCacheRef _Nullable)createTextureCache:(TNSWebGLRenderingContext * _Nonnull)context SWIFT_WARN_UNUSED_RESULT;
1988
+ + (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
1989
+ + (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
1990
+ + (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
1991
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1992
+ @end
1993
+
1994
+ #if __has_attribute(external_source_symbol)
1995
+ # pragma clang attribute pop
1996
+ #endif
1997
+ #pragma clang diagnostic pop
1998
+ #endif
1999
+
2000
+ #elif defined(__x86_64__) && __x86_64__
2001
+ // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
2002
+ #ifndef CANVASNATIVE_SWIFT_H
2003
+ #define CANVASNATIVE_SWIFT_H
2004
+ #pragma clang diagnostic push
2005
+ #pragma clang diagnostic ignored "-Wgcc-compat"
2006
+
2007
+ #if !defined(__has_include)
2008
+ # define __has_include(x) 0
2009
+ #endif
2010
+ #if !defined(__has_attribute)
2011
+ # define __has_attribute(x) 0
2012
+ #endif
2013
+ #if !defined(__has_feature)
2014
+ # define __has_feature(x) 0
2015
+ #endif
2016
+ #if !defined(__has_warning)
2017
+ # define __has_warning(x) 0
2018
+ #endif
2019
+
2020
+ #if __has_include(<swift/objc-prologue.h>)
2021
+ # include <swift/objc-prologue.h>
2022
+ #endif
2023
+
2024
+ #pragma clang diagnostic ignored "-Wauto-import"
2025
+ #include <Foundation/Foundation.h>
2026
+ #include <stdint.h>
2027
+ #include <stddef.h>
2028
+ #include <stdbool.h>
2029
+
2030
+ #if !defined(SWIFT_TYPEDEFS)
2031
+ # define SWIFT_TYPEDEFS 1
2032
+ # if __has_include(<uchar.h>)
2033
+ # include <uchar.h>
2034
+ # elif !defined(__cplusplus)
2035
+ typedef uint_least16_t char16_t;
2036
+ typedef uint_least32_t char32_t;
2037
+ # endif
2038
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
2039
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
2040
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
2041
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
2042
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
2043
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
2044
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
2045
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
2046
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
2047
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
2048
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
2049
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
2050
+ #endif
2051
+
2052
+ #if !defined(SWIFT_PASTE)
2053
+ # define SWIFT_PASTE_HELPER(x, y) x##y
2054
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
2055
+ #endif
2056
+ #if !defined(SWIFT_METATYPE)
2057
+ # define SWIFT_METATYPE(X) Class
2058
+ #endif
2059
+ #if !defined(SWIFT_CLASS_PROPERTY)
2060
+ # if __has_feature(objc_class_property)
2061
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
2062
+ # else
2063
+ # define SWIFT_CLASS_PROPERTY(...)
2064
+ # endif
2065
+ #endif
2066
+
2067
+ #if __has_attribute(objc_runtime_name)
2068
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
2069
+ #else
2070
+ # define SWIFT_RUNTIME_NAME(X)
2071
+ #endif
2072
+ #if __has_attribute(swift_name)
2073
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
2074
+ #else
2075
+ # define SWIFT_COMPILE_NAME(X)
2076
+ #endif
2077
+ #if __has_attribute(objc_method_family)
2078
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
2079
+ #else
2080
+ # define SWIFT_METHOD_FAMILY(X)
2081
+ #endif
2082
+ #if __has_attribute(noescape)
2083
+ # define SWIFT_NOESCAPE __attribute__((noescape))
2084
+ #else
2085
+ # define SWIFT_NOESCAPE
2086
+ #endif
2087
+ #if __has_attribute(ns_consumed)
2088
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
2089
+ #else
2090
+ # define SWIFT_RELEASES_ARGUMENT
2091
+ #endif
2092
+ #if __has_attribute(warn_unused_result)
2093
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
2094
+ #else
2095
+ # define SWIFT_WARN_UNUSED_RESULT
2096
+ #endif
2097
+ #if __has_attribute(noreturn)
2098
+ # define SWIFT_NORETURN __attribute__((noreturn))
2099
+ #else
2100
+ # define SWIFT_NORETURN
2101
+ #endif
2102
+ #if !defined(SWIFT_CLASS_EXTRA)
2103
+ # define SWIFT_CLASS_EXTRA
2104
+ #endif
2105
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
2106
+ # define SWIFT_PROTOCOL_EXTRA
2107
+ #endif
2108
+ #if !defined(SWIFT_ENUM_EXTRA)
2109
+ # define SWIFT_ENUM_EXTRA
2110
+ #endif
2111
+ #if !defined(SWIFT_CLASS)
2112
+ # if __has_attribute(objc_subclassing_restricted)
2113
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
2114
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2115
+ # else
2116
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2117
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
2118
+ # endif
2119
+ #endif
2120
+ #if !defined(SWIFT_RESILIENT_CLASS)
2121
+ # if __has_attribute(objc_class_stub)
2122
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
2123
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
2124
+ # else
2125
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
2126
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
2127
+ # endif
2128
+ #endif
2129
+
2130
+ #if !defined(SWIFT_PROTOCOL)
2131
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
2132
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
2133
+ #endif
2134
+
2135
+ #if !defined(SWIFT_EXTENSION)
2136
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
2137
+ #endif
2138
+
2139
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
2140
+ # if __has_attribute(objc_designated_initializer)
2141
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
2142
+ # else
2143
+ # define OBJC_DESIGNATED_INITIALIZER
2144
+ # endif
2145
+ #endif
2146
+ #if !defined(SWIFT_ENUM_ATTR)
2147
+ # if defined(__has_attribute) && __has_attribute(enum_extensibility)
2148
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
2149
+ # else
2150
+ # define SWIFT_ENUM_ATTR(_extensibility)
2151
+ # endif
2152
+ #endif
2153
+ #if !defined(SWIFT_ENUM)
2154
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2155
+ # if __has_feature(generalized_swift_name)
2156
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
2157
+ # else
2158
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
2159
+ # endif
2160
+ #endif
2161
+ #if !defined(SWIFT_UNAVAILABLE)
2162
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
2163
+ #endif
2164
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
2165
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
2166
+ #endif
2167
+ #if !defined(SWIFT_AVAILABILITY)
2168
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
2169
+ #endif
2170
+ #if !defined(SWIFT_WEAK_IMPORT)
2171
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
2172
+ #endif
2173
+ #if !defined(SWIFT_DEPRECATED)
2174
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
2175
+ #endif
2176
+ #if !defined(SWIFT_DEPRECATED_MSG)
2177
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
2178
+ #endif
2179
+ #if __has_feature(attribute_diagnose_if_objc)
2180
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
2181
+ #else
2182
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
2183
+ #endif
2184
+ #if !defined(IBSegueAction)
2185
+ # define IBSegueAction
2186
+ #endif
2187
+ #if __has_feature(modules)
2188
+ #if __has_warning("-Watimport-in-framework-header")
2189
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
2190
+ #endif
2191
+ @import CoreFoundation;
2192
+ @import CoreGraphics;
2193
+ @import CoreVideo;
2194
+ @import Dispatch;
2195
+ @import Foundation;
2196
+ @import GLKit;
2197
+ @import ObjectiveC;
2198
+ @import OpenGLES;
2199
+ @import UIKit;
2200
+ #endif
2201
+
2202
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
2203
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
2204
+ #if __has_warning("-Wpragma-clang-attribute")
2205
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
2206
+ #endif
2207
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
2208
+ #pragma clang diagnostic ignored "-Wnullability"
2209
+
2210
+ #if __has_attribute(external_source_symbol)
2211
+ # pragma push_macro("any")
2212
+ # undef any
2213
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="CanvasNative",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
2214
+ # pragma pop_macro("any")
2215
+ #endif
2216
+
2217
+ @class NSNumber;
2218
+ @class NSCoder;
2219
+
2220
+ SWIFT_CLASS_NAMED("CanvasCPUView")
2221
+ @interface CanvasCPUView : UIView
2222
+ @property (nonatomic) BOOL ignorePixelScaling;
2223
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2224
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
2225
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2226
+ - (void)drawRect:(CGRect)rect;
2227
+ @end
2228
+
2229
+ typedef SWIFT_ENUM_NAMED(NSInteger, CanvasColorStyleType, "CanvasColorStyleType", open) {
2230
+ CanvasColorStyleTypeColor = 0,
2231
+ CanvasColorStyleTypeGradient = 1,
2232
+ CanvasColorStyleTypePattern = 2,
2233
+ };
2234
+
2235
+ @class EAGLContext;
2236
+
2237
+ SWIFT_CLASS_NAMED("CanvasGLKView")
2238
+ @interface CanvasGLKView : GLKView
2239
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2240
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
2241
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2242
+ - (void)setNeedsDisplay;
2243
+ - (void)setNeedsDisplayInRect:(CGRect)rect;
2244
+ - (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
2245
+ @end
2246
+
2247
+
2248
+ SWIFT_CLASS("_TtC12CanvasNative10GLRenderer")
2249
+ @interface GLRenderer : NSObject <GLKViewDelegate>
2250
+ - (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
2251
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2252
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2253
+ @end
2254
+
2255
+
2256
+ SWIFT_PROTOCOL("_TtP12CanvasNative17ICanvasColorStyle_")
2257
+ @protocol ICanvasColorStyle
2258
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
2259
+ @end
2260
+
2261
+ @class NSString;
2262
+
2263
+ SWIFT_CLASS_NAMED("TNSAnimationFrame")
2264
+ @interface TNSAnimationFrame : NSObject
2265
+ + (void)requestAnimationFrameToLoop:(void (^ _Nonnull)(float))toLoop;
2266
+ + (void)cancelAnimationFrameWithId:(NSString * _Nonnull)id;
2267
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2268
+ @end
2269
+
2270
+ @class TNSDOMMatrix;
2271
+ @protocol TNSCanvasListener;
2272
+ @class TNSCanvasRenderingContext;
2273
+ @class NSDictionary;
2274
+
2275
+ SWIFT_CLASS_NAMED("TNSCanvas")
2276
+ @interface TNSCanvas : UIView
2277
+ + (NSMapTable<NSString *, TNSCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
2278
+ - (void * _Nullable)getViewPtr SWIFT_WARN_UNUSED_RESULT;
2279
+ @property (nonatomic) BOOL ignorePixelScaling;
2280
+ + (TNSDOMMatrix * _Nonnull)createSVGMatrix SWIFT_WARN_UNUSED_RESULT;
2281
+ @property (nonatomic) BOOL handleInvalidationManually;
2282
+ - (void)didDraw;
2283
+ - (NSString * _Nonnull)toDataURL SWIFT_WARN_UNUSED_RESULT;
2284
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
2285
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type :(float)format SWIFT_WARN_UNUSED_RESULT;
2286
+ - (void)toDataURLAsync:(void (^ _Nonnull)(NSString * _Nonnull))callback;
2287
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
2288
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
2289
+ - (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
2290
+ @property (nonatomic, readonly) BOOL isGL;
2291
+ - (GLint)getId SWIFT_WARN_UNUSED_RESULT;
2292
+ @property (nonatomic, readonly) float width;
2293
+ @property (nonatomic, readonly) float height;
2294
+ - (void)updateDirection:(NSString * _Nonnull)direction;
2295
+ @property (nonatomic) int64_t context;
2296
+ - (void)doDraw;
2297
+ - (void)flush;
2298
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2299
+ - (nonnull instancetype)initWithFrame:(CGRect)frame useCpu:(BOOL)useCpu OBJC_DESIGNATED_INITIALIZER;
2300
+ - (void)setListener:(id <TNSCanvasListener> _Nullable)listener;
2301
+ @property (nonatomic, readonly) float fps;
2302
+ - (void)layoutSubviews;
2303
+ - (void)resume;
2304
+ - (void)pause;
2305
+ - (void)moveToMain;
2306
+ - (void)moveOffMain;
2307
+ - (void)handleMoveOffMain;
2308
+ - (void)handleMoveToMain;
2309
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
2310
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type contextAttributes:(NSDictionary * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
2311
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
2312
+ @end
2313
+
2314
+
2315
+ SWIFT_PROTOCOL_NAMED("TNSCanvasListener")
2316
+ @protocol TNSCanvasListener
2317
+ - (void)contextReady;
2318
+ @end
2319
+
2320
+
2321
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext")
2322
+ @interface TNSCanvasRenderingContext : NSObject
2323
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2324
+ @end
2325
+
2326
+ enum TNSCompositeOperationType : NSInteger;
2327
+ enum TNSImageSmoothingQuality : uint32_t;
2328
+ enum TNSLineCap : NSInteger;
2329
+ enum TNSLineJoin : NSInteger;
2330
+ enum TNSTextAlignment : NSInteger;
2331
+ enum TNSTextBaseLine : NSInteger;
2332
+ @class TNSPath2D;
2333
+ enum TNSFillRule : NSInteger;
2334
+ @class TNSLinearGradient;
2335
+ @class TNSRadialGradient;
2336
+ enum TNSPatternRepetition : NSInteger;
2337
+ @class TNSImageData;
2338
+ @class TNSTextMetrics;
2339
+
2340
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
2341
+ @interface TNSCanvasRenderingContext2D : TNSCanvasRenderingContext
2342
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
2343
+ @property (nonatomic, copy) NSString * _Nonnull font;
2344
+ @property (nonatomic, copy) NSString * _Nonnull filter;
2345
+ @property (nonatomic) float globalAlpha;
2346
+ @property (nonatomic) enum TNSCompositeOperationType globalCompositeOperation;
2347
+ @property (nonatomic) BOOL imageSmoothingEnabled;
2348
+ @property (nonatomic) enum TNSImageSmoothingQuality imageSmoothingQuality;
2349
+ @property (nonatomic) enum TNSLineCap lineCap;
2350
+ @property (nonatomic) float lineDashOffset;
2351
+ @property (nonatomic) float lineWidth;
2352
+ @property (nonatomic) enum TNSLineJoin lineJoin;
2353
+ @property (nonatomic) float miterLimit;
2354
+ @property (nonatomic) float shadowBlur;
2355
+ @property (nonatomic, copy) NSString * _Nonnull shadowColor;
2356
+ @property (nonatomic) float shadowOffsetX;
2357
+ @property (nonatomic) float shadowOffsetY;
2358
+ @property (nonatomic) enum TNSTextAlignment textAlign;
2359
+ @property (nonatomic) enum TNSTextBaseLine textBaseline;
2360
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull fillStyle;
2361
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull strokeStyle;
2362
+ - (void)fillRect:(float)x :(float)y :(float)width :(float)height;
2363
+ - (void)strokeRect:(float)x :(float)y :(float)width :(float)height;
2364
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y;
2365
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
2366
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y;
2367
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
2368
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
2369
+ - (void)fill;
2370
+ - (void)fillWithValue:(id _Nonnull)value;
2371
+ - (void)fill:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
2372
+ - (void)stroke;
2373
+ - (void)stroke:(TNSPath2D * _Nullable)path;
2374
+ - (void)beginPath;
2375
+ - (void)moveTo:(float)x :(float)y;
2376
+ - (void)lineTo:(float)x :(float)y;
2377
+ - (void)closePath;
2378
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
2379
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
2380
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
2381
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
2382
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
2383
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
2384
+ - (void)clip;
2385
+ - (void)clip:(id _Nonnull)value;
2386
+ - (void)clip:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
2387
+ - (void)clearRect:(float)x :(float)y :(float)width :(float)height;
2388
+ - (void)setLineDash:(NSArray<NSNumber *> * _Nonnull)segments;
2389
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
2390
+ - (TNSLinearGradient * _Nonnull)createLinearGradient:(float)x0 :(float)y0 :(float)x1 :(float)y1 SWIFT_WARN_UNUSED_RESULT;
2391
+ - (TNSRadialGradient * _Nonnull)createRadialGradient:(float)x0 :(float)y0 :(float)r0 :(float)x1 :(float)y1 :(float)r1 SWIFT_WARN_UNUSED_RESULT;
2392
+ - (id _Nullable)createPattern:(id _Nonnull)value :(enum TNSPatternRepetition)repetition SWIFT_WARN_UNUSED_RESULT;
2393
+ - (void)setTransform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
2394
+ - (void)scale:(float)x :(float)y;
2395
+ - (void)rotate:(float)angle;
2396
+ - (void)translate:(float)x :(float)y;
2397
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
2398
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy;
2399
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
2400
+ - (void)drawImage:(id _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
2401
+ - (TNSImageData * _Nonnull)createImageData:(int32_t)width :(int32_t)height SWIFT_WARN_UNUSED_RESULT;
2402
+ - (TNSImageData * _Nonnull)createImageData:(TNSImageData * _Nonnull)imageData SWIFT_WARN_UNUSED_RESULT;
2403
+ - (TNSImageData * _Nonnull)getImageData:(float)sx :(float)sy :(float)sw :(float)sh SWIFT_WARN_UNUSED_RESULT;
2404
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy;
2405
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy :(float)dirtyX :(float)dirtyY :(float)dirtyWidth :(float)dirtyHeight;
2406
+ - (NSArray<NSNumber *> * _Nonnull)getLineDash SWIFT_WARN_UNUSED_RESULT;
2407
+ - (void)save;
2408
+ - (void)restore;
2409
+ - (TNSTextMetrics * _Nonnull)measureText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
2410
+ - (void)resetTransform;
2411
+ - (void)transform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
2412
+ - (BOOL)isPointInPath:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
2413
+ - (BOOL)isPointInPath:(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
2414
+ - (BOOL)isPointInPath:(TNSPath2D * _Nonnull)path :(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
2415
+ - (BOOL)isPointInStroke:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
2416
+ - (BOOL)isPointInStroke:(TNSPath2D * _Nonnull)path :(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
2417
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2418
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2419
+ @end
2420
+
2421
+
2422
+ SWIFT_CLASS_NAMED("TNSColorStyle")
2423
+ @interface TNSColorStyle : NSObject
2424
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2425
+ @end
2426
+
2427
+
2428
+ SWIFT_CLASS_NAMED("TNSColor")
2429
+ @interface TNSColor : NSObject <ICanvasColorStyle>
2430
+ - (nonnull instancetype)init:(NSString * _Nonnull)color OBJC_DESIGNATED_INITIALIZER;
2431
+ @property (nonatomic, readonly, copy) NSString * _Nonnull color;
2432
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
2433
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2434
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2435
+ @end
2436
+
2437
+
2438
+ SWIFT_CLASS_NAMED("TNSGradient")
2439
+ @interface TNSGradient : NSObject <ICanvasColorStyle>
2440
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
2441
+ - (void)addColorStop:(float)offset :(NSString * _Nonnull)color;
2442
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2443
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2444
+ @end
2445
+
2446
+
2447
+ SWIFT_CLASS_NAMED("TNSLinearGradient")
2448
+ @interface TNSLinearGradient : TNSGradient
2449
+ @end
2450
+
2451
+
2452
+ SWIFT_CLASS_NAMED("TNSRadialGradient")
2453
+ @interface TNSRadialGradient : TNSGradient
2454
+ @end
2455
+
2456
+
2457
+ SWIFT_CLASS_NAMED("TNSPattern")
2458
+ @interface TNSPattern : NSObject <ICanvasColorStyle>
2459
+ - (void)setTransformWithMatrix:(TNSDOMMatrix * _Nonnull)matrix;
2460
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
2461
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2462
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2463
+ @end
2464
+
2465
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSCompositeOperationType, "TNSCompositeOperationType", open) {
2466
+ TNSCompositeOperationTypeSourceOver = 0,
2467
+ TNSCompositeOperationTypeSourceIn = 1,
2468
+ TNSCompositeOperationTypeSourceOut = 2,
2469
+ TNSCompositeOperationTypeSourceAtop = 3,
2470
+ TNSCompositeOperationTypeDestinationOver = 4,
2471
+ TNSCompositeOperationTypeDestinationIn = 5,
2472
+ TNSCompositeOperationTypeDestinationOut = 6,
2473
+ TNSCompositeOperationTypeDestinationAtop = 7,
2474
+ TNSCompositeOperationTypeLighter = 8,
2475
+ TNSCompositeOperationTypeCopy = 9,
2476
+ TNSCompositeOperationTypeXor = 10,
2477
+ TNSCompositeOperationTypeMultiply = 11,
2478
+ TNSCompositeOperationTypeScreen = 12,
2479
+ TNSCompositeOperationTypeOverlay = 13,
2480
+ TNSCompositeOperationTypeDarken = 14,
2481
+ TNSCompositeOperationTypeLighten = 15,
2482
+ TNSCompositeOperationTypeColorDodge = 16,
2483
+ TNSCompositeOperationTypeColorBurn = 17,
2484
+ TNSCompositeOperationTypeHardLight = 18,
2485
+ TNSCompositeOperationTypeSoftLight = 19,
2486
+ TNSCompositeOperationTypeDifference = 20,
2487
+ TNSCompositeOperationTypeExclusion = 21,
2488
+ TNSCompositeOperationTypeHue = 22,
2489
+ TNSCompositeOperationTypeSaturation = 23,
2490
+ TNSCompositeOperationTypeColor = 24,
2491
+ TNSCompositeOperationTypeLuminosity = 25,
2492
+ };
2493
+
2494
+
2495
+ SWIFT_CLASS_NAMED("TNSDOMMatrix")
2496
+ @interface TNSDOMMatrix : NSObject
2497
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2498
+ @property (nonatomic) float a;
2499
+ @property (nonatomic) float b;
2500
+ @property (nonatomic) float c;
2501
+ @property (nonatomic) float d;
2502
+ @property (nonatomic) float e;
2503
+ @property (nonatomic) float f;
2504
+ @property (nonatomic) float m11;
2505
+ @property (nonatomic) float m12;
2506
+ @property (nonatomic) float m13;
2507
+ @property (nonatomic) float m14;
2508
+ @property (nonatomic) float m21;
2509
+ @property (nonatomic) float m22;
2510
+ @property (nonatomic) float m23;
2511
+ @property (nonatomic) float m24;
2512
+ @property (nonatomic) float m31;
2513
+ @property (nonatomic) float m32;
2514
+ @property (nonatomic) float m33;
2515
+ @property (nonatomic) float m34;
2516
+ @property (nonatomic) float m41;
2517
+ @property (nonatomic) float m42;
2518
+ @property (nonatomic) float m43;
2519
+ @property (nonatomic) float m44;
2520
+ @end
2521
+
2522
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSFillRule, "TNSFillRule", open) {
2523
+ TNSFillRuleNonZero = 0,
2524
+ TNSFillRuleEvenOdd = 1,
2525
+ };
2526
+
2527
+
2528
+ SWIFT_CLASS_NAMED("TNSFramebufferAttachmentParameter")
2529
+ @interface TNSFramebufferAttachmentParameter : NSObject
2530
+ @property (nonatomic, readonly) BOOL isTexture;
2531
+ @property (nonatomic, readonly) BOOL isRenderbuffer;
2532
+ @property (nonatomic, readonly) int32_t value;
2533
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2534
+ - (nonnull instancetype)initWithIsTexture:(BOOL)isTexture isRenderbuffer:(BOOL)isRenderbuffer value:(int32_t)value OBJC_DESIGNATED_INITIALIZER;
2535
+ @end
2536
+
2537
+ @class UIImage;
2538
+ enum TNSImageAssetFormat : NSInteger;
2539
+
2540
+ SWIFT_CLASS_NAMED("TNSImageAsset")
2541
+ @interface TNSImageAsset : NSObject
2542
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) dispatch_queue_t _Nullable _queue;)
2543
+ + (dispatch_queue_t _Nullable)_queue SWIFT_WARN_UNUSED_RESULT;
2544
+ + (void)set_queue:(dispatch_queue_t _Nullable)value;
2545
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2546
+ - (BOOL)loadImageFromPathWithPath:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
2547
+ - (BOOL)loadImageFromUrlWithUrl:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
2548
+ - (void)loadImageFromUrlAsyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
2549
+ - (void)loadImageFromPathAsyncWithPath:(NSString * _Nonnull)path callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
2550
+ - (BOOL)loadImageFromBytesWithArray:(NSArray<NSNumber *> * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
2551
+ - (void)loadImageFromBytesAsyncWithArray:(NSArray<NSNumber *> * _Nonnull)array callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
2552
+ - (BOOL)loadImageFromImageWithImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
2553
+ - (void)loadImageFromImageAsyncWithImage:(UIImage * _Nonnull)image callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
2554
+ - (uint8_t * _Nullable)getRawBytes SWIFT_WARN_UNUSED_RESULT;
2555
+ @property (nonatomic, readonly) int32_t width;
2556
+ @property (nonatomic, readonly) int32_t height;
2557
+ - (void)flipX;
2558
+ - (void)flipY;
2559
+ - (void)scaleWithX:(uint32_t)x y:(uint32_t)y;
2560
+ - (BOOL)saveWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format SWIFT_WARN_UNUSED_RESULT;
2561
+ - (void)saveAsyncWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format callback:(void (^ _Nonnull)(BOOL))callback;
2562
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
2563
+ @end
2564
+
2565
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageAssetFormat, "TNSImageAssetFormat", open) {
2566
+ TNSImageAssetFormatJPG = 0,
2567
+ TNSImageAssetFormatPNG = 1,
2568
+ TNSImageAssetFormatICO = 2,
2569
+ TNSImageAssetFormatBMP = 3,
2570
+ TNSImageAssetFormatTIFF = 4,
2571
+ };
2572
+
2573
+ @class TNSImageBitmapOptions;
2574
+ @class NSData;
2575
+
2576
+ SWIFT_CLASS_NAMED("TNSImageBitmap")
2577
+ @interface TNSImageBitmap : NSObject
2578
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
2579
+ + (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
2580
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2581
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2582
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2583
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2584
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2585
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2586
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2587
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2588
+ + (void)createFromData:(NSData * _Nonnull)data :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2589
+ + (void)createFromData:(NSData * _Nonnull)data :(float)imageWidth :(float)imageHeight :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2590
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2591
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2592
+ + (void)createFromBytes:(NSArray<NSNumber *> * _Nonnull)bytes :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2593
+ + (void)createFromBytes:(NSArray<NSNumber *> * _Nonnull)bytes :(float)imageWidth :(float)imageHeight :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2594
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2595
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2596
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2597
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
2598
+ @property (nonatomic, readonly) int32_t width;
2599
+ @property (nonatomic, readonly) int32_t height;
2600
+ - (void)close;
2601
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
2602
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2603
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2604
+ @end
2605
+
2606
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapColorSpaceConversion, "TNSImageBitmapColorSpaceConversion", open) {
2607
+ TNSImageBitmapColorSpaceConversionDefault = 0,
2608
+ TNSImageBitmapColorSpaceConversionNone = 1,
2609
+ };
2610
+
2611
+ enum TNSImageBitmapPremultiplyAlpha : NSInteger;
2612
+ enum TNSImageBitmapResizeQuality : NSInteger;
2613
+
2614
+ SWIFT_CLASS_NAMED("TNSImageBitmapOptions")
2615
+ @interface TNSImageBitmapOptions : NSObject
2616
+ @property (nonatomic) BOOL flipY;
2617
+ @property (nonatomic) enum TNSImageBitmapPremultiplyAlpha premultiplyAlpha;
2618
+ @property (nonatomic) enum TNSImageBitmapColorSpaceConversion colorSpaceConversion;
2619
+ @property (nonatomic) enum TNSImageBitmapResizeQuality resizeQuality;
2620
+ @property (nonatomic) float resizeWidth;
2621
+ @property (nonatomic) float resizeHeight;
2622
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2623
+ @end
2624
+
2625
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapPremultiplyAlpha, "TNSImageBitmapPremultiplyAlpha", open) {
2626
+ TNSImageBitmapPremultiplyAlphaDefault = 0,
2627
+ TNSImageBitmapPremultiplyAlphaPremultiply = 1,
2628
+ TNSImageBitmapPremultiplyAlphaNone = 2,
2629
+ };
2630
+
2631
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapResizeQuality, "TNSImageBitmapResizeQuality", open) {
2632
+ TNSImageBitmapResizeQualityLow = 0,
2633
+ TNSImageBitmapResizeQualityMedium = 1,
2634
+ TNSImageBitmapResizeQualityHigh = 2,
2635
+ TNSImageBitmapResizeQualityPixelated = 3,
2636
+ };
2637
+
2638
+
2639
+ SWIFT_CLASS_NAMED("TNSImageData")
2640
+ @interface TNSImageData : NSObject
2641
+ @property (nonatomic, readonly, strong) NSData * _Nonnull data;
2642
+ @property (nonatomic, readonly) int32_t width;
2643
+ @property (nonatomic, readonly) int32_t height;
2644
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2645
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2646
+ @end
2647
+
2648
+ typedef SWIFT_ENUM_NAMED(uint32_t, TNSImageSmoothingQuality, "TNSImageSmoothingQuality", open) {
2649
+ TNSImageSmoothingQualityLow = 0,
2650
+ TNSImageSmoothingQualityMedium = 1,
2651
+ TNSImageSmoothingQualityHigh = 2,
2652
+ };
2653
+
2654
+
2655
+ SWIFT_CLASS_NAMED("TNSIndexedParameter")
2656
+ @interface TNSIndexedParameter : NSObject
2657
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2658
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2659
+ @end
2660
+
2661
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineCap, "TNSLineCap", open) {
2662
+ TNSLineCapButt = 0,
2663
+ TNSLineCapRound = 1,
2664
+ TNSLineCapSquare = 2,
2665
+ };
2666
+
2667
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineJoin, "TNSLineJoin", open) {
2668
+ TNSLineJoinRound = 0,
2669
+ TNSLineJoinBevel = 1,
2670
+ TNSLineJoinMiter = 2,
2671
+ };
2672
+
2673
+
2674
+ SWIFT_CLASS_NAMED("TNSPath2D")
2675
+ @interface TNSPath2D : NSObject
2676
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2677
+ - (nonnull instancetype)initWithPath:(TNSPath2D * _Nonnull)path OBJC_DESIGNATED_INITIALIZER;
2678
+ - (nonnull instancetype)initWithData:(NSString * _Nonnull)data OBJC_DESIGNATED_INITIALIZER;
2679
+ - (void)addPath:(TNSPath2D * _Nonnull)path;
2680
+ - (void)addPath:(TNSPath2D * _Nonnull)path :(TNSDOMMatrix * _Nullable)transform;
2681
+ - (void)closePath;
2682
+ - (void)moveTo:(float)x :(float)y;
2683
+ - (void)lineTo:(float)x :(float)y;
2684
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
2685
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
2686
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
2687
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
2688
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
2689
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
2690
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
2691
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
2692
+ @end
2693
+
2694
+ typedef SWIFT_ENUM(NSInteger, TNSPatternRepetition, open) {
2695
+ TNSPatternRepetitionRepeat = 0,
2696
+ TNSPatternRepetitionRepeatX = 1,
2697
+ TNSPatternRepetitionRepeatY = 2,
2698
+ TNSPatternRepetitionNoRepeat = 3,
2699
+ };
2700
+
2701
+
2702
+ SWIFT_CLASS_NAMED("TNSRender")
2703
+ @interface TNSRender : NSObject
2704
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2705
+ - (void)createSurface;
2706
+ @end
2707
+
2708
+
2709
+ SWIFT_CLASS_NAMED("TNSSVG")
2710
+ @interface TNSSVG : UIView
2711
+ @property (nonatomic) BOOL ignorePixelScaling;
2712
+ @property (nonatomic, copy) NSString * _Nullable src;
2713
+ @property (nonatomic, copy) NSString * _Nullable srcPath;
2714
+ - (void)layoutSubviews;
2715
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
2716
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
2717
+ - (void)drawRect:(CGRect)rect;
2718
+ @end
2719
+
2720
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
2721
+ TNSTextAlignmentStart = 0,
2722
+ TNSTextAlignmentLeft = 1,
2723
+ TNSTextAlignmentCenter = 2,
2724
+ TNSTextAlignmentRight = 3,
2725
+ TNSTextAlignmentEnd = 4,
2726
+ };
2727
+
2728
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextBaseLine, "TNSTextBaseLine", open) {
2729
+ TNSTextBaseLineTop = 0,
2730
+ TNSTextBaseLineHanging = 1,
2731
+ TNSTextBaseLineMiddle = 2,
2732
+ TNSTextBaseLineAlphabetic = 3,
2733
+ TNSTextBaseLineIdeographic = 4,
2734
+ TNSTextBaseLineBottom = 5,
2735
+ };
2736
+
2737
+
2738
+ SWIFT_CLASS_NAMED("TNSTextDecoder")
2739
+ @interface TNSTextDecoder : NSObject
2740
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2741
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
2742
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
2743
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer SWIFT_WARN_UNUSED_RESULT;
2744
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2745
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset length:(NSInteger)length SWIFT_WARN_UNUSED_RESULT;
2746
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2747
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2748
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2749
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2750
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2751
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2752
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2753
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2754
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2755
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2756
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
2757
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
2758
+ - (NSString * _Nonnull)decodeWithBytes:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2759
+ - (NSString * _Nonnull)decodeWithI8:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2760
+ - (NSString * _Nonnull)decodeWithU16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2761
+ - (NSString * _Nonnull)decodeWithI16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2762
+ - (NSString * _Nonnull)decodeWithI32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2763
+ - (NSString * _Nonnull)decodeWithU32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
2764
+ @end
2765
+
2766
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextDirection, "TNSTextDirection", open) {
2767
+ TNSTextDirectionLtr = 0,
2768
+ TNSTextDirectionRtl = 1,
2769
+ };
2770
+
2771
+
2772
+ SWIFT_CLASS_NAMED("TNSTextEncoder")
2773
+ @interface TNSTextEncoder : NSObject
2774
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
2775
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
2776
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
2777
+ - (NSData * _Nonnull)encodeWithText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
2778
+ - (NSData * _Nonnull)encodeWithPointer:(int8_t const * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
2779
+ @end
2780
+
2781
+
2782
+ SWIFT_CLASS_NAMED("TNSTextMetrics")
2783
+ @interface TNSTextMetrics : NSObject
2784
+ @property (nonatomic, readonly) float width;
2785
+ @property (nonatomic, readonly) float actualBoundingBoxLeft;
2786
+ @property (nonatomic, readonly) float actualBoundingBoxRight;
2787
+ @property (nonatomic, readonly) float actualBoundingBoxAscent;
2788
+ @property (nonatomic, readonly) float actualBoundingBoxDescent;
2789
+ @property (nonatomic, readonly) float fontBoundingBoxAscent;
2790
+ @property (nonatomic, readonly) float fontBoundingBoxDescent;
2791
+ @property (nonatomic, readonly) float emHeightAscent;
2792
+ @property (nonatomic, readonly) float emHeightDescent;
2793
+ @property (nonatomic, readonly) float hangingBaseline;
2794
+ @property (nonatomic, readonly) float alphabeticBaseline;
2795
+ @property (nonatomic, readonly) float ideographicBaseline;
2796
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
2797
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
2798
+ @end
2799
+
2800
+ @class NSNull;
2801
+ @class TNSWebGLActiveInfo;
2802
+ @class TNSWebGLShaderPrecisionFormat;
2803
+
2804
+ SWIFT_CLASS_NAMED("TNSWebGLRenderingContext")
2805
+ @interface TNSWebGLRenderingContext : TNSCanvasRenderingContext
2806
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
2807
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
2808
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
2809
+ @property (nonatomic, readonly) int32_t drawingBufferWidth;
2810
+ @property (nonatomic, readonly) int32_t drawingBufferHeight;
2811
+ - (void)activeTexture:(uint32_t)texture;
2812
+ - (void)attachShader:(uint32_t)program :(uint32_t)shader;
2813
+ - (void)bindAttribLocation:(uint32_t)program :(uint32_t)index :(NSString * _Nonnull)name;
2814
+ - (void)bindBuffer:(uint32_t)target :(uint32_t)buffer;
2815
+ - (void)bindFramebuffer:(uint32_t)target :(uint32_t)framebuffer;
2816
+ - (void)bindRenderbuffer:(uint32_t)target :(uint32_t)renderbuffer;
2817
+ - (void)bindTexture:(uint32_t)target :(uint32_t)texture;
2818
+ - (void)blendColor:(float)red :(float)green :(float)blue :(float)alpha;
2819
+ - (void)blendEquation:(uint32_t)mode;
2820
+ - (void)blendEquationSeparate:(uint32_t)modeRGB :(uint32_t)modeAlpha;
2821
+ - (void)blendFunc:(uint32_t)sfactor :(uint32_t)dfactor;
2822
+ - (void)blendFuncSeparate:(uint32_t)srcRGB :(uint32_t)dstRGB :(uint32_t)srcAlpha :(uint32_t)dstAlpha;
2823
+ - (void)bufferData:(uint32_t)target size:(NSInteger)size :(uint32_t)usage;
2824
+ - (void)bufferData:(uint32_t)target srcData:(NSNull * _Nonnull)srcData :(uint32_t)usage;
2825
+ - (void)bufferData:(uint32_t)target i8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2826
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage;
2827
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage offset:(NSInteger)offset;
2828
+ - (void)bufferData:(uint32_t)target u8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2829
+ - (void)bufferData:(uint32_t)target i16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2830
+ - (void)bufferData:(uint32_t)target u16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2831
+ - (void)bufferData:(uint32_t)target i32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2832
+ - (void)bufferData:(uint32_t)target u32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2833
+ - (void)bufferData:(uint32_t)target f32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2834
+ - (void)bufferData:(uint32_t)target f64:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
2835
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset :(NSNull * _Nonnull)srcData;
2836
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i8:(NSArray<NSNumber *> * _Nonnull)srcData;
2837
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size;
2838
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size os:(NSInteger)os;
2839
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u8:(NSArray<NSNumber *> * _Nonnull)srcData;
2840
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i16:(NSArray<NSNumber *> * _Nonnull)srcData;
2841
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u16:(NSArray<NSNumber *> * _Nonnull)srcData;
2842
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i32:(NSArray<NSNumber *> * _Nonnull)srcData;
2843
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u32:(NSArray<NSNumber *> * _Nonnull)srcData;
2844
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f32:(NSArray<NSNumber *> * _Nonnull)srcData;
2845
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f64:(NSArray<NSNumber *> * _Nonnull)srcData;
2846
+ - (uint32_t)checkFramebufferStatus:(uint32_t)target SWIFT_WARN_UNUSED_RESULT;
2847
+ - (void)clear:(uint32_t)mask;
2848
+ - (void)clearColor:(float)red :(float)green :(float)blue :(float)alpha;
2849
+ - (void)clearDepth:(float)depth;
2850
+ - (void)clearStencil:(int32_t)stencil;
2851
+ - (void)colorMask:(BOOL)red :(BOOL)green :(BOOL)blue :(BOOL)alpha;
2852
+ - (void)commit;
2853
+ - (void)compileShader:(uint32_t)shader;
2854
+ - (void)compressedTexImage2D:(uint32_t)target :(int32_t)level :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(NSData * _Nullable)pixels;
2855
+ - (void)compressedTexSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(NSData * _Nullable)pixels;
2856
+ - (void)copyTexImage2D:(uint32_t)target :(int32_t)level :(uint32_t)internalformat :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(int32_t)border;
2857
+ - (void)copyTexSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
2858
+ - (uint32_t)createBuffer SWIFT_WARN_UNUSED_RESULT;
2859
+ - (uint32_t)createFramebuffer SWIFT_WARN_UNUSED_RESULT;
2860
+ - (uint32_t)createProgram SWIFT_WARN_UNUSED_RESULT;
2861
+ - (uint32_t)createRenderbuffer SWIFT_WARN_UNUSED_RESULT;
2862
+ - (uint32_t)createShader:(uint32_t)type SWIFT_WARN_UNUSED_RESULT;
2863
+ - (uint32_t)createTexture SWIFT_WARN_UNUSED_RESULT;
2864
+ - (void)cullFace:(uint32_t)mode;
2865
+ - (void)deleteBuffer:(uint32_t)buffer;
2866
+ - (void)deleteFramebuffer:(uint32_t)frameBuffer;
2867
+ - (void)deleteProgram:(uint32_t)program;
2868
+ - (void)deleteRenderbuffer:(uint32_t)renderbuffer;
2869
+ - (void)deleteShader:(uint32_t)shader;
2870
+ - (void)deleteTexture:(uint32_t)texture;
2871
+ - (void)depthFunc:(uint32_t)fn;
2872
+ - (void)depthMask:(BOOL)flag;
2873
+ - (void)depthRange:(float)zNear :(float)zFar;
2874
+ - (void)detachShader:(uint32_t)program :(uint32_t)shader;
2875
+ - (void)disable:(uint32_t)cap;
2876
+ - (void)disableVertexAttribArray:(uint32_t)index;
2877
+ - (void)drawArrays:(uint32_t)mode :(int32_t)first :(int32_t)count;
2878
+ - (void)drawElements:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset;
2879
+ - (void)enable:(uint32_t)cap;
2880
+ - (void)enableVertexAttribArray:(uint32_t)index;
2881
+ - (void)finish;
2882
+ - (void)flush;
2883
+ - (void)framebufferRenderbuffer:(uint32_t)target :(uint32_t)attachment :(uint32_t)renderbuffertarget :(uint32_t)renderbuffer;
2884
+ - (void)framebufferTexture2D:(uint32_t)target :(uint32_t)attachment :(uint32_t)textarget :(uint32_t)texture :(int32_t)level;
2885
+ - (void)frontFace:(uint32_t)mode;
2886
+ - (void)generateMipmap:(uint32_t)target;
2887
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveAttrib:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
2888
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveUniform:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
2889
+ - (NSArray<NSNumber *> * _Nonnull)getAttachedShaders:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
2890
+ - (int32_t)getAttribLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
2891
+ - (int32_t)getBufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2892
+ - (id _Nonnull)getContextAttributes SWIFT_WARN_UNUSED_RESULT;
2893
+ - (uint32_t)getError SWIFT_WARN_UNUSED_RESULT;
2894
+ - (id _Nullable)getExtension:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
2895
+ - (TNSFramebufferAttachmentParameter * _Nonnull)getFramebufferAttachmentParameter:(uint32_t)target :(uint32_t)attachment :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2896
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2897
+ - (NSString * _Nonnull)getProgramInfoLog:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
2898
+ - (id _Nonnull)getProgramParameter:(uint32_t)program :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2899
+ - (int32_t)getRenderbufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2900
+ - (NSString * _Nonnull)getShaderInfoLog:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
2901
+ - (id _Nonnull)getShaderParameter:(uint32_t)shader :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2902
+ - (TNSWebGLShaderPrecisionFormat * _Nonnull)getShaderPrecisionFormat:(uint32_t)shaderType :(uint32_t)precisionType SWIFT_WARN_UNUSED_RESULT;
2903
+ - (NSString * _Nonnull)getShaderSource:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
2904
+ - (NSArray<NSString *> * _Nonnull)getSupportedExtensions SWIFT_WARN_UNUSED_RESULT;
2905
+ - (int32_t)getTexParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2906
+ - (id _Nonnull)getUniform:(uint32_t)program :(int32_t)location SWIFT_WARN_UNUSED_RESULT;
2907
+ - (int32_t)getUniformLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
2908
+ - (id _Nonnull)getVertexAttrib:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2909
+ - (NSInteger)getVertexAttribOffset:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
2910
+ - (void)hint:(uint32_t)target :(uint32_t)mode;
2911
+ - (BOOL)isBuffer:(uint32_t)buffer SWIFT_WARN_UNUSED_RESULT;
2912
+ - (BOOL)isContextLost SWIFT_WARN_UNUSED_RESULT;
2913
+ - (BOOL)isEnabled:(uint32_t)cap SWIFT_WARN_UNUSED_RESULT;
2914
+ - (BOOL)isFramebuffer:(uint32_t)framebuffer SWIFT_WARN_UNUSED_RESULT;
2915
+ - (BOOL)isProgram:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
2916
+ - (BOOL)isRenderbuffer:(uint32_t)renderbuffer SWIFT_WARN_UNUSED_RESULT;
2917
+ - (BOOL)isShader:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
2918
+ - (BOOL)isTexture:(uint32_t)texture SWIFT_WARN_UNUSED_RESULT;
2919
+ - (void)lineWidth:(float)width;
2920
+ - (void)linkProgram:(uint32_t)program;
2921
+ - (void)pixelStorei:(uint32_t)pname :(uint32_t)param;
2922
+ - (void)polygonOffset:(float)factor :(float)units;
2923
+ - (void)readPixels:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(void * _Nonnull)pixels;
2924
+ - (void)readPixels:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(void * _Nonnull)pixels offset:(NSInteger)offset;
2925
+ - (void)renderbufferStorage:(uint32_t)target :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
2926
+ - (void)sampleCoverage:(float)value :(BOOL)invert;
2927
+ - (void)scissor:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
2928
+ - (void)shaderSource:(uint32_t)shader :(NSString * _Nonnull)source;
2929
+ - (void)stencilFunc:(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
2930
+ - (void)stencilFuncSeparate:(uint32_t)face :(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
2931
+ - (void)stencilMask:(uint32_t)mask;
2932
+ - (void)stencilMaskSeparate:(uint32_t)face :(uint32_t)mask;
2933
+ - (void)stencilOp:(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
2934
+ - (void)stencilOpSeparate:(uint32_t)face :(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
2935
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
2936
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)pixels;
2937
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
2938
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
2939
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)pixels;
2940
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)pixels;
2941
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)pixels;
2942
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
2943
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
2944
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
2945
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
2946
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
2947
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
2948
+ - (void)texParameterf:(uint32_t)target :(uint32_t)pname :(float)param;
2949
+ - (void)texParameteri:(uint32_t)target :(uint32_t)pname :(int32_t)param;
2950
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
2951
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)pixels;
2952
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type pixels:(void * _Nonnull)pixels size:(NSInteger)size;
2953
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type pixels:(void * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
2954
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)pixels;
2955
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)pixels;
2956
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
2957
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
2958
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
2959
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
2960
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
2961
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
2962
+ - (void)uniform1f:(int32_t)location :(float)v0;
2963
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2964
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2965
+ - (void)uniform1i:(int32_t)location :(int32_t)v0;
2966
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2967
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2968
+ - (void)uniform2f:(int32_t)location :(float)v0 :(float)v1;
2969
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2970
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2971
+ - (void)uniform2i:(int32_t)location :(int32_t)v0 :(int32_t)v1;
2972
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2973
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2974
+ - (void)uniform3f:(int32_t)location :(float)v0 :(float)v1 :(float)v2;
2975
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2976
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2977
+ - (void)uniform3i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2;
2978
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2979
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2980
+ - (void)uniform4f:(int32_t)location :(float)v0 :(float)v1 :(float)v2 :(float)v3;
2981
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2982
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2983
+ - (void)uniform4i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
2984
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
2985
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2986
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
2987
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2988
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
2989
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2990
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
2991
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
2992
+ - (void)useProgram:(uint32_t)program;
2993
+ - (void)validateProgram:(uint32_t)program;
2994
+ - (void)vertexAttrib1f:(uint32_t)index :(float)v0;
2995
+ - (void)vertexAttrib2f:(uint32_t)index :(float)v0 :(float)v1;
2996
+ - (void)vertexAttrib3f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2;
2997
+ - (void)vertexAttrib4f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2 :(float)v3;
2998
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value;
2999
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
3000
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value;
3001
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
3002
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value;
3003
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
3004
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value;
3005
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
3006
+ - (void)vertexAttribPointer:(uint32_t)index :(int32_t)size :(uint32_t)type :(BOOL)normalized :(int32_t)stride :(NSInteger)offset;
3007
+ - (void)viewport:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
3008
+ @property (nonatomic, readonly) uint32_t DEPTH_BUFFER_BIT;
3009
+ @property (nonatomic, readonly) uint32_t COLOR_BUFFER_BIT;
3010
+ @property (nonatomic, readonly) uint32_t STENCIL_BUFFER_BIT;
3011
+ @property (nonatomic, readonly) uint32_t POINTS;
3012
+ @property (nonatomic, readonly) uint32_t LINES;
3013
+ @property (nonatomic, readonly) uint32_t LINE_LOOP;
3014
+ @property (nonatomic, readonly) uint32_t LINE_STRIP;
3015
+ @property (nonatomic, readonly) uint32_t TRIANGLES;
3016
+ @property (nonatomic, readonly) uint32_t TRIANGLE_STRIP;
3017
+ @property (nonatomic, readonly) uint32_t TRIANGLE_FAN;
3018
+ @property (nonatomic, readonly) uint32_t ONE;
3019
+ @property (nonatomic, readonly) uint32_t ZERO;
3020
+ @property (nonatomic, readonly) uint32_t SRC_COLOR;
3021
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_COLOR;
3022
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA;
3023
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_ALPHA;
3024
+ @property (nonatomic, readonly) uint32_t DST_ALPHA;
3025
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_ALPHA;
3026
+ @property (nonatomic, readonly) uint32_t DST_COLOR;
3027
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_COLOR;
3028
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA_SATURATE;
3029
+ @property (nonatomic, readonly) uint32_t CONSTANT_COLOR;
3030
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_COLOR;
3031
+ @property (nonatomic, readonly) uint32_t CONSTANT_ALPHA;
3032
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_ALPHA;
3033
+ @property (nonatomic, readonly) uint32_t FUNC_ADD;
3034
+ @property (nonatomic, readonly) uint32_t FUNC_SUBTRACT;
3035
+ @property (nonatomic, readonly) uint32_t FUNC_REVERSE_SUBTRACT;
3036
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION;
3037
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_RGB;
3038
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_ALPHA;
3039
+ @property (nonatomic, readonly) uint32_t BLEND_DST_RGB;
3040
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_RGB;
3041
+ @property (nonatomic, readonly) uint32_t BLEND_DST_ALPHA;
3042
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_ALPHA;
3043
+ @property (nonatomic, readonly) uint32_t BLEND_COLOR;
3044
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER_BINDING;
3045
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER_BINDING;
3046
+ @property (nonatomic, readonly) uint32_t LINE_WIDTH;
3047
+ @property (nonatomic, readonly) uint32_t ALIASED_POINT_SIZE_RANGE;
3048
+ @property (nonatomic, readonly) uint32_t ALIASED_LINE_WIDTH_RANGE;
3049
+ @property (nonatomic, readonly) uint32_t CULL_FACE_MODE;
3050
+ @property (nonatomic, readonly) uint32_t FRONT_FACE;
3051
+ @property (nonatomic, readonly) uint32_t DEPTH_RANGE;
3052
+ @property (nonatomic, readonly) uint32_t DEPTH_WRITEMASK;
3053
+ @property (nonatomic, readonly) uint32_t DEPTH_CLEAR_VALUE;
3054
+ @property (nonatomic, readonly) uint32_t DEPTH_FUNC;
3055
+ @property (nonatomic, readonly) uint32_t STENCIL_CLEAR_VALUE;
3056
+ @property (nonatomic, readonly) uint32_t STENCIL_FUNC;
3057
+ @property (nonatomic, readonly) uint32_t STENCIL_FAIL;
3058
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_FAIL;
3059
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_PASS;
3060
+ @property (nonatomic, readonly) uint32_t STENCIL_REF;
3061
+ @property (nonatomic, readonly) uint32_t STENCIL_VALUE_MASK;
3062
+ @property (nonatomic, readonly) uint32_t STENCIL_WRITEMASK;
3063
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FUNC;
3064
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FAIL;
3065
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_FAIL;
3066
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_PASS;
3067
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_REF;
3068
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_VALUE_MASK;
3069
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_WRITEMASK;
3070
+ @property (nonatomic, readonly) uint32_t VIEWPORT;
3071
+ @property (nonatomic, readonly) uint32_t SCISSOR_BOX;
3072
+ @property (nonatomic, readonly) uint32_t COLOR_CLEAR_VALUE;
3073
+ @property (nonatomic, readonly) uint32_t COLOR_WRITEMASK;
3074
+ @property (nonatomic, readonly) uint32_t UNPACK_ALIGNMENT;
3075
+ @property (nonatomic, readonly) uint32_t PACK_ALIGNMENT;
3076
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_SIZE;
3077
+ @property (nonatomic, readonly) uint32_t MAX_VIEWPORT_DIMS;
3078
+ @property (nonatomic, readonly) uint32_t SUBPIXEL_BITS;
3079
+ @property (nonatomic, readonly) uint32_t RED_BITS;
3080
+ @property (nonatomic, readonly) uint32_t GREEN_BITS;
3081
+ @property (nonatomic, readonly) uint32_t BLUE_BITS;
3082
+ @property (nonatomic, readonly) uint32_t ALPHA_BITS;
3083
+ @property (nonatomic, readonly) uint32_t DEPTH_BITS;
3084
+ @property (nonatomic, readonly) uint32_t STENCIL_BITS;
3085
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_UNITS;
3086
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FACTOR;
3087
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D;
3088
+ @property (nonatomic, readonly) uint32_t SAMPLE_BUFFERS;
3089
+ @property (nonatomic, readonly) uint32_t SAMPLES;
3090
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_VALUE;
3091
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_INVERT;
3092
+ @property (nonatomic, readonly) uint32_t COMPRESSED_TEXTURE_FORMATS;
3093
+ @property (nonatomic, readonly) uint32_t VENDOR;
3094
+ @property (nonatomic, readonly) uint32_t RENDERER;
3095
+ @property (nonatomic, readonly) uint32_t VERSION;
3096
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_TYPE;
3097
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_FORMAT;
3098
+ @property (nonatomic, readonly) uint32_t BROWSER_DEFAULT_WEBGL;
3099
+ @property (nonatomic, readonly) uint32_t STATIC_DRAW;
3100
+ @property (nonatomic, readonly) uint32_t STREAM_DRAW;
3101
+ @property (nonatomic, readonly) uint32_t DYNAMIC_DRAW;
3102
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER;
3103
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER;
3104
+ @property (nonatomic, readonly) uint32_t BUFFER_SIZE;
3105
+ @property (nonatomic, readonly) uint32_t BUFFER_USAGE;
3106
+ @property (nonatomic, readonly) uint32_t CURRENT_VERTEX_ATTRIB;
3107
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_ENABLED;
3108
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_SIZE;
3109
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_STRIDE;
3110
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_TYPE;
3111
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_NORMALIZED;
3112
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_POINTER;
3113
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
3114
+ @property (nonatomic, readonly) uint32_t CULL_FACE;
3115
+ @property (nonatomic, readonly) uint32_t FRONT;
3116
+ @property (nonatomic, readonly) uint32_t BACK;
3117
+ @property (nonatomic, readonly) uint32_t FRONT_AND_BACK;
3118
+ @property (nonatomic, readonly) uint32_t BLEND;
3119
+ @property (nonatomic, readonly) uint32_t DEPTH_TEST;
3120
+ @property (nonatomic, readonly) uint32_t DITHER;
3121
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FILL;
3122
+ @property (nonatomic, readonly) uint32_t SAMPLE_ALPHA_TO_COVERAGE;
3123
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE;
3124
+ @property (nonatomic, readonly) uint32_t SCISSOR_TEST;
3125
+ @property (nonatomic, readonly) uint32_t STENCIL_TEST;
3126
+ @property (nonatomic, readonly) uint32_t NO_ERROR;
3127
+ @property (nonatomic, readonly) uint32_t INVALID_ENUM;
3128
+ @property (nonatomic, readonly) uint32_t INVALID_VALUE;
3129
+ @property (nonatomic, readonly) uint32_t INVALID_OPERATION;
3130
+ @property (nonatomic, readonly) uint32_t INVALID_FRAMEBUFFER_OPERATION;
3131
+ @property (nonatomic, readonly) uint32_t OUT_OF_MEMORY;
3132
+ @property (nonatomic, readonly) uint32_t CONTEXT_LOST_WEBGL;
3133
+ @property (nonatomic, readonly) uint32_t CW;
3134
+ @property (nonatomic, readonly) uint32_t CCW;
3135
+ @property (nonatomic, readonly) uint32_t DONT_CARE;
3136
+ @property (nonatomic, readonly) uint32_t FASTEST;
3137
+ @property (nonatomic, readonly) uint32_t NICEST;
3138
+ @property (nonatomic, readonly) uint32_t GENERATE_MIPMAP_HINT;
3139
+ @property (nonatomic, readonly) uint32_t BYTE;
3140
+ @property (nonatomic, readonly) uint32_t UNSIGNED_BYTE;
3141
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT;
3142
+ @property (nonatomic, readonly) uint32_t SHORT;
3143
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT;
3144
+ @property (nonatomic, readonly) uint32_t INT;
3145
+ @property (nonatomic, readonly) uint32_t FLOAT;
3146
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT;
3147
+ @property (nonatomic, readonly) uint32_t ALPHA;
3148
+ @property (nonatomic, readonly) uint32_t RGB;
3149
+ @property (nonatomic, readonly) uint32_t RGBA;
3150
+ @property (nonatomic, readonly) uint32_t LUMINANCE;
3151
+ @property (nonatomic, readonly) uint32_t LUMINANCE_ALPHA;
3152
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_4_4_4_4;
3153
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_5_5_1;
3154
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_6_5;
3155
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER;
3156
+ @property (nonatomic, readonly) uint32_t VERTEX_SHADER;
3157
+ @property (nonatomic, readonly) uint32_t COMPILE_STATUS;
3158
+ @property (nonatomic, readonly) uint32_t DELETE_STATUS;
3159
+ @property (nonatomic, readonly) uint32_t LINK_STATUS;
3160
+ @property (nonatomic, readonly) uint32_t VALIDATE_STATUS;
3161
+ @property (nonatomic, readonly) uint32_t ATTACHED_SHADERS;
3162
+ @property (nonatomic, readonly) uint32_t ACTIVE_ATTRIBUTES;
3163
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORMS;
3164
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_VECTORS;
3165
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_VECTORS;
3166
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_TEXTURE_IMAGE_UNITS;
3167
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_TEXTURE_IMAGE_UNITS;
3168
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_IMAGE_UNITS;
3169
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_ATTRIBS;
3170
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_VECTORS;
3171
+ @property (nonatomic, readonly) uint32_t SHADER_TYPE;
3172
+ @property (nonatomic, readonly) uint32_t SHADING_LANGUAGE_VERSION;
3173
+ @property (nonatomic, readonly) uint32_t CURRENT_PROGRAM;
3174
+ @property (nonatomic, readonly) uint32_t NEVER;
3175
+ @property (nonatomic, readonly) uint32_t LESS;
3176
+ @property (nonatomic, readonly) uint32_t EQUAL;
3177
+ @property (nonatomic, readonly) uint32_t LEQUAL;
3178
+ @property (nonatomic, readonly) uint32_t GREATER;
3179
+ @property (nonatomic, readonly) uint32_t NOTEQUAL;
3180
+ @property (nonatomic, readonly) uint32_t GEQUAL;
3181
+ @property (nonatomic, readonly) uint32_t ALWAYS;
3182
+ @property (nonatomic, readonly) uint32_t KEEP;
3183
+ @property (nonatomic, readonly) uint32_t REPLACE;
3184
+ @property (nonatomic, readonly) uint32_t INCR;
3185
+ @property (nonatomic, readonly) uint32_t DECR;
3186
+ @property (nonatomic, readonly) uint32_t INVERT;
3187
+ @property (nonatomic, readonly) uint32_t INCR_WRAP;
3188
+ @property (nonatomic, readonly) uint32_t DECR_WRAP;
3189
+ @property (nonatomic, readonly) uint32_t NEAREST;
3190
+ @property (nonatomic, readonly) uint32_t LINEAR;
3191
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_NEAREST;
3192
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_NEAREST;
3193
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_LINEAR;
3194
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_LINEAR;
3195
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAG_FILTER;
3196
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_FILTER;
3197
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_S;
3198
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_T;
3199
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D;
3200
+ @property (nonatomic, readonly) uint32_t TEXTURE;
3201
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP;
3202
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_CUBE_MAP;
3203
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_X;
3204
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_X;
3205
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Y;
3206
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Y;
3207
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Z;
3208
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Z;
3209
+ @property (nonatomic, readonly) uint32_t MAX_CUBE_MAP_TEXTURE_SIZE;
3210
+ @property (nonatomic, readonly) uint32_t TEXTURE0;
3211
+ @property (nonatomic, readonly) uint32_t TEXTURE1;
3212
+ @property (nonatomic, readonly) uint32_t TEXTURE2;
3213
+ @property (nonatomic, readonly) uint32_t TEXTURE3;
3214
+ @property (nonatomic, readonly) uint32_t TEXTURE4;
3215
+ @property (nonatomic, readonly) uint32_t TEXTURE5;
3216
+ @property (nonatomic, readonly) uint32_t TEXTURE6;
3217
+ @property (nonatomic, readonly) uint32_t TEXTURE7;
3218
+ @property (nonatomic, readonly) uint32_t TEXTURE8;
3219
+ @property (nonatomic, readonly) uint32_t TEXTURE9;
3220
+ @property (nonatomic, readonly) uint32_t TEXTURE10;
3221
+ @property (nonatomic, readonly) uint32_t TEXTURE11;
3222
+ @property (nonatomic, readonly) uint32_t TEXTURE12;
3223
+ @property (nonatomic, readonly) uint32_t TEXTURE13;
3224
+ @property (nonatomic, readonly) uint32_t TEXTURE14;
3225
+ @property (nonatomic, readonly) uint32_t TEXTURE15;
3226
+ @property (nonatomic, readonly) uint32_t TEXTURE16;
3227
+ @property (nonatomic, readonly) uint32_t TEXTURE17;
3228
+ @property (nonatomic, readonly) uint32_t TEXTURE18;
3229
+ @property (nonatomic, readonly) uint32_t TEXTURE19;
3230
+ @property (nonatomic, readonly) uint32_t TEXTURE20;
3231
+ @property (nonatomic, readonly) uint32_t TEXTURE21;
3232
+ @property (nonatomic, readonly) uint32_t TEXTURE22;
3233
+ @property (nonatomic, readonly) uint32_t TEXTURE23;
3234
+ @property (nonatomic, readonly) uint32_t TEXTURE24;
3235
+ @property (nonatomic, readonly) uint32_t TEXTURE25;
3236
+ @property (nonatomic, readonly) uint32_t TEXTURE26;
3237
+ @property (nonatomic, readonly) uint32_t TEXTURE27;
3238
+ @property (nonatomic, readonly) uint32_t TEXTURE28;
3239
+ @property (nonatomic, readonly) uint32_t TEXTURE29;
3240
+ @property (nonatomic, readonly) uint32_t TEXTURE30;
3241
+ @property (nonatomic, readonly) uint32_t TEXTURE31;
3242
+ @property (nonatomic, readonly) uint32_t ACTIVE_TEXTURE;
3243
+ @property (nonatomic, readonly) uint32_t REPEAT;
3244
+ @property (nonatomic, readonly) uint32_t CLAMP_TO_EDGE;
3245
+ @property (nonatomic, readonly) uint32_t MIRRORED_REPEAT;
3246
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC2;
3247
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC3;
3248
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC4;
3249
+ @property (nonatomic, readonly) uint32_t INT_VEC2;
3250
+ @property (nonatomic, readonly) uint32_t INT_VEC3;
3251
+ @property (nonatomic, readonly) uint32_t INT_VEC4;
3252
+ @property (nonatomic, readonly) uint32_t BOOL;
3253
+ @property (nonatomic, readonly) uint32_t BOOL_VEC2;
3254
+ @property (nonatomic, readonly) uint32_t BOOL_VEC3;
3255
+ @property (nonatomic, readonly) uint32_t BOOL_VEC4;
3256
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2;
3257
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3;
3258
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4;
3259
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D;
3260
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE;
3261
+ @property (nonatomic, readonly) uint32_t LOW_FLOAT;
3262
+ @property (nonatomic, readonly) uint32_t MEDIUM_FLOAT;
3263
+ @property (nonatomic, readonly) uint32_t HIGH_FLOAT;
3264
+ @property (nonatomic, readonly) uint32_t LOW_INT;
3265
+ @property (nonatomic, readonly) uint32_t MEDIUM_INT;
3266
+ @property (nonatomic, readonly) uint32_t HIGH_INT;
3267
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER;
3268
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER;
3269
+ @property (nonatomic, readonly) uint32_t RGBA4;
3270
+ @property (nonatomic, readonly) uint32_t RGB565;
3271
+ @property (nonatomic, readonly) uint32_t RGB5_A1;
3272
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT16;
3273
+ @property (nonatomic, readonly) uint32_t STENCIL_INDEX8;
3274
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
3275
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_WIDTH;
3276
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_HEIGHT;
3277
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_INTERNAL_FORMAT;
3278
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_RED_SIZE;
3279
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_GREEN_SIZE;
3280
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BLUE_SIZE;
3281
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_ALPHA_SIZE;
3282
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_DEPTH_SIZE;
3283
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_STENCIL_SIZE;
3284
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
3285
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
3286
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
3287
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
3288
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT0;
3289
+ @property (nonatomic, readonly) uint32_t DEPTH_ATTACHMENT;
3290
+ @property (nonatomic, readonly) uint32_t STENCIL_ATTACHMENT;
3291
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
3292
+ @property (nonatomic, readonly) uint32_t NONE;
3293
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_COMPLETE;
3294
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
3295
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
3296
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
3297
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_UNSUPPORTED;
3298
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_BINDING;
3299
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BINDING;
3300
+ @property (nonatomic, readonly) uint32_t MAX_RENDERBUFFER_SIZE;
3301
+ @property (nonatomic, readonly) uint32_t UNPACK_COLORSPACE_CONVERSION_WEBGL;
3302
+ @property (nonatomic, readonly) uint32_t UNPACK_FLIP_Y_WEBGL;
3303
+ @property (nonatomic, readonly) uint32_t UNPACK_PREMULTIPLY_ALPHA_WEBGL;
3304
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3305
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3306
+ @end
3307
+
3308
+
3309
+ SWIFT_CLASS_NAMED("TNSWebGL2RenderingContext")
3310
+ @interface TNSWebGL2RenderingContext : TNSWebGLRenderingContext
3311
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
3312
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
3313
+ - (void)beginQuery:(uint32_t)target :(uint32_t)query;
3314
+ - (void)beginTransformFeedback:(uint32_t)primitiveMode;
3315
+ - (void)bindBufferBase:(uint32_t)target :(uint32_t)index :(uint32_t)buffer;
3316
+ - (void)bindBufferRange:(uint32_t)target :(uint32_t)index :(uint32_t)buffer :(NSInteger)offset :(NSInteger)size;
3317
+ - (void)bindSampler:(uint32_t)unit :(uint32_t)sampler;
3318
+ - (void)bindTransformFeedback:(uint32_t)target :(uint32_t)transformFeedback;
3319
+ - (void)bindVertexArray:(uint32_t)vertexArray;
3320
+ - (void)blitFramebuffer:(int32_t)srcX0 :(int32_t)srcY0 :(int32_t)srcX1 :(int32_t)srcY1 :(int32_t)dstX0 :(int32_t)dstY0 :(int32_t)dstX1 :(int32_t)dstY1 :(uint32_t)mask :(uint32_t)filter;
3321
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
3322
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
3323
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
3324
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
3325
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
3326
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
3327
+ - (void)clearBufferfi:(uint32_t)buffer :(int32_t)drawbuffer :(float)depth :(int32_t)stencil;
3328
+ - (int32_t)clientWaitSync:(GLsync _Nonnull)sync :(uint32_t)flags :(uint64_t)timeout SWIFT_WARN_UNUSED_RESULT;
3329
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(int32_t)imageSize :(int32_t)offset;
3330
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3331
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3332
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3333
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3334
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format i32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3335
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format u32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3336
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format f32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3337
+ - (void)compressedTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format f64:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
3338
+ - (void)copyBufferSubData:(uint32_t)readTarget :(uint32_t)writeTarget :(NSInteger)readOffset :(NSInteger)writeOffset :(NSInteger)size;
3339
+ - (void)copyTexSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
3340
+ - (uint32_t)createQuery SWIFT_WARN_UNUSED_RESULT;
3341
+ - (uint32_t)createSampler SWIFT_WARN_UNUSED_RESULT;
3342
+ - (uint32_t)createVertexArray SWIFT_WARN_UNUSED_RESULT;
3343
+ - (uint32_t)createTransformFeedback SWIFT_WARN_UNUSED_RESULT;
3344
+ - (void)deleteQuery:(uint32_t)query;
3345
+ - (void)deleteSampler:(uint32_t)sampler;
3346
+ - (void)deleteSync:(GLsync _Nonnull)sync;
3347
+ - (void)deleteTransformFeedback:(uint32_t)transformFeedback;
3348
+ - (void)deleteVertexArray:(uint32_t)vertexArray;
3349
+ - (void)drawArraysInstanced:(uint32_t)mode :(int32_t)first :(int32_t)count :(int32_t)instanceCount;
3350
+ - (void)drawElementsInstanced:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset :(int32_t)instanceCount;
3351
+ - (void)drawRangeElements:(uint32_t)mode :(uint32_t)start :(uint32_t)end :(int32_t)count :(uint32_t)type :(NSInteger)offset;
3352
+ - (void)drawBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
3353
+ - (void)endQuery:(uint32_t)target;
3354
+ - (void)endTransformFeedback;
3355
+ - (void)fenceSync:(uint32_t)condition :(uint32_t)flags;
3356
+ - (void)framebufferTextureLayer:(uint32_t)target :(uint32_t)attachment :(uint32_t)texture :(int32_t)level :(int32_t)layer;
3357
+ - (NSString * _Nonnull)getActiveUniformBlockName:(uint32_t)program :(uint32_t)uniformBlockIndex SWIFT_WARN_UNUSED_RESULT;
3358
+ - (id _Nonnull)getActiveUniformBlockParameter:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3359
+ - (id _Nonnull)getActiveUniforms:(uint32_t)program :(NSArray<NSNumber *> * _Nonnull)uniformIndices :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3360
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length;
3361
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length offset:(NSInteger)offset;
3362
+ - (int32_t)getFragDataLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
3363
+ - (id _Nonnull)getIndexedParameter:(uint32_t)target :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
3364
+ - (id _Nonnull)getInternalformatParameter:(uint32_t)target :(uint32_t)internalformat :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3365
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3366
+ - (id _Nonnull)getQuery:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3367
+ - (id _Nonnull)getQueryParameter:(uint32_t)query :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3368
+ - (id _Nonnull)getSamplerParameter:(uint32_t)sampler :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3369
+ - (id _Nonnull)getSyncParameter:(GLsync _Nonnull)sync :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
3370
+ - (id _Nonnull)getTransformFeedbackVarying:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
3371
+ - (uint32_t)getUniformBlockIndex:(uint32_t)program :(NSString * _Nonnull)uniformBlockName SWIFT_WARN_UNUSED_RESULT;
3372
+ - (NSArray<NSNumber *> * _Nonnull)getUniformIndices:(uint32_t)program :(NSArray<NSString *> * _Nonnull)uniformNames SWIFT_WARN_UNUSED_RESULT;
3373
+ - (void)invalidateFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments;
3374
+ - (void)invalidateSubFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
3375
+ - (BOOL)isQuery:(uint32_t)query SWIFT_WARN_UNUSED_RESULT;
3376
+ - (BOOL)isSampler:(uint32_t)sampler SWIFT_WARN_UNUSED_RESULT;
3377
+ - (BOOL)isSync:(GLsync _Nonnull)sync SWIFT_WARN_UNUSED_RESULT;
3378
+ - (BOOL)isTransformFeedback:(uint32_t)transformFeedback SWIFT_WARN_UNUSED_RESULT;
3379
+ - (BOOL)isVertexArray:(uint32_t)vertexArray SWIFT_WARN_UNUSED_RESULT;
3380
+ - (void)pauseTransformFeedback;
3381
+ - (void)readBuffer:(uint32_t)src;
3382
+ - (void)renderbufferStorageMultisample:(uint32_t)target :(int32_t)samples :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
3383
+ - (void)resumeTransformFeedback;
3384
+ - (void)samplerParameteri:(uint32_t)sampler :(uint32_t)pname :(int32_t)param;
3385
+ - (void)samplerParameterf:(uint32_t)sampler :(uint32_t)pname :(float)param;
3386
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
3387
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type offset:(NSInteger)offset;
3388
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
3389
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type pixels:(void const * _Nonnull)pixels size:(NSInteger)size pixelOffset:(NSInteger)pixelOffset srcOffset:(int32_t)srcOffset;
3390
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)source;
3391
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)source;
3392
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)source;
3393
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)source;
3394
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)source;
3395
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)source;
3396
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)source;
3397
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)source;
3398
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3399
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3400
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3401
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3402
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3403
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3404
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3405
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
3406
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type source:(UIImage * _Nonnull)source;
3407
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
3408
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
3409
+ - (void)texImage3D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth :(int32_t)border :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
3410
+ - (void)texStorage2D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height;
3411
+ - (void)texStorage3D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth;
3412
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type data:(NSData * _Nonnull)data;
3413
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type offset:(int32_t)offset;
3414
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)srcData;
3415
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)srcData;
3416
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)srcData;
3417
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)srcData;
3418
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)srcData;
3419
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)srcData;
3420
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)srcData;
3421
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)srcData;
3422
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3423
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3424
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3425
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u16:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3426
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type i32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3427
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type u32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3428
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f32:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3429
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type f64:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
3430
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type srcData:(UIImage * _Nonnull)srcData;
3431
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
3432
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
3433
+ - (void)texSubImage3D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(int32_t)zoffset :(int32_t)width :(int32_t)height :(int32_t)depth :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
3434
+ - (void)transformFeedbackVaryings:(uint32_t)program :(NSArray<NSString *> * _Nonnull)varyings :(uint32_t)bufferMode;
3435
+ - (void)uniform1ui:(int32_t)location :(uint32_t)v0;
3436
+ - (void)uniform2ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1;
3437
+ - (void)uniform3ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2;
3438
+ - (void)uniform4ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
3439
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
3440
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3441
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
3442
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3443
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
3444
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3445
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
3446
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3447
+ - (void)uniformBlockBinding:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)uniformBlockBinding;
3448
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3449
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3450
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3451
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3452
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3453
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3454
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3455
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3456
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3457
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3458
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
3459
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
3460
+ - (void)vertexAttribDivisor:(uint32_t)index :(uint32_t)divisor;
3461
+ - (void)vertexAttribI4i:(uint32_t)index :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
3462
+ - (void)vertexAttribI4ui:(uint32_t)index :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
3463
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value;
3464
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
3465
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value;
3466
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
3467
+ @property (nonatomic, readonly) uint32_t READ_BUFFER;
3468
+ @property (nonatomic, readonly) uint32_t UNPACK_ROW_LENGTH;
3469
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_ROWS;
3470
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_PIXELS;
3471
+ @property (nonatomic, readonly) uint32_t PACK_ROW_LENGTH;
3472
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_ROWS;
3473
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_PIXELS;
3474
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_3D;
3475
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_IMAGES;
3476
+ @property (nonatomic, readonly) uint32_t UNPACK_IMAGE_HEIGHT;
3477
+ @property (nonatomic, readonly) uint32_t MAX_3D_TEXTURE_SIZE;
3478
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_VERTICES;
3479
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_INDICES;
3480
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_LOD_BIAS;
3481
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_COMPONENTS;
3482
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_COMPONENTS;
3483
+ @property (nonatomic, readonly) uint32_t MAX_ARRAY_TEXTURE_LAYERS;
3484
+ @property (nonatomic, readonly) uint32_t MIN_PROGRAM_TEXEL_OFFSET;
3485
+ @property (nonatomic, readonly) uint32_t MAX_PROGRAM_TEXEL_OFFSET;
3486
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_COMPONENTS;
3487
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER_DERIVATIVE_HINT;
3488
+ @property (nonatomic, readonly) uint32_t RASTERIZER_DISCARD;
3489
+ @property (nonatomic, readonly) uint32_t VERTEX_ARRAY_BINDING;
3490
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_OUTPUT_COMPONENTS;
3491
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_INPUT_COMPONENTS;
3492
+ @property (nonatomic, readonly) uint32_t MAX_SERVER_WAIT_TIMEOUT;
3493
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENT_INDEX;
3494
+ @property (nonatomic, readonly) uint32_t RED;
3495
+ @property (nonatomic, readonly) uint32_t RGB8;
3496
+ @property (nonatomic, readonly) uint32_t RGBA8;
3497
+ @property (nonatomic, readonly) uint32_t RGB10_A2;
3498
+ @property (nonatomic, readonly) uint32_t TEXTURE_3D;
3499
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_R;
3500
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_LOD;
3501
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LOD;
3502
+ @property (nonatomic, readonly) uint32_t TEXTURE_BASE_LEVEL;
3503
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LEVEL;
3504
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_MODE;
3505
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_FUNC;
3506
+ @property (nonatomic, readonly) uint32_t SRGB;
3507
+ @property (nonatomic, readonly) uint32_t SRGB8;
3508
+ @property (nonatomic, readonly) uint32_t SRGB8_ALPHA8;
3509
+ @property (nonatomic, readonly) uint32_t COMPARE_REF_TO_TEXTURE;
3510
+ @property (nonatomic, readonly) uint32_t RGBA32F;
3511
+ @property (nonatomic, readonly) uint32_t RGB32F;
3512
+ @property (nonatomic, readonly) uint32_t RGBA16F;
3513
+ @property (nonatomic, readonly) uint32_t RGB16F;
3514
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D_ARRAY;
3515
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D_ARRAY;
3516
+ @property (nonatomic, readonly) uint32_t R11F_G11F_B10F;
3517
+ @property (nonatomic, readonly) uint32_t RGB9_E5;
3518
+ @property (nonatomic, readonly) uint32_t RGBA32UI;
3519
+ @property (nonatomic, readonly) uint32_t RGB32UI;
3520
+ @property (nonatomic, readonly) uint32_t RGBA16UI;
3521
+ @property (nonatomic, readonly) uint32_t RGB16UI;
3522
+ @property (nonatomic, readonly) uint32_t RGBA8UI;
3523
+ @property (nonatomic, readonly) uint32_t RGB8UI;
3524
+ @property (nonatomic, readonly) uint32_t RGBA32I;
3525
+ @property (nonatomic, readonly) uint32_t RGB32I;
3526
+ @property (nonatomic, readonly) uint32_t RGBA16I;
3527
+ @property (nonatomic, readonly) uint32_t RGB16I;
3528
+ @property (nonatomic, readonly) uint32_t RGBA8I;
3529
+ @property (nonatomic, readonly) uint32_t RGB8I;
3530
+ @property (nonatomic, readonly) uint32_t RED_INTEGER;
3531
+ @property (nonatomic, readonly) uint32_t RGB_INTEGER;
3532
+ @property (nonatomic, readonly) uint32_t RGBA_INTEGER;
3533
+ @property (nonatomic, readonly) uint32_t R8;
3534
+ @property (nonatomic, readonly) uint32_t RG8;
3535
+ @property (nonatomic, readonly) uint32_t R16F;
3536
+ @property (nonatomic, readonly) uint32_t R32F;
3537
+ @property (nonatomic, readonly) uint32_t RG16F;
3538
+ @property (nonatomic, readonly) uint32_t RG32F;
3539
+ @property (nonatomic, readonly) uint32_t R8I;
3540
+ @property (nonatomic, readonly) uint32_t R8UI;
3541
+ @property (nonatomic, readonly) uint32_t R16I;
3542
+ @property (nonatomic, readonly) uint32_t R16UI;
3543
+ @property (nonatomic, readonly) uint32_t R32I;
3544
+ @property (nonatomic, readonly) uint32_t R32UI;
3545
+ @property (nonatomic, readonly) uint32_t RG8I;
3546
+ @property (nonatomic, readonly) uint32_t RG8UI;
3547
+ @property (nonatomic, readonly) uint32_t RG16I;
3548
+ @property (nonatomic, readonly) uint32_t RG16UI;
3549
+ @property (nonatomic, readonly) uint32_t RG32I;
3550
+ @property (nonatomic, readonly) uint32_t RG32UI;
3551
+ @property (nonatomic, readonly) uint32_t R8_SNORM;
3552
+ @property (nonatomic, readonly) uint32_t RG8_SNORM;
3553
+ @property (nonatomic, readonly) uint32_t RGB8_SNORM;
3554
+ @property (nonatomic, readonly) uint32_t RGBA8_SNORM;
3555
+ @property (nonatomic, readonly) uint32_t RGB10_A2UI;
3556
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_FORMAT;
3557
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_LEVELS;
3558
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_2_10_10_10_REV;
3559
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_10F_11F_11F_REV;
3560
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_5_9_9_9_REV;
3561
+ @property (nonatomic, readonly) uint32_t FLOAT_32_UNSIGNED_INT_24_8_REV;
3562
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_24_8;
3563
+ @property (nonatomic, readonly) uint32_t HALF_FLOAT;
3564
+ @property (nonatomic, readonly) uint32_t RG;
3565
+ @property (nonatomic, readonly) uint32_t RG_INTEGER;
3566
+ @property (nonatomic, readonly) uint32_t INT_2_10_10_10_REV;
3567
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT_AVAILABLE;
3568
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT;
3569
+ @property (nonatomic, readonly) uint32_t CURRENT_QUERY;
3570
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED;
3571
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED_CONSERVATIVE;
3572
+ @property (nonatomic, readonly) uint32_t MAX_DRAW_BUFFERS;
3573
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER0;
3574
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER1;
3575
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER2;
3576
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER3;
3577
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER4;
3578
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER5;
3579
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER6;
3580
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER7;
3581
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER8;
3582
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER9;
3583
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER10;
3584
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER11;
3585
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER12;
3586
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER13;
3587
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER14;
3588
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER15;
3589
+ @property (nonatomic, readonly) uint32_t MAX_COLOR_ATTACHMENTS;
3590
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT1;
3591
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT2;
3592
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT3;
3593
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT4;
3594
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT5;
3595
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT6;
3596
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT7;
3597
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT8;
3598
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT9;
3599
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT10;
3600
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT11;
3601
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT12;
3602
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT13;
3603
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT14;
3604
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT15;
3605
+ @property (nonatomic, readonly) uint32_t SAMPLER_3D;
3606
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_SHADOW;
3607
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY;
3608
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY_SHADOW;
3609
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE_SHADOW;
3610
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D;
3611
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_3D;
3612
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_CUBE;
3613
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D_ARRAY;
3614
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D;
3615
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_3D;
3616
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_CUBE;
3617
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D_ARRAY;
3618
+ @property (nonatomic, readonly) uint32_t MAX_SAMPLES;
3619
+ @property (nonatomic, readonly) uint32_t SAMPLER_BINDING;
3620
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER;
3621
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER;
3622
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER_BINDING;
3623
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER_BINDING;
3624
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER;
3625
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER;
3626
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER_BINDING;
3627
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER_BINDING;
3628
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x3;
3629
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x4;
3630
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x2;
3631
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x4;
3632
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x2;
3633
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x3;
3634
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC2;
3635
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC3;
3636
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC4;
3637
+ @property (nonatomic, readonly) uint32_t UNSIGNED_NORMALIZED;
3638
+ @property (nonatomic, readonly) uint32_t SIGNED_NORMALIZED;
3639
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_INTEGER;
3640
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_DIVISOR;
3641
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_MODE;
3642
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS;
3643
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_VARYINGS;
3644
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_START;
3645
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_SIZE;
3646
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN;
3647
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS;
3648
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS;
3649
+ @property (nonatomic, readonly) uint32_t INTERLEAVED_ATTRIBS;
3650
+ @property (nonatomic, readonly) uint32_t SEPARATE_ATTRIBS;
3651
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER;
3652
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_BINDING;
3653
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK;
3654
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PAUSED;
3655
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_ACTIVE;
3656
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BINDING;
3657
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING;
3658
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE;
3659
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_RED_SIZE;
3660
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_GREEN_SIZE;
3661
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_BLUE_SIZE;
3662
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE;
3663
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE;
3664
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE;
3665
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_DEFAULT;
3666
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
3667
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
3668
+ @property (nonatomic, readonly) uint32_t DEPTH24_STENCIL8;
3669
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER_BINDING;
3670
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER;
3671
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER;
3672
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER_BINDING;
3673
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_SAMPLES;
3674
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER;
3675
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MULTISAMPLE;
3676
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER;
3677
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_BINDING;
3678
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_START;
3679
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_SIZE;
3680
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_BLOCKS;
3681
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_BLOCKS;
3682
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_UNIFORM_BLOCKS;
3683
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BUFFER_BINDINGS;
3684
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BLOCK_SIZE;
3685
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS;
3686
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS;
3687
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_OFFSET_ALIGNMENT;
3688
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORM_BLOCKS;
3689
+ @property (nonatomic, readonly) uint32_t UNIFORM_TYPE;
3690
+ @property (nonatomic, readonly) uint32_t UNIFORM_SIZE;
3691
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_INDEX;
3692
+ @property (nonatomic, readonly) uint32_t UNIFORM_OFFSET;
3693
+ @property (nonatomic, readonly) uint32_t UNIFORM_ARRAY_STRIDE;
3694
+ @property (nonatomic, readonly) uint32_t UNIFORM_MATRIX_STRIDE;
3695
+ @property (nonatomic, readonly) uint32_t UNIFORM_IS_ROW_MAJOR;
3696
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_BINDING;
3697
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_DATA_SIZE;
3698
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORMS;
3699
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES;
3700
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER;
3701
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER;
3702
+ @property (nonatomic, readonly) uint32_t OBJECT_TYPE;
3703
+ @property (nonatomic, readonly) uint32_t SYNC_CONDITION;
3704
+ @property (nonatomic, readonly) uint32_t SYNC_STATUS;
3705
+ @property (nonatomic, readonly) uint32_t SYNC_FLAGS;
3706
+ @property (nonatomic, readonly) uint32_t SYNC_FENCE;
3707
+ @property (nonatomic, readonly) uint32_t SYNC_GPU_COMMANDS_COMPLETE;
3708
+ @property (nonatomic, readonly) uint32_t UNSIGNALED;
3709
+ @property (nonatomic, readonly) uint32_t SIGNALED;
3710
+ @property (nonatomic, readonly) uint32_t ALREADY_SIGNALED;
3711
+ @property (nonatomic, readonly) uint32_t TIMEOUT_EXPIRED;
3712
+ @property (nonatomic, readonly) uint32_t CONDITION_SATISFIED;
3713
+ @property (nonatomic, readonly) uint32_t WAIT_FAILED;
3714
+ @property (nonatomic, readonly) uint32_t SYNC_FLUSH_COMMANDS_BIT;
3715
+ @property (nonatomic, readonly) uint32_t COLOR;
3716
+ @property (nonatomic, readonly) uint32_t DEPTH;
3717
+ @property (nonatomic, readonly) uint32_t STENCIL;
3718
+ @property (nonatomic, readonly) uint32_t MIN;
3719
+ @property (nonatomic, readonly) uint32_t MAX;
3720
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT24;
3721
+ @property (nonatomic, readonly) uint32_t STREAM_READ;
3722
+ @property (nonatomic, readonly) uint32_t STREAM_COPY;
3723
+ @property (nonatomic, readonly) uint32_t STATIC_READ;
3724
+ @property (nonatomic, readonly) uint32_t STATIC_COPY;
3725
+ @property (nonatomic, readonly) uint32_t DYNAMIC_READ;
3726
+ @property (nonatomic, readonly) uint32_t DYNAMIC_COPY;
3727
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT32F;
3728
+ @property (nonatomic, readonly) uint32_t DEPTH32F_STENCIL8;
3729
+ @property (nonatomic, readonly) NSInteger INVALID_INDEX;
3730
+ @property (nonatomic, readonly) uint64_t TIMEOUT_IGNORED;
3731
+ @property (nonatomic, readonly) uint32_t MAX_CLIENT_WAIT_TIMEOUT_WEBGL;
3732
+ @end
3733
+
3734
+
3735
+ SWIFT_CLASS_NAMED("TNSWebGLActiveInfo")
3736
+ @interface TNSWebGLActiveInfo : NSObject
3737
+ @property (nonatomic, readonly, copy) NSString * _Nonnull name;
3738
+ @property (nonatomic, readonly) int32_t size;
3739
+ @property (nonatomic, readonly) uint32_t type;
3740
+ - (nonnull instancetype)initWithName:(NSString * _Nonnull)name size:(int32_t)size type:(uint32_t)type OBJC_DESIGNATED_INITIALIZER;
3741
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3742
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3743
+ @end
3744
+
3745
+
3746
+
3747
+ SWIFT_CLASS_NAMED("TNSWebGLShaderPrecisionFormat")
3748
+ @interface TNSWebGLShaderPrecisionFormat : NSObject
3749
+ @property (nonatomic, readonly) int32_t rangeMin;
3750
+ @property (nonatomic, readonly) int32_t rangeMax;
3751
+ @property (nonatomic, readonly) int32_t precision;
3752
+ - (nonnull instancetype)initWithRangeMin:(int32_t)rangeMin rangeMax:(int32_t)rangeMax precision:(int32_t)precision OBJC_DESIGNATED_INITIALIZER;
3753
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3754
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3755
+ @end
3756
+
3757
+
3758
+ SWIFT_CLASS_NAMED("TNS_ANGLE_instanced_arrays")
3759
+ @interface TNS_ANGLE_instanced_arrays : NSObject
3760
+ @property (nonatomic, readonly) int32_t VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE;
3761
+ - (nonnull instancetype)initWithContext:(TNSWebGLRenderingContext * _Nonnull)context OBJC_DESIGNATED_INITIALIZER;
3762
+ - (void)drawArraysInstancedANGLEWithMode:(int32_t)mode first:(int32_t)first count:(int32_t)count primcount:(int32_t)primcount;
3763
+ - (void)drawElementsInstancedANGLEWithMode:(int32_t)mode count:(int32_t)count type:(int32_t)type offset:(int32_t)offset primcount:(int32_t)primcount;
3764
+ - (void)vertexAttribDivisorANGLEWithIndex:(int32_t)index divisor:(int32_t)divisor;
3765
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3766
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3767
+ @end
3768
+
3769
+
3770
+ SWIFT_CLASS_NAMED("TNS_EXT_blend_minmax")
3771
+ @interface TNS_EXT_blend_minmax : NSObject
3772
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3773
+ @property (nonatomic, readonly) int32_t MIN_EXT;
3774
+ @property (nonatomic, readonly) int32_t MAX_EXT;
3775
+ @end
3776
+
3777
+
3778
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_float")
3779
+ @interface TNS_EXT_color_buffer_float : NSObject
3780
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3781
+ @property (nonatomic, readonly) int32_t R16F;
3782
+ @property (nonatomic, readonly) int32_t RG16F;
3783
+ @property (nonatomic, readonly) int32_t RGB16F;
3784
+ @property (nonatomic, readonly) int32_t R32F;
3785
+ @property (nonatomic, readonly) int32_t RG32F;
3786
+ @property (nonatomic, readonly) int32_t RGBA32F;
3787
+ @property (nonatomic, readonly) int32_t R11F_G11F_B10F;
3788
+ @end
3789
+
3790
+
3791
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_half_float")
3792
+ @interface TNS_EXT_color_buffer_half_float : NSObject
3793
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3794
+ @property (nonatomic, readonly) int32_t RGBA16F_EXT;
3795
+ @property (nonatomic, readonly) int32_t RGB16F_EXT;
3796
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
3797
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
3798
+ @end
3799
+
3800
+
3801
+ SWIFT_CLASS_NAMED("TNS_EXT_sRGB")
3802
+ @interface TNS_EXT_sRGB : NSObject
3803
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3804
+ @property (nonatomic, readonly) int32_t SRGB_EXT;
3805
+ @property (nonatomic, readonly) int32_t SRGB_ALPHA_EXT;
3806
+ @property (nonatomic, readonly) int32_t SRGB8_ALPHA8_EXT;
3807
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT;
3808
+ @end
3809
+
3810
+
3811
+ SWIFT_CLASS_NAMED("TNS_EXT_shader_texture_lod")
3812
+ @interface TNS_EXT_shader_texture_lod : NSObject
3813
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3814
+ @end
3815
+
3816
+
3817
+ SWIFT_CLASS_NAMED("TNS_EXT_texture_filter_anisotropic")
3818
+ @interface TNS_EXT_texture_filter_anisotropic : NSObject
3819
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3820
+ @property (nonatomic, readonly) int32_t MAX_TEXTURE_MAX_ANISOTROPY_EXT;
3821
+ @property (nonatomic, readonly) int32_t TEXTURE_MAX_ANISOTROPY_EXT;
3822
+ @end
3823
+
3824
+
3825
+ SWIFT_CLASS_NAMED("TNS_OES_element_index_uint")
3826
+ @interface TNS_OES_element_index_uint : NSObject
3827
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3828
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT;
3829
+ @end
3830
+
3831
+
3832
+ SWIFT_CLASS_NAMED("TNS_OES_fbo_render_mipmap")
3833
+ @interface TNS_OES_fbo_render_mipmap : NSObject
3834
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3835
+ @end
3836
+
3837
+
3838
+ SWIFT_CLASS_NAMED("TNS_OES_standard_derivatives")
3839
+ @interface TNS_OES_standard_derivatives : NSObject
3840
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3841
+ @end
3842
+
3843
+
3844
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float")
3845
+ @interface TNS_OES_texture_float : NSObject
3846
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3847
+ @end
3848
+
3849
+
3850
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float_linear")
3851
+ @interface TNS_OES_texture_float_linear : NSObject
3852
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3853
+ @end
3854
+
3855
+
3856
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float")
3857
+ @interface TNS_OES_texture_half_float : NSObject
3858
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3859
+ @property (nonatomic, readonly) int32_t HALF_FLOAT_OES;
3860
+ @end
3861
+
3862
+
3863
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float_linear")
3864
+ @interface TNS_OES_texture_half_float_linear : NSObject
3865
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3866
+ @end
3867
+
3868
+
3869
+ SWIFT_CLASS_NAMED("TNS_OES_vertex_array_object")
3870
+ @interface TNS_OES_vertex_array_object : NSObject
3871
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3872
+ @property (nonatomic, readonly) int32_t VERTEX_ARRAY_BINDING_OES;
3873
+ - (uint32_t)createVertexArrayOES SWIFT_WARN_UNUSED_RESULT;
3874
+ - (void)deleteVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
3875
+ - (BOOL)isVertexArrayOESWithArrayObject:(uint32_t)arrayObject SWIFT_WARN_UNUSED_RESULT;
3876
+ - (void)bindVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
3877
+ @end
3878
+
3879
+
3880
+ SWIFT_CLASS_NAMED("TNS_WEBGL_color_buffer_float")
3881
+ @interface TNS_WEBGL_color_buffer_float : NSObject
3882
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3883
+ @property (nonatomic, readonly) int32_t RGBA32F_EXT;
3884
+ @property (nonatomic, readonly) int32_t RGB32F_EXT;
3885
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
3886
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
3887
+ @end
3888
+
3889
+
3890
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc")
3891
+ @interface TNS_WEBGL_compressed_texture_etc : NSObject
3892
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3893
+ @property (nonatomic, readonly) int32_t COMPRESSED_R11_EAC;
3894
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_R11_EAC;
3895
+ @property (nonatomic, readonly) int32_t COMPRESSED_RG11_EAC;
3896
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_RG11_EAC;
3897
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_ETC2;
3898
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA8_ETC2_EAC;
3899
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ETC2;
3900
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
3901
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
3902
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
3903
+ @end
3904
+
3905
+
3906
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc1")
3907
+ @interface TNS_WEBGL_compressed_texture_etc1 : NSObject
3908
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3909
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_ETC1_WEBGL;
3910
+ @end
3911
+
3912
+
3913
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_pvrtc")
3914
+ @interface TNS_WEBGL_compressed_texture_pvrtc : NSObject
3915
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3916
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
3917
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
3918
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
3919
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
3920
+ @end
3921
+
3922
+
3923
+ SWIFT_CLASS_NAMED("TNS_WEBGL_depth_texture")
3924
+ @interface TNS_WEBGL_depth_texture : NSObject
3925
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3926
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT_24_8_WEBGL;
3927
+ @end
3928
+
3929
+
3930
+ SWIFT_CLASS_NAMED("TNS_WEBGL_draw_buffers")
3931
+ @interface TNS_WEBGL_draw_buffers : NSObject
3932
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT0_WEBGL;
3933
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT1_WEBGL;
3934
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT2_WEBGL;
3935
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT3_WEBGL;
3936
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT4_WEBGL;
3937
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT5_WEBGL;
3938
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT6_WEBGL;
3939
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT7_WEBGL;
3940
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT8_WEBGL;
3941
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT9_WEBGL;
3942
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT10_WEBGL;
3943
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT11_WEBGL;
3944
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT12_WEBGL;
3945
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT13_WEBGL;
3946
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT14_WEBGL;
3947
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT15_WEBGL;
3948
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER0_WEBGL;
3949
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER1_WEBGL;
3950
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER2_WEBGL;
3951
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER3_WEBGL;
3952
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER4_WEBGL;
3953
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER5_WEBGL;
3954
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER6_WEBGL;
3955
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER7_WEBGL;
3956
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER8_WEBGL;
3957
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER9_WEBGL;
3958
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER10_WEBGL;
3959
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER11_WEBGL;
3960
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER12_WEBGL;
3961
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER13_WEBGL;
3962
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER14_WEBGL;
3963
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER15_WEBGL;
3964
+ @property (nonatomic, readonly) int32_t MAX_COLOR_ATTACHMENTS_WEBGL;
3965
+ @property (nonatomic, readonly) int32_t MAX_DRAW_BUFFERS_WEBGL;
3966
+ - (void)drawBuffersWEBGLWithBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
3967
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3968
+ @end
3969
+
3970
+
3971
+ SWIFT_CLASS_NAMED("TNS_WEBGL_lose_context")
3972
+ @interface TNS_WEBGL_lose_context : NSObject
3973
+ - (nonnull instancetype)initWithCanvas:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
3974
+ - (void)loseContext;
3975
+ - (void)restoreContext;
3976
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
3977
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
3978
+ @end
3979
+
3980
+ @class AVPlayer;
3981
+ @class AVPlayerItemVideoOutput;
3982
+
3983
+ SWIFT_CLASS_NAMED("Utils")
3984
+ @interface Utils : NSObject
3985
+ + (CVOpenGLESTextureCacheRef _Nullable)createTextureCache:(TNSWebGLRenderingContext * _Nonnull)context SWIFT_WARN_UNUSED_RESULT;
3986
+ + (CVOpenGLESTextureRef _Nullable)createImage:(CVOpenGLESTextureCacheRef _Nonnull)texturecache :(CVImageBufferRef _Nonnull)buffer :(CFDictionaryRef _Nullable)textureAttributes :(GLenum)target :(GLint)internalFormat :(GLsizei)width :(GLsizei)height :(GLenum)format :(GLenum)type :(NSInteger)planeIndex SWIFT_WARN_UNUSED_RESULT;
3987
+ + (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
3988
+ + (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
3989
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
3990
+ @end
3991
+
3992
+ #if __has_attribute(external_source_symbol)
3993
+ # pragma clang attribute pop
3994
+ #endif
3995
+ #pragma clang diagnostic pop
3996
+ #endif
3997
+
3998
+ #endif