@nativescript/canvas 1.0.0-alpha.16 → 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 +108 -110
  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,1996 @@
1
+ // Generated by Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
2
+ #ifndef CANVASNATIVE_SWIFT_H
3
+ #define CANVASNATIVE_SWIFT_H
4
+ #pragma clang diagnostic push
5
+ #pragma clang diagnostic ignored "-Wgcc-compat"
6
+
7
+ #if !defined(__has_include)
8
+ # define __has_include(x) 0
9
+ #endif
10
+ #if !defined(__has_attribute)
11
+ # define __has_attribute(x) 0
12
+ #endif
13
+ #if !defined(__has_feature)
14
+ # define __has_feature(x) 0
15
+ #endif
16
+ #if !defined(__has_warning)
17
+ # define __has_warning(x) 0
18
+ #endif
19
+
20
+ #if __has_include(<swift/objc-prologue.h>)
21
+ # include <swift/objc-prologue.h>
22
+ #endif
23
+
24
+ #pragma clang diagnostic ignored "-Wauto-import"
25
+ #include <Foundation/Foundation.h>
26
+ #include <stdint.h>
27
+ #include <stddef.h>
28
+ #include <stdbool.h>
29
+
30
+ #if !defined(SWIFT_TYPEDEFS)
31
+ # define SWIFT_TYPEDEFS 1
32
+ # if __has_include(<uchar.h>)
33
+ # include <uchar.h>
34
+ # elif !defined(__cplusplus)
35
+ typedef uint_least16_t char16_t;
36
+ typedef uint_least32_t char32_t;
37
+ # endif
38
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
39
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
40
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
41
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
42
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
43
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
44
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
45
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
46
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
47
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
48
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
49
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
50
+ #endif
51
+
52
+ #if !defined(SWIFT_PASTE)
53
+ # define SWIFT_PASTE_HELPER(x, y) x##y
54
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
55
+ #endif
56
+ #if !defined(SWIFT_METATYPE)
57
+ # define SWIFT_METATYPE(X) Class
58
+ #endif
59
+ #if !defined(SWIFT_CLASS_PROPERTY)
60
+ # if __has_feature(objc_class_property)
61
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
62
+ # else
63
+ # define SWIFT_CLASS_PROPERTY(...)
64
+ # endif
65
+ #endif
66
+
67
+ #if __has_attribute(objc_runtime_name)
68
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
69
+ #else
70
+ # define SWIFT_RUNTIME_NAME(X)
71
+ #endif
72
+ #if __has_attribute(swift_name)
73
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
74
+ #else
75
+ # define SWIFT_COMPILE_NAME(X)
76
+ #endif
77
+ #if __has_attribute(objc_method_family)
78
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
79
+ #else
80
+ # define SWIFT_METHOD_FAMILY(X)
81
+ #endif
82
+ #if __has_attribute(noescape)
83
+ # define SWIFT_NOESCAPE __attribute__((noescape))
84
+ #else
85
+ # define SWIFT_NOESCAPE
86
+ #endif
87
+ #if __has_attribute(ns_consumed)
88
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
89
+ #else
90
+ # define SWIFT_RELEASES_ARGUMENT
91
+ #endif
92
+ #if __has_attribute(warn_unused_result)
93
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
94
+ #else
95
+ # define SWIFT_WARN_UNUSED_RESULT
96
+ #endif
97
+ #if __has_attribute(noreturn)
98
+ # define SWIFT_NORETURN __attribute__((noreturn))
99
+ #else
100
+ # define SWIFT_NORETURN
101
+ #endif
102
+ #if !defined(SWIFT_CLASS_EXTRA)
103
+ # define SWIFT_CLASS_EXTRA
104
+ #endif
105
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
106
+ # define SWIFT_PROTOCOL_EXTRA
107
+ #endif
108
+ #if !defined(SWIFT_ENUM_EXTRA)
109
+ # define SWIFT_ENUM_EXTRA
110
+ #endif
111
+ #if !defined(SWIFT_CLASS)
112
+ # if __has_attribute(objc_subclassing_restricted)
113
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
114
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
115
+ # else
116
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
117
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
118
+ # endif
119
+ #endif
120
+ #if !defined(SWIFT_RESILIENT_CLASS)
121
+ # if __has_attribute(objc_class_stub)
122
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
123
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
124
+ # else
125
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
126
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
127
+ # endif
128
+ #endif
129
+
130
+ #if !defined(SWIFT_PROTOCOL)
131
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
132
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
133
+ #endif
134
+
135
+ #if !defined(SWIFT_EXTENSION)
136
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
137
+ #endif
138
+
139
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
140
+ # if __has_attribute(objc_designated_initializer)
141
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
142
+ # else
143
+ # define OBJC_DESIGNATED_INITIALIZER
144
+ # endif
145
+ #endif
146
+ #if !defined(SWIFT_ENUM_ATTR)
147
+ # if defined(__has_attribute) && __has_attribute(enum_extensibility)
148
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
149
+ # else
150
+ # define SWIFT_ENUM_ATTR(_extensibility)
151
+ # endif
152
+ #endif
153
+ #if !defined(SWIFT_ENUM)
154
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
155
+ # if __has_feature(generalized_swift_name)
156
+ # 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
157
+ # else
158
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
159
+ # endif
160
+ #endif
161
+ #if !defined(SWIFT_UNAVAILABLE)
162
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
163
+ #endif
164
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
165
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
166
+ #endif
167
+ #if !defined(SWIFT_AVAILABILITY)
168
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
169
+ #endif
170
+ #if !defined(SWIFT_WEAK_IMPORT)
171
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
172
+ #endif
173
+ #if !defined(SWIFT_DEPRECATED)
174
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
175
+ #endif
176
+ #if !defined(SWIFT_DEPRECATED_MSG)
177
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
178
+ #endif
179
+ #if __has_feature(attribute_diagnose_if_objc)
180
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
181
+ #else
182
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
183
+ #endif
184
+ #if !defined(IBSegueAction)
185
+ # define IBSegueAction
186
+ #endif
187
+ #if __has_feature(modules)
188
+ #if __has_warning("-Watimport-in-framework-header")
189
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
190
+ #endif
191
+ @import CoreFoundation;
192
+ @import CoreGraphics;
193
+ @import CoreVideo;
194
+ @import Dispatch;
195
+ @import Foundation;
196
+ @import GLKit;
197
+ @import ObjectiveC;
198
+ @import OpenGLES;
199
+ @import UIKit;
200
+ #endif
201
+
202
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
203
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
204
+ #if __has_warning("-Wpragma-clang-attribute")
205
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
206
+ #endif
207
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
208
+ #pragma clang diagnostic ignored "-Wnullability"
209
+
210
+ #if __has_attribute(external_source_symbol)
211
+ # pragma push_macro("any")
212
+ # undef any
213
+ # 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))
214
+ # pragma pop_macro("any")
215
+ #endif
216
+
217
+ @class NSNumber;
218
+ @class NSCoder;
219
+
220
+ SWIFT_CLASS_NAMED("CanvasCPUView")
221
+ @interface CanvasCPUView : UIView
222
+ @property (nonatomic) BOOL ignorePixelScaling;
223
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
224
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
225
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
226
+ - (void)drawRect:(CGRect)rect;
227
+ @end
228
+
229
+ typedef SWIFT_ENUM_NAMED(NSInteger, CanvasColorStyleType, "CanvasColorStyleType", open) {
230
+ CanvasColorStyleTypeColor = 0,
231
+ CanvasColorStyleTypeGradient = 1,
232
+ CanvasColorStyleTypePattern = 2,
233
+ };
234
+
235
+ @class EAGLContext;
236
+
237
+ SWIFT_CLASS_NAMED("CanvasGLKView")
238
+ @interface CanvasGLKView : GLKView
239
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
240
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
241
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
242
+ - (void)setNeedsDisplay;
243
+ - (void)setNeedsDisplayInRect:(CGRect)rect;
244
+ - (nonnull instancetype)initWithFrame:(CGRect)frame context:(EAGLContext * _Nonnull)context SWIFT_UNAVAILABLE;
245
+ @end
246
+
247
+
248
+ SWIFT_CLASS("_TtC12CanvasNative10GLRenderer")
249
+ @interface GLRenderer : NSObject <GLKViewDelegate>
250
+ - (void)glkView:(GLKView * _Nonnull)view drawInRect:(CGRect)rect;
251
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
252
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
253
+ @end
254
+
255
+
256
+ SWIFT_PROTOCOL("_TtP12CanvasNative17ICanvasColorStyle_")
257
+ @protocol ICanvasColorStyle
258
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
259
+ @end
260
+
261
+ @class NSString;
262
+
263
+ SWIFT_CLASS_NAMED("TNSAnimationFrame")
264
+ @interface TNSAnimationFrame : NSObject
265
+ + (void)requestAnimationFrameToLoop:(void (^ _Nonnull)(float))toLoop;
266
+ + (void)cancelAnimationFrameWithId:(NSString * _Nonnull)id;
267
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
268
+ @end
269
+
270
+ @class TNSDOMMatrix;
271
+ @protocol TNSCanvasListener;
272
+ @class TNSCanvasRenderingContext;
273
+ @class NSDictionary;
274
+
275
+ SWIFT_CLASS_NAMED("TNSCanvas")
276
+ @interface TNSCanvas : UIView
277
+ + (NSMapTable<NSString *, TNSCanvas *> * _Nonnull)getViews SWIFT_WARN_UNUSED_RESULT;
278
+ - (void * _Nullable)getViewPtr SWIFT_WARN_UNUSED_RESULT;
279
+ @property (nonatomic) BOOL ignorePixelScaling;
280
+ + (TNSDOMMatrix * _Nonnull)createSVGMatrix SWIFT_WARN_UNUSED_RESULT;
281
+ @property (nonatomic) BOOL handleInvalidationManually;
282
+ - (void)didDraw;
283
+ - (NSString * _Nonnull)toDataURL SWIFT_WARN_UNUSED_RESULT;
284
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
285
+ - (NSString * _Nonnull)toDataURL:(NSString * _Nonnull)type :(float)format SWIFT_WARN_UNUSED_RESULT;
286
+ - (void)toDataURLAsync:(void (^ _Nonnull)(NSString * _Nonnull))callback;
287
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(void (^ _Nonnull)(NSString * _Nonnull))callback;
288
+ - (void)toDataURLAsync:(NSString * _Nonnull)type :(float)format :(void (^ _Nonnull)(NSString * _Nonnull))callback;
289
+ - (NSArray<NSNumber *> * _Nonnull)snapshot SWIFT_WARN_UNUSED_RESULT;
290
+ @property (nonatomic, readonly) BOOL isGL;
291
+ - (GLint)getId SWIFT_WARN_UNUSED_RESULT;
292
+ @property (nonatomic, readonly) float width;
293
+ @property (nonatomic, readonly) float height;
294
+ - (void)updateDirection:(NSString * _Nonnull)direction;
295
+ @property (nonatomic) int64_t context;
296
+ - (void)doDraw;
297
+ - (void)flush;
298
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
299
+ - (nonnull instancetype)initWithFrame:(CGRect)frame useCpu:(BOOL)useCpu OBJC_DESIGNATED_INITIALIZER;
300
+ - (void)setListener:(id <TNSCanvasListener> _Nullable)listener;
301
+ @property (nonatomic, readonly) float fps;
302
+ - (void)layoutSubviews;
303
+ - (void)resume;
304
+ - (void)pause;
305
+ - (void)moveToMain;
306
+ - (void)moveOffMain;
307
+ - (void)handleMoveOffMain;
308
+ - (void)handleMoveToMain;
309
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type SWIFT_WARN_UNUSED_RESULT;
310
+ - (TNSCanvasRenderingContext * _Nullable)getContext:(NSString * _Nonnull)type contextAttributes:(NSDictionary * _Nonnull)contextAttributes SWIFT_WARN_UNUSED_RESULT;
311
+ - (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
312
+ @end
313
+
314
+
315
+ SWIFT_PROTOCOL_NAMED("TNSCanvasListener")
316
+ @protocol TNSCanvasListener
317
+ - (void)contextReady;
318
+ @end
319
+
320
+
321
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext")
322
+ @interface TNSCanvasRenderingContext : NSObject
323
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
324
+ @end
325
+
326
+ enum TNSCompositeOperationType : NSInteger;
327
+ enum TNSImageSmoothingQuality : uint32_t;
328
+ enum TNSLineCap : NSInteger;
329
+ enum TNSLineJoin : NSInteger;
330
+ enum TNSTextAlignment : NSInteger;
331
+ enum TNSTextBaseLine : NSInteger;
332
+ @class TNSPath2D;
333
+ enum TNSFillRule : NSInteger;
334
+ @class TNSLinearGradient;
335
+ @class TNSRadialGradient;
336
+ enum TNSPatternRepetition : NSInteger;
337
+ @class TNSImageData;
338
+ @class TNSTextMetrics;
339
+
340
+ SWIFT_CLASS_NAMED("TNSCanvasRenderingContext2D")
341
+ @interface TNSCanvasRenderingContext2D : TNSCanvasRenderingContext
342
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
343
+ @property (nonatomic, copy) NSString * _Nonnull font;
344
+ @property (nonatomic, copy) NSString * _Nonnull filter;
345
+ @property (nonatomic) float globalAlpha;
346
+ @property (nonatomic) enum TNSCompositeOperationType globalCompositeOperation;
347
+ @property (nonatomic) BOOL imageSmoothingEnabled;
348
+ @property (nonatomic) enum TNSImageSmoothingQuality imageSmoothingQuality;
349
+ @property (nonatomic) enum TNSLineCap lineCap;
350
+ @property (nonatomic) float lineDashOffset;
351
+ @property (nonatomic) float lineWidth;
352
+ @property (nonatomic) enum TNSLineJoin lineJoin;
353
+ @property (nonatomic) float miterLimit;
354
+ @property (nonatomic) float shadowBlur;
355
+ @property (nonatomic, copy) NSString * _Nonnull shadowColor;
356
+ @property (nonatomic) float shadowOffsetX;
357
+ @property (nonatomic) float shadowOffsetY;
358
+ @property (nonatomic) enum TNSTextAlignment textAlign;
359
+ @property (nonatomic) enum TNSTextBaseLine textBaseline;
360
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull fillStyle;
361
+ @property (nonatomic, strong) id <ICanvasColorStyle> _Nonnull strokeStyle;
362
+ - (void)fillRect:(float)x :(float)y :(float)width :(float)height;
363
+ - (void)strokeRect:(float)x :(float)y :(float)width :(float)height;
364
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y;
365
+ - (void)fillText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
366
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y;
367
+ - (void)strokeText:(NSString * _Nonnull)text :(float)x :(float)y :(float)width;
368
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
369
+ - (void)fill;
370
+ - (void)fillWithValue:(id _Nonnull)value;
371
+ - (void)fill:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
372
+ - (void)stroke;
373
+ - (void)stroke:(TNSPath2D * _Nullable)path;
374
+ - (void)beginPath;
375
+ - (void)moveTo:(float)x :(float)y;
376
+ - (void)lineTo:(float)x :(float)y;
377
+ - (void)closePath;
378
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
379
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
380
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
381
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
382
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
383
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
384
+ - (void)clip;
385
+ - (void)clip:(id _Nonnull)value;
386
+ - (void)clip:(TNSPath2D * _Nonnull)path :(enum TNSFillRule)rule;
387
+ - (void)clearRect:(float)x :(float)y :(float)width :(float)height;
388
+ - (void)setLineDash:(NSArray<NSNumber *> * _Nonnull)segments;
389
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
390
+ - (TNSLinearGradient * _Nonnull)createLinearGradient:(float)x0 :(float)y0 :(float)x1 :(float)y1 SWIFT_WARN_UNUSED_RESULT;
391
+ - (TNSRadialGradient * _Nonnull)createRadialGradient:(float)x0 :(float)y0 :(float)r0 :(float)x1 :(float)y1 :(float)r1 SWIFT_WARN_UNUSED_RESULT;
392
+ - (id _Nullable)createPattern:(id _Nonnull)value :(enum TNSPatternRepetition)repetition SWIFT_WARN_UNUSED_RESULT;
393
+ - (void)setTransform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
394
+ - (void)scale:(float)x :(float)y;
395
+ - (void)rotate:(float)angle;
396
+ - (void)translate:(float)x :(float)y;
397
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
398
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy;
399
+ - (void)drawImage:(id _Nonnull)image :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
400
+ - (void)drawImage:(id _Nonnull)image :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(float)dx :(float)dy :(float)dWidth :(float)dHeight;
401
+ - (TNSImageData * _Nonnull)createImageData:(int32_t)width :(int32_t)height SWIFT_WARN_UNUSED_RESULT;
402
+ - (TNSImageData * _Nonnull)createImageData:(TNSImageData * _Nonnull)imageData SWIFT_WARN_UNUSED_RESULT;
403
+ - (TNSImageData * _Nonnull)getImageData:(float)sx :(float)sy :(float)sw :(float)sh SWIFT_WARN_UNUSED_RESULT;
404
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy;
405
+ - (void)putImageData:(TNSImageData * _Nonnull)imageData :(float)dx :(float)dy :(float)dirtyX :(float)dirtyY :(float)dirtyWidth :(float)dirtyHeight;
406
+ - (NSArray<NSNumber *> * _Nonnull)getLineDash SWIFT_WARN_UNUSED_RESULT;
407
+ - (void)save;
408
+ - (void)restore;
409
+ - (TNSTextMetrics * _Nonnull)measureText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
410
+ - (void)resetTransform;
411
+ - (void)transform:(float)a :(float)b :(float)c :(float)d :(float)e :(float)f;
412
+ - (BOOL)isPointInPath:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
413
+ - (BOOL)isPointInPath:(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
414
+ - (BOOL)isPointInPath:(TNSPath2D * _Nonnull)path :(float)x :(float)y :(enum TNSFillRule)fillRule SWIFT_WARN_UNUSED_RESULT;
415
+ - (BOOL)isPointInStroke:(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
416
+ - (BOOL)isPointInStroke:(TNSPath2D * _Nonnull)path :(float)x :(float)y SWIFT_WARN_UNUSED_RESULT;
417
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
418
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
419
+ @end
420
+
421
+
422
+ SWIFT_CLASS_NAMED("TNSColorStyle")
423
+ @interface TNSColorStyle : NSObject
424
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
425
+ @end
426
+
427
+
428
+ SWIFT_CLASS_NAMED("TNSColor")
429
+ @interface TNSColor : NSObject <ICanvasColorStyle>
430
+ - (nonnull instancetype)init:(NSString * _Nonnull)color OBJC_DESIGNATED_INITIALIZER;
431
+ @property (nonatomic, readonly, copy) NSString * _Nonnull color;
432
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
433
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
434
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
435
+ @end
436
+
437
+
438
+ SWIFT_CLASS_NAMED("TNSGradient")
439
+ @interface TNSGradient : NSObject <ICanvasColorStyle>
440
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
441
+ - (void)addColorStop:(float)offset :(NSString * _Nonnull)color;
442
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
443
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
444
+ @end
445
+
446
+
447
+ SWIFT_CLASS_NAMED("TNSLinearGradient")
448
+ @interface TNSLinearGradient : TNSGradient
449
+ @end
450
+
451
+
452
+ SWIFT_CLASS_NAMED("TNSRadialGradient")
453
+ @interface TNSRadialGradient : TNSGradient
454
+ @end
455
+
456
+
457
+ SWIFT_CLASS_NAMED("TNSPattern")
458
+ @interface TNSPattern : NSObject <ICanvasColorStyle>
459
+ - (void)setTransformWithMatrix:(TNSDOMMatrix * _Nonnull)matrix;
460
+ - (enum CanvasColorStyleType)getStyleType SWIFT_WARN_UNUSED_RESULT;
461
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
462
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
463
+ @end
464
+
465
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSCompositeOperationType, "TNSCompositeOperationType", open) {
466
+ TNSCompositeOperationTypeSourceOver = 0,
467
+ TNSCompositeOperationTypeSourceIn = 1,
468
+ TNSCompositeOperationTypeSourceOut = 2,
469
+ TNSCompositeOperationTypeSourceAtop = 3,
470
+ TNSCompositeOperationTypeDestinationOver = 4,
471
+ TNSCompositeOperationTypeDestinationIn = 5,
472
+ TNSCompositeOperationTypeDestinationOut = 6,
473
+ TNSCompositeOperationTypeDestinationAtop = 7,
474
+ TNSCompositeOperationTypeLighter = 8,
475
+ TNSCompositeOperationTypeCopy = 9,
476
+ TNSCompositeOperationTypeXor = 10,
477
+ TNSCompositeOperationTypeMultiply = 11,
478
+ TNSCompositeOperationTypeScreen = 12,
479
+ TNSCompositeOperationTypeOverlay = 13,
480
+ TNSCompositeOperationTypeDarken = 14,
481
+ TNSCompositeOperationTypeLighten = 15,
482
+ TNSCompositeOperationTypeColorDodge = 16,
483
+ TNSCompositeOperationTypeColorBurn = 17,
484
+ TNSCompositeOperationTypeHardLight = 18,
485
+ TNSCompositeOperationTypeSoftLight = 19,
486
+ TNSCompositeOperationTypeDifference = 20,
487
+ TNSCompositeOperationTypeExclusion = 21,
488
+ TNSCompositeOperationTypeHue = 22,
489
+ TNSCompositeOperationTypeSaturation = 23,
490
+ TNSCompositeOperationTypeColor = 24,
491
+ TNSCompositeOperationTypeLuminosity = 25,
492
+ };
493
+
494
+
495
+ SWIFT_CLASS_NAMED("TNSDOMMatrix")
496
+ @interface TNSDOMMatrix : NSObject
497
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
498
+ @property (nonatomic) float a;
499
+ @property (nonatomic) float b;
500
+ @property (nonatomic) float c;
501
+ @property (nonatomic) float d;
502
+ @property (nonatomic) float e;
503
+ @property (nonatomic) float f;
504
+ @property (nonatomic) float m11;
505
+ @property (nonatomic) float m12;
506
+ @property (nonatomic) float m13;
507
+ @property (nonatomic) float m14;
508
+ @property (nonatomic) float m21;
509
+ @property (nonatomic) float m22;
510
+ @property (nonatomic) float m23;
511
+ @property (nonatomic) float m24;
512
+ @property (nonatomic) float m31;
513
+ @property (nonatomic) float m32;
514
+ @property (nonatomic) float m33;
515
+ @property (nonatomic) float m34;
516
+ @property (nonatomic) float m41;
517
+ @property (nonatomic) float m42;
518
+ @property (nonatomic) float m43;
519
+ @property (nonatomic) float m44;
520
+ @end
521
+
522
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSFillRule, "TNSFillRule", open) {
523
+ TNSFillRuleNonZero = 0,
524
+ TNSFillRuleEvenOdd = 1,
525
+ };
526
+
527
+
528
+ SWIFT_CLASS_NAMED("TNSFramebufferAttachmentParameter")
529
+ @interface TNSFramebufferAttachmentParameter : NSObject
530
+ @property (nonatomic, readonly) BOOL isTexture;
531
+ @property (nonatomic, readonly) BOOL isRenderbuffer;
532
+ @property (nonatomic, readonly) int32_t value;
533
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
534
+ - (nonnull instancetype)initWithIsTexture:(BOOL)isTexture isRenderbuffer:(BOOL)isRenderbuffer value:(int32_t)value OBJC_DESIGNATED_INITIALIZER;
535
+ @end
536
+
537
+ @class UIImage;
538
+ enum TNSImageAssetFormat : NSInteger;
539
+
540
+ SWIFT_CLASS_NAMED("TNSImageAsset")
541
+ @interface TNSImageAsset : NSObject
542
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, strong) dispatch_queue_t _Nullable _queue;)
543
+ + (dispatch_queue_t _Nullable)_queue SWIFT_WARN_UNUSED_RESULT;
544
+ + (void)set_queue:(dispatch_queue_t _Nullable)value;
545
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
546
+ - (BOOL)loadImageFromPathWithPath:(NSString * _Nonnull)path SWIFT_WARN_UNUSED_RESULT;
547
+ - (BOOL)loadImageFromUrlWithUrl:(NSString * _Nonnull)url SWIFT_WARN_UNUSED_RESULT;
548
+ - (void)loadImageFromUrlAsyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
549
+ - (void)loadImageFromPathAsyncWithPath:(NSString * _Nonnull)path callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
550
+ - (BOOL)loadImageFromBytesWithArray:(NSArray<NSNumber *> * _Nonnull)array SWIFT_WARN_UNUSED_RESULT;
551
+ - (void)loadImageFromBytesAsyncWithArray:(NSArray<NSNumber *> * _Nonnull)array callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
552
+ - (BOOL)loadImageFromImageWithImage:(UIImage * _Nonnull)image SWIFT_WARN_UNUSED_RESULT;
553
+ - (void)loadImageFromImageAsyncWithImage:(UIImage * _Nonnull)image callback:(void (^ _Nonnull)(NSString * _Nullable))callback;
554
+ - (uint8_t * _Nullable)getRawBytes SWIFT_WARN_UNUSED_RESULT;
555
+ @property (nonatomic, readonly) int32_t width;
556
+ @property (nonatomic, readonly) int32_t height;
557
+ - (void)flipX;
558
+ - (void)flipY;
559
+ - (void)scaleWithX:(uint32_t)x y:(uint32_t)y;
560
+ - (BOOL)saveWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format SWIFT_WARN_UNUSED_RESULT;
561
+ - (void)saveAsyncWithPath:(NSString * _Nonnull)path format:(enum TNSImageAssetFormat)format callback:(void (^ _Nonnull)(BOOL))callback;
562
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
563
+ @end
564
+
565
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageAssetFormat, "TNSImageAssetFormat", open) {
566
+ TNSImageAssetFormatJPG = 0,
567
+ TNSImageAssetFormatPNG = 1,
568
+ TNSImageAssetFormatICO = 2,
569
+ TNSImageAssetFormatBMP = 3,
570
+ TNSImageAssetFormatTIFF = 4,
571
+ };
572
+
573
+ @class TNSImageBitmapOptions;
574
+ @class NSData;
575
+
576
+ SWIFT_CLASS_NAMED("TNSImageBitmap")
577
+ @interface TNSImageBitmap : NSObject
578
+ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) dispatch_queue_t _Nonnull queue;)
579
+ + (dispatch_queue_t _Nonnull)queue SWIFT_WARN_UNUSED_RESULT;
580
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
581
+ + (void)createFromImageBitmap:(TNSImageBitmap * _Nonnull)imageBitmap :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
582
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
583
+ + (void)createFromImageAsset:(TNSImageAsset * _Nonnull)imageAsset :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
584
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
585
+ + (void)createFromImageData:(TNSImageData * _Nonnull)imageData :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
586
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
587
+ + (void)createFromCanvas:(TNSCanvas * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
588
+ + (void)createFromData:(NSData * _Nonnull)data :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
589
+ + (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;
590
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
591
+ + (void)createFromDataEncoded:(NSData * _Nonnull)data :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
592
+ + (void)createFromBytes:(NSArray<NSNumber *> * _Nonnull)bytes :(float)imageWidth :(float)imageHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
593
+ + (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;
594
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
595
+ + (void)createFromBytesEncoded:(NSArray<NSNumber *> * _Nonnull)bytes :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
596
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
597
+ + (void)createFromUIImage:(UIImage * _Nonnull)canvas :(float)sx :(float)sy :(float)sWidth :(float)sHeight :(TNSImageBitmapOptions * _Nonnull)options :(void (^ _Nonnull)(TNSImageBitmap * _Nullable, NSString * _Nullable))callback;
598
+ @property (nonatomic, readonly) int32_t width;
599
+ @property (nonatomic, readonly) int32_t height;
600
+ - (void)close;
601
+ @property (nonatomic, readonly, copy) NSString * _Nullable error;
602
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
603
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
604
+ @end
605
+
606
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapColorSpaceConversion, "TNSImageBitmapColorSpaceConversion", open) {
607
+ TNSImageBitmapColorSpaceConversionDefault = 0,
608
+ TNSImageBitmapColorSpaceConversionNone = 1,
609
+ };
610
+
611
+ enum TNSImageBitmapPremultiplyAlpha : NSInteger;
612
+ enum TNSImageBitmapResizeQuality : NSInteger;
613
+
614
+ SWIFT_CLASS_NAMED("TNSImageBitmapOptions")
615
+ @interface TNSImageBitmapOptions : NSObject
616
+ @property (nonatomic) BOOL flipY;
617
+ @property (nonatomic) enum TNSImageBitmapPremultiplyAlpha premultiplyAlpha;
618
+ @property (nonatomic) enum TNSImageBitmapColorSpaceConversion colorSpaceConversion;
619
+ @property (nonatomic) enum TNSImageBitmapResizeQuality resizeQuality;
620
+ @property (nonatomic) float resizeWidth;
621
+ @property (nonatomic) float resizeHeight;
622
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
623
+ @end
624
+
625
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapPremultiplyAlpha, "TNSImageBitmapPremultiplyAlpha", open) {
626
+ TNSImageBitmapPremultiplyAlphaDefault = 0,
627
+ TNSImageBitmapPremultiplyAlphaPremultiply = 1,
628
+ TNSImageBitmapPremultiplyAlphaNone = 2,
629
+ };
630
+
631
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSImageBitmapResizeQuality, "TNSImageBitmapResizeQuality", open) {
632
+ TNSImageBitmapResizeQualityLow = 0,
633
+ TNSImageBitmapResizeQualityMedium = 1,
634
+ TNSImageBitmapResizeQualityHigh = 2,
635
+ TNSImageBitmapResizeQualityPixelated = 3,
636
+ };
637
+
638
+
639
+ SWIFT_CLASS_NAMED("TNSImageData")
640
+ @interface TNSImageData : NSObject
641
+ @property (nonatomic, readonly, strong) NSData * _Nonnull data;
642
+ @property (nonatomic, readonly) int32_t width;
643
+ @property (nonatomic, readonly) int32_t height;
644
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
645
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
646
+ @end
647
+
648
+ typedef SWIFT_ENUM_NAMED(uint32_t, TNSImageSmoothingQuality, "TNSImageSmoothingQuality", open) {
649
+ TNSImageSmoothingQualityLow = 0,
650
+ TNSImageSmoothingQualityMedium = 1,
651
+ TNSImageSmoothingQualityHigh = 2,
652
+ };
653
+
654
+
655
+ SWIFT_CLASS_NAMED("TNSIndexedParameter")
656
+ @interface TNSIndexedParameter : NSObject
657
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
658
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
659
+ @end
660
+
661
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineCap, "TNSLineCap", open) {
662
+ TNSLineCapButt = 0,
663
+ TNSLineCapRound = 1,
664
+ TNSLineCapSquare = 2,
665
+ };
666
+
667
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSLineJoin, "TNSLineJoin", open) {
668
+ TNSLineJoinRound = 0,
669
+ TNSLineJoinBevel = 1,
670
+ TNSLineJoinMiter = 2,
671
+ };
672
+
673
+
674
+ SWIFT_CLASS_NAMED("TNSPath2D")
675
+ @interface TNSPath2D : NSObject
676
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
677
+ - (nonnull instancetype)initWithPath:(TNSPath2D * _Nonnull)path OBJC_DESIGNATED_INITIALIZER;
678
+ - (nonnull instancetype)initWithData:(NSString * _Nonnull)data OBJC_DESIGNATED_INITIALIZER;
679
+ - (void)addPath:(TNSPath2D * _Nonnull)path;
680
+ - (void)addPath:(TNSPath2D * _Nonnull)path :(TNSDOMMatrix * _Nullable)transform;
681
+ - (void)closePath;
682
+ - (void)moveTo:(float)x :(float)y;
683
+ - (void)lineTo:(float)x :(float)y;
684
+ - (void)bezierCurveTo:(float)cp1x :(float)cp1y :(float)cp2x :(float)cp2y :(float)x :(float)y;
685
+ - (void)quadraticCurveTo:(float)cpx :(float)cpy :(float)x :(float)y;
686
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle;
687
+ - (void)arc:(float)x :(float)y :(float)radius :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
688
+ - (void)arcTo:(float)x1 :(float)y1 :(float)x2 :(float)y2 :(float)radius;
689
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle;
690
+ - (void)ellipse:(float)x :(float)y :(float)radiusX :(float)radiusY :(float)rotation :(float)startAngle :(float)endAngle :(BOOL)anticlockwise;
691
+ - (void)rect:(float)x :(float)y :(float)width :(float)height;
692
+ @end
693
+
694
+ typedef SWIFT_ENUM(NSInteger, TNSPatternRepetition, open) {
695
+ TNSPatternRepetitionRepeat = 0,
696
+ TNSPatternRepetitionRepeatX = 1,
697
+ TNSPatternRepetitionRepeatY = 2,
698
+ TNSPatternRepetitionNoRepeat = 3,
699
+ };
700
+
701
+
702
+ SWIFT_CLASS_NAMED("TNSRender")
703
+ @interface TNSRender : NSObject
704
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
705
+ - (void)createSurface;
706
+ @end
707
+
708
+
709
+ SWIFT_CLASS_NAMED("TNSSVG")
710
+ @interface TNSSVG : UIView
711
+ @property (nonatomic) BOOL ignorePixelScaling;
712
+ @property (nonatomic, copy) NSString * _Nullable src;
713
+ @property (nonatomic, copy) NSString * _Nullable srcPath;
714
+ - (void)layoutSubviews;
715
+ - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
716
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
717
+ - (void)drawRect:(CGRect)rect;
718
+ @end
719
+
720
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextAlignment, "TNSTextAlignment", open) {
721
+ TNSTextAlignmentStart = 0,
722
+ TNSTextAlignmentLeft = 1,
723
+ TNSTextAlignmentCenter = 2,
724
+ TNSTextAlignmentRight = 3,
725
+ TNSTextAlignmentEnd = 4,
726
+ };
727
+
728
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextBaseLine, "TNSTextBaseLine", open) {
729
+ TNSTextBaseLineTop = 0,
730
+ TNSTextBaseLineHanging = 1,
731
+ TNSTextBaseLineMiddle = 2,
732
+ TNSTextBaseLineAlphabetic = 3,
733
+ TNSTextBaseLineIdeographic = 4,
734
+ TNSTextBaseLineBottom = 5,
735
+ };
736
+
737
+
738
+ SWIFT_CLASS_NAMED("TNSTextDecoder")
739
+ @interface TNSTextDecoder : NSObject
740
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
741
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
742
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
743
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer SWIFT_WARN_UNUSED_RESULT;
744
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
745
+ - (NSString * _Nonnull)decodeWithBuffer:(NSData * _Nonnull)buffer offset:(NSInteger)offset length:(NSInteger)length SWIFT_WARN_UNUSED_RESULT;
746
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
747
+ - (NSString * _Nonnull)decodeWithU8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
748
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
749
+ - (NSString * _Nonnull)decodeWithI8:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
750
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
751
+ - (NSString * _Nonnull)decodeWithU16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
752
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
753
+ - (NSString * _Nonnull)decodeWithI16:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
754
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
755
+ - (NSString * _Nonnull)decodeWithI32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
756
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size SWIFT_WARN_UNUSED_RESULT;
757
+ - (NSString * _Nonnull)decodeWithU32:(void * _Nonnull)buffer :(NSInteger)size offset:(NSInteger)offset SWIFT_WARN_UNUSED_RESULT;
758
+ - (NSString * _Nonnull)decodeWithBytes:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
759
+ - (NSString * _Nonnull)decodeWithI8:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
760
+ - (NSString * _Nonnull)decodeWithU16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
761
+ - (NSString * _Nonnull)decodeWithI16:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
762
+ - (NSString * _Nonnull)decodeWithI32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
763
+ - (NSString * _Nonnull)decodeWithU32:(NSArray<NSNumber *> * _Nonnull)bytes SWIFT_WARN_UNUSED_RESULT;
764
+ @end
765
+
766
+ typedef SWIFT_ENUM_NAMED(NSInteger, TNSTextDirection, "TNSTextDirection", open) {
767
+ TNSTextDirectionLtr = 0,
768
+ TNSTextDirectionRtl = 1,
769
+ };
770
+
771
+
772
+ SWIFT_CLASS_NAMED("TNSTextEncoder")
773
+ @interface TNSTextEncoder : NSObject
774
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
775
+ - (nonnull instancetype)initWithEncoding:(NSString * _Nonnull)encoding OBJC_DESIGNATED_INITIALIZER;
776
+ @property (nonatomic, readonly, copy) NSString * _Nonnull encoding;
777
+ - (NSData * _Nonnull)encodeWithText:(NSString * _Nonnull)text SWIFT_WARN_UNUSED_RESULT;
778
+ - (NSData * _Nonnull)encodeWithPointer:(int8_t const * _Nullable)text SWIFT_WARN_UNUSED_RESULT;
779
+ @end
780
+
781
+
782
+ SWIFT_CLASS_NAMED("TNSTextMetrics")
783
+ @interface TNSTextMetrics : NSObject
784
+ @property (nonatomic, readonly) float width;
785
+ @property (nonatomic, readonly) float actualBoundingBoxLeft;
786
+ @property (nonatomic, readonly) float actualBoundingBoxRight;
787
+ @property (nonatomic, readonly) float actualBoundingBoxAscent;
788
+ @property (nonatomic, readonly) float actualBoundingBoxDescent;
789
+ @property (nonatomic, readonly) float fontBoundingBoxAscent;
790
+ @property (nonatomic, readonly) float fontBoundingBoxDescent;
791
+ @property (nonatomic, readonly) float emHeightAscent;
792
+ @property (nonatomic, readonly) float emHeightDescent;
793
+ @property (nonatomic, readonly) float hangingBaseline;
794
+ @property (nonatomic, readonly) float alphabeticBaseline;
795
+ @property (nonatomic, readonly) float ideographicBaseline;
796
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
797
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
798
+ @end
799
+
800
+ @class NSNull;
801
+ @class TNSWebGLActiveInfo;
802
+ @class TNSWebGLShaderPrecisionFormat;
803
+
804
+ SWIFT_CLASS_NAMED("TNSWebGLRenderingContext")
805
+ @interface TNSWebGLRenderingContext : TNSCanvasRenderingContext
806
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
807
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
808
+ - (TNSCanvas * _Nonnull)getCanvas SWIFT_WARN_UNUSED_RESULT;
809
+ @property (nonatomic, readonly) int32_t drawingBufferWidth;
810
+ @property (nonatomic, readonly) int32_t drawingBufferHeight;
811
+ - (void)activeTexture:(uint32_t)texture;
812
+ - (void)attachShader:(uint32_t)program :(uint32_t)shader;
813
+ - (void)bindAttribLocation:(uint32_t)program :(uint32_t)index :(NSString * _Nonnull)name;
814
+ - (void)bindBuffer:(uint32_t)target :(uint32_t)buffer;
815
+ - (void)bindFramebuffer:(uint32_t)target :(uint32_t)framebuffer;
816
+ - (void)bindRenderbuffer:(uint32_t)target :(uint32_t)renderbuffer;
817
+ - (void)bindTexture:(uint32_t)target :(uint32_t)texture;
818
+ - (void)blendColor:(float)red :(float)green :(float)blue :(float)alpha;
819
+ - (void)blendEquation:(uint32_t)mode;
820
+ - (void)blendEquationSeparate:(uint32_t)modeRGB :(uint32_t)modeAlpha;
821
+ - (void)blendFunc:(uint32_t)sfactor :(uint32_t)dfactor;
822
+ - (void)blendFuncSeparate:(uint32_t)srcRGB :(uint32_t)dstRGB :(uint32_t)srcAlpha :(uint32_t)dstAlpha;
823
+ - (void)bufferData:(uint32_t)target size:(NSInteger)size :(uint32_t)usage;
824
+ - (void)bufferData:(uint32_t)target srcData:(NSNull * _Nonnull)srcData :(uint32_t)usage;
825
+ - (void)bufferData:(uint32_t)target i8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
826
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage;
827
+ - (void)bufferData:(uint32_t)target srcData:(void * _Nonnull)srcData size:(NSInteger)size :(uint32_t)usage offset:(NSInteger)offset;
828
+ - (void)bufferData:(uint32_t)target u8:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
829
+ - (void)bufferData:(uint32_t)target i16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
830
+ - (void)bufferData:(uint32_t)target u16:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
831
+ - (void)bufferData:(uint32_t)target i32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
832
+ - (void)bufferData:(uint32_t)target u32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
833
+ - (void)bufferData:(uint32_t)target f32:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
834
+ - (void)bufferData:(uint32_t)target f64:(NSArray<NSNumber *> * _Nonnull)srcData :(uint32_t)usage;
835
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset :(NSNull * _Nonnull)srcData;
836
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i8:(NSArray<NSNumber *> * _Nonnull)srcData;
837
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size;
838
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset srcData:(void * _Nonnull)srcData size:(NSInteger)size os:(NSInteger)os;
839
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u8:(NSArray<NSNumber *> * _Nonnull)srcData;
840
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i16:(NSArray<NSNumber *> * _Nonnull)srcData;
841
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u16:(NSArray<NSNumber *> * _Nonnull)srcData;
842
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset i32:(NSArray<NSNumber *> * _Nonnull)srcData;
843
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset u32:(NSArray<NSNumber *> * _Nonnull)srcData;
844
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f32:(NSArray<NSNumber *> * _Nonnull)srcData;
845
+ - (void)bufferSubData:(uint32_t)target :(NSInteger)offset f64:(NSArray<NSNumber *> * _Nonnull)srcData;
846
+ - (uint32_t)checkFramebufferStatus:(uint32_t)target SWIFT_WARN_UNUSED_RESULT;
847
+ - (void)clear:(uint32_t)mask;
848
+ - (void)clearColor:(float)red :(float)green :(float)blue :(float)alpha;
849
+ - (void)clearDepth:(float)depth;
850
+ - (void)clearStencil:(int32_t)stencil;
851
+ - (void)colorMask:(BOOL)red :(BOOL)green :(BOOL)blue :(BOOL)alpha;
852
+ - (void)commit;
853
+ - (void)compileShader:(uint32_t)shader;
854
+ - (void)compressedTexImage2D:(uint32_t)target :(int32_t)level :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)border :(NSData * _Nullable)pixels;
855
+ - (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;
856
+ - (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;
857
+ - (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;
858
+ - (uint32_t)createBuffer SWIFT_WARN_UNUSED_RESULT;
859
+ - (uint32_t)createFramebuffer SWIFT_WARN_UNUSED_RESULT;
860
+ - (uint32_t)createProgram SWIFT_WARN_UNUSED_RESULT;
861
+ - (uint32_t)createRenderbuffer SWIFT_WARN_UNUSED_RESULT;
862
+ - (uint32_t)createShader:(uint32_t)type SWIFT_WARN_UNUSED_RESULT;
863
+ - (uint32_t)createTexture SWIFT_WARN_UNUSED_RESULT;
864
+ - (void)cullFace:(uint32_t)mode;
865
+ - (void)deleteBuffer:(uint32_t)buffer;
866
+ - (void)deleteFramebuffer:(uint32_t)frameBuffer;
867
+ - (void)deleteProgram:(uint32_t)program;
868
+ - (void)deleteRenderbuffer:(uint32_t)renderbuffer;
869
+ - (void)deleteShader:(uint32_t)shader;
870
+ - (void)deleteTexture:(uint32_t)texture;
871
+ - (void)depthFunc:(uint32_t)fn;
872
+ - (void)depthMask:(BOOL)flag;
873
+ - (void)depthRange:(float)zNear :(float)zFar;
874
+ - (void)detachShader:(uint32_t)program :(uint32_t)shader;
875
+ - (void)disable:(uint32_t)cap;
876
+ - (void)disableVertexAttribArray:(uint32_t)index;
877
+ - (void)drawArrays:(uint32_t)mode :(int32_t)first :(int32_t)count;
878
+ - (void)drawElements:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset;
879
+ - (void)enable:(uint32_t)cap;
880
+ - (void)enableVertexAttribArray:(uint32_t)index;
881
+ - (void)finish;
882
+ - (void)flush;
883
+ - (void)framebufferRenderbuffer:(uint32_t)target :(uint32_t)attachment :(uint32_t)renderbuffertarget :(uint32_t)renderbuffer;
884
+ - (void)framebufferTexture2D:(uint32_t)target :(uint32_t)attachment :(uint32_t)textarget :(uint32_t)texture :(int32_t)level;
885
+ - (void)frontFace:(uint32_t)mode;
886
+ - (void)generateMipmap:(uint32_t)target;
887
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveAttrib:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
888
+ - (TNSWebGLActiveInfo * _Nonnull)getActiveUniform:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
889
+ - (NSArray<NSNumber *> * _Nonnull)getAttachedShaders:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
890
+ - (int32_t)getAttribLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
891
+ - (int32_t)getBufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
892
+ - (id _Nonnull)getContextAttributes SWIFT_WARN_UNUSED_RESULT;
893
+ - (uint32_t)getError SWIFT_WARN_UNUSED_RESULT;
894
+ - (id _Nullable)getExtension:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
895
+ - (TNSFramebufferAttachmentParameter * _Nonnull)getFramebufferAttachmentParameter:(uint32_t)target :(uint32_t)attachment :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
896
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
897
+ - (NSString * _Nonnull)getProgramInfoLog:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
898
+ - (id _Nonnull)getProgramParameter:(uint32_t)program :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
899
+ - (int32_t)getRenderbufferParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
900
+ - (NSString * _Nonnull)getShaderInfoLog:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
901
+ - (id _Nonnull)getShaderParameter:(uint32_t)shader :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
902
+ - (TNSWebGLShaderPrecisionFormat * _Nonnull)getShaderPrecisionFormat:(uint32_t)shaderType :(uint32_t)precisionType SWIFT_WARN_UNUSED_RESULT;
903
+ - (NSString * _Nonnull)getShaderSource:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
904
+ - (NSArray<NSString *> * _Nonnull)getSupportedExtensions SWIFT_WARN_UNUSED_RESULT;
905
+ - (int32_t)getTexParameter:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
906
+ - (id _Nonnull)getUniform:(uint32_t)program :(int32_t)location SWIFT_WARN_UNUSED_RESULT;
907
+ - (int32_t)getUniformLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
908
+ - (id _Nonnull)getVertexAttrib:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
909
+ - (NSInteger)getVertexAttribOffset:(uint32_t)index :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
910
+ - (void)hint:(uint32_t)target :(uint32_t)mode;
911
+ - (BOOL)isBuffer:(uint32_t)buffer SWIFT_WARN_UNUSED_RESULT;
912
+ - (BOOL)isContextLost SWIFT_WARN_UNUSED_RESULT;
913
+ - (BOOL)isEnabled:(uint32_t)cap SWIFT_WARN_UNUSED_RESULT;
914
+ - (BOOL)isFramebuffer:(uint32_t)framebuffer SWIFT_WARN_UNUSED_RESULT;
915
+ - (BOOL)isProgram:(uint32_t)program SWIFT_WARN_UNUSED_RESULT;
916
+ - (BOOL)isRenderbuffer:(uint32_t)renderbuffer SWIFT_WARN_UNUSED_RESULT;
917
+ - (BOOL)isShader:(uint32_t)shader SWIFT_WARN_UNUSED_RESULT;
918
+ - (BOOL)isTexture:(uint32_t)texture SWIFT_WARN_UNUSED_RESULT;
919
+ - (void)lineWidth:(float)width;
920
+ - (void)linkProgram:(uint32_t)program;
921
+ - (void)pixelStorei:(uint32_t)pname :(uint32_t)param;
922
+ - (void)polygonOffset:(float)factor :(float)units;
923
+ - (void)readPixels:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height :(uint32_t)format :(uint32_t)type :(void * _Nonnull)pixels;
924
+ - (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;
925
+ - (void)renderbufferStorage:(uint32_t)target :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
926
+ - (void)sampleCoverage:(float)value :(BOOL)invert;
927
+ - (void)scissor:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
928
+ - (void)shaderSource:(uint32_t)shader :(NSString * _Nonnull)source;
929
+ - (void)stencilFunc:(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
930
+ - (void)stencilFuncSeparate:(uint32_t)face :(uint32_t)fn :(int32_t)ref :(uint32_t)mask;
931
+ - (void)stencilMask:(uint32_t)mask;
932
+ - (void)stencilMaskSeparate:(uint32_t)face :(uint32_t)mask;
933
+ - (void)stencilOp:(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
934
+ - (void)stencilOpSeparate:(uint32_t)face :(uint32_t)fail :(uint32_t)zfail :(uint32_t)zpass;
935
+ - (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;
936
+ - (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;
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 pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
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 pixels:(void const * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
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 u16:(NSArray<NSNumber *> * _Nonnull)pixels;
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 u32:(NSArray<NSNumber *> * _Nonnull)pixels;
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 f32:(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 :(NSNull * _Nonnull)pixels;
943
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
944
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
945
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
946
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
947
+ - (void)texImage2D:(uint32_t)target :(int32_t)level :(int32_t)internalformat :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
948
+ - (void)texParameterf:(uint32_t)target :(uint32_t)pname :(float)param;
949
+ - (void)texParameteri:(uint32_t)target :(uint32_t)pname :(int32_t)param;
950
+ - (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;
951
+ - (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;
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 pixels:(void * _Nonnull)pixels size:(NSInteger)size;
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 pixels:(void * _Nonnull)pixels size:(NSInteger)size offset:(NSInteger)offset;
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 u16:(NSArray<NSNumber *> * _Nonnull)pixels;
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 f32:(NSArray<NSNumber *> * _Nonnull)pixels;
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 :(NSNull * _Nonnull)pixels;
957
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type pixels:(UIImage * _Nonnull)pixels;
958
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type asset:(TNSImageAsset * _Nonnull)asset;
959
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type bitmap:(TNSImageBitmap * _Nonnull)bitmap;
960
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type canvas:(TNSCanvas * _Nonnull)canvas;
961
+ - (void)texSubImage2D:(uint32_t)target :(int32_t)level :(int32_t)xoffset :(int32_t)yoffset :(uint32_t)format :(uint32_t)type :(NSNull * _Nonnull)pixels;
962
+ - (void)uniform1f:(int32_t)location :(float)v0;
963
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
964
+ - (void)uniform1fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
965
+ - (void)uniform1i:(int32_t)location :(int32_t)v0;
966
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
967
+ - (void)uniform1iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
968
+ - (void)uniform2f:(int32_t)location :(float)v0 :(float)v1;
969
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
970
+ - (void)uniform2fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
971
+ - (void)uniform2i:(int32_t)location :(int32_t)v0 :(int32_t)v1;
972
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
973
+ - (void)uniform2iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
974
+ - (void)uniform3f:(int32_t)location :(float)v0 :(float)v1 :(float)v2;
975
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
976
+ - (void)uniform3fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
977
+ - (void)uniform3i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2;
978
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
979
+ - (void)uniform3iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
980
+ - (void)uniform4f:(int32_t)location :(float)v0 :(float)v1 :(float)v2 :(float)v3;
981
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
982
+ - (void)uniform4fv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
983
+ - (void)uniform4i:(int32_t)location :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
984
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size;
985
+ - (void)uniform4iv:(int32_t)location :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
986
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
987
+ - (void)uniformMatrix2fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
988
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
989
+ - (void)uniformMatrix3fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
990
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size;
991
+ - (void)uniformMatrix4fv:(int32_t)location :(BOOL)transpose :(void * _Nonnull)value :(NSInteger)size offset:(NSInteger)offset;
992
+ - (void)useProgram:(uint32_t)program;
993
+ - (void)validateProgram:(uint32_t)program;
994
+ - (void)vertexAttrib1f:(uint32_t)index :(float)v0;
995
+ - (void)vertexAttrib2f:(uint32_t)index :(float)v0 :(float)v1;
996
+ - (void)vertexAttrib3f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2;
997
+ - (void)vertexAttrib4f:(uint32_t)index :(float)v0 :(float)v1 :(float)v2 :(float)v3;
998
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value;
999
+ - (void)vertexAttrib1fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1000
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value;
1001
+ - (void)vertexAttrib2fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1002
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value;
1003
+ - (void)vertexAttrib3fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1004
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value;
1005
+ - (void)vertexAttrib4fv:(uint32_t)index :(void * _Nonnull)value offset:(NSInteger)offset;
1006
+ - (void)vertexAttribPointer:(uint32_t)index :(int32_t)size :(uint32_t)type :(BOOL)normalized :(int32_t)stride :(NSInteger)offset;
1007
+ - (void)viewport:(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
1008
+ @property (nonatomic, readonly) uint32_t DEPTH_BUFFER_BIT;
1009
+ @property (nonatomic, readonly) uint32_t COLOR_BUFFER_BIT;
1010
+ @property (nonatomic, readonly) uint32_t STENCIL_BUFFER_BIT;
1011
+ @property (nonatomic, readonly) uint32_t POINTS;
1012
+ @property (nonatomic, readonly) uint32_t LINES;
1013
+ @property (nonatomic, readonly) uint32_t LINE_LOOP;
1014
+ @property (nonatomic, readonly) uint32_t LINE_STRIP;
1015
+ @property (nonatomic, readonly) uint32_t TRIANGLES;
1016
+ @property (nonatomic, readonly) uint32_t TRIANGLE_STRIP;
1017
+ @property (nonatomic, readonly) uint32_t TRIANGLE_FAN;
1018
+ @property (nonatomic, readonly) uint32_t ONE;
1019
+ @property (nonatomic, readonly) uint32_t ZERO;
1020
+ @property (nonatomic, readonly) uint32_t SRC_COLOR;
1021
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_COLOR;
1022
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA;
1023
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_SRC_ALPHA;
1024
+ @property (nonatomic, readonly) uint32_t DST_ALPHA;
1025
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_ALPHA;
1026
+ @property (nonatomic, readonly) uint32_t DST_COLOR;
1027
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_DST_COLOR;
1028
+ @property (nonatomic, readonly) uint32_t SRC_ALPHA_SATURATE;
1029
+ @property (nonatomic, readonly) uint32_t CONSTANT_COLOR;
1030
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_COLOR;
1031
+ @property (nonatomic, readonly) uint32_t CONSTANT_ALPHA;
1032
+ @property (nonatomic, readonly) uint32_t ONE_MINUS_CONSTANT_ALPHA;
1033
+ @property (nonatomic, readonly) uint32_t FUNC_ADD;
1034
+ @property (nonatomic, readonly) uint32_t FUNC_SUBTRACT;
1035
+ @property (nonatomic, readonly) uint32_t FUNC_REVERSE_SUBTRACT;
1036
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION;
1037
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_RGB;
1038
+ @property (nonatomic, readonly) uint32_t BLEND_EQUATION_ALPHA;
1039
+ @property (nonatomic, readonly) uint32_t BLEND_DST_RGB;
1040
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_RGB;
1041
+ @property (nonatomic, readonly) uint32_t BLEND_DST_ALPHA;
1042
+ @property (nonatomic, readonly) uint32_t BLEND_SRC_ALPHA;
1043
+ @property (nonatomic, readonly) uint32_t BLEND_COLOR;
1044
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER_BINDING;
1045
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER_BINDING;
1046
+ @property (nonatomic, readonly) uint32_t LINE_WIDTH;
1047
+ @property (nonatomic, readonly) uint32_t ALIASED_POINT_SIZE_RANGE;
1048
+ @property (nonatomic, readonly) uint32_t ALIASED_LINE_WIDTH_RANGE;
1049
+ @property (nonatomic, readonly) uint32_t CULL_FACE_MODE;
1050
+ @property (nonatomic, readonly) uint32_t FRONT_FACE;
1051
+ @property (nonatomic, readonly) uint32_t DEPTH_RANGE;
1052
+ @property (nonatomic, readonly) uint32_t DEPTH_WRITEMASK;
1053
+ @property (nonatomic, readonly) uint32_t DEPTH_CLEAR_VALUE;
1054
+ @property (nonatomic, readonly) uint32_t DEPTH_FUNC;
1055
+ @property (nonatomic, readonly) uint32_t STENCIL_CLEAR_VALUE;
1056
+ @property (nonatomic, readonly) uint32_t STENCIL_FUNC;
1057
+ @property (nonatomic, readonly) uint32_t STENCIL_FAIL;
1058
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_FAIL;
1059
+ @property (nonatomic, readonly) uint32_t STENCIL_PASS_DEPTH_PASS;
1060
+ @property (nonatomic, readonly) uint32_t STENCIL_REF;
1061
+ @property (nonatomic, readonly) uint32_t STENCIL_VALUE_MASK;
1062
+ @property (nonatomic, readonly) uint32_t STENCIL_WRITEMASK;
1063
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FUNC;
1064
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_FAIL;
1065
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_FAIL;
1066
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_PASS_DEPTH_PASS;
1067
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_REF;
1068
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_VALUE_MASK;
1069
+ @property (nonatomic, readonly) uint32_t STENCIL_BACK_WRITEMASK;
1070
+ @property (nonatomic, readonly) uint32_t VIEWPORT;
1071
+ @property (nonatomic, readonly) uint32_t SCISSOR_BOX;
1072
+ @property (nonatomic, readonly) uint32_t COLOR_CLEAR_VALUE;
1073
+ @property (nonatomic, readonly) uint32_t COLOR_WRITEMASK;
1074
+ @property (nonatomic, readonly) uint32_t UNPACK_ALIGNMENT;
1075
+ @property (nonatomic, readonly) uint32_t PACK_ALIGNMENT;
1076
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_SIZE;
1077
+ @property (nonatomic, readonly) uint32_t MAX_VIEWPORT_DIMS;
1078
+ @property (nonatomic, readonly) uint32_t SUBPIXEL_BITS;
1079
+ @property (nonatomic, readonly) uint32_t RED_BITS;
1080
+ @property (nonatomic, readonly) uint32_t GREEN_BITS;
1081
+ @property (nonatomic, readonly) uint32_t BLUE_BITS;
1082
+ @property (nonatomic, readonly) uint32_t ALPHA_BITS;
1083
+ @property (nonatomic, readonly) uint32_t DEPTH_BITS;
1084
+ @property (nonatomic, readonly) uint32_t STENCIL_BITS;
1085
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_UNITS;
1086
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FACTOR;
1087
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D;
1088
+ @property (nonatomic, readonly) uint32_t SAMPLE_BUFFERS;
1089
+ @property (nonatomic, readonly) uint32_t SAMPLES;
1090
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_VALUE;
1091
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE_INVERT;
1092
+ @property (nonatomic, readonly) uint32_t COMPRESSED_TEXTURE_FORMATS;
1093
+ @property (nonatomic, readonly) uint32_t VENDOR;
1094
+ @property (nonatomic, readonly) uint32_t RENDERER;
1095
+ @property (nonatomic, readonly) uint32_t VERSION;
1096
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_TYPE;
1097
+ @property (nonatomic, readonly) uint32_t IMPLEMENTATION_COLOR_READ_FORMAT;
1098
+ @property (nonatomic, readonly) uint32_t BROWSER_DEFAULT_WEBGL;
1099
+ @property (nonatomic, readonly) uint32_t STATIC_DRAW;
1100
+ @property (nonatomic, readonly) uint32_t STREAM_DRAW;
1101
+ @property (nonatomic, readonly) uint32_t DYNAMIC_DRAW;
1102
+ @property (nonatomic, readonly) uint32_t ARRAY_BUFFER;
1103
+ @property (nonatomic, readonly) uint32_t ELEMENT_ARRAY_BUFFER;
1104
+ @property (nonatomic, readonly) uint32_t BUFFER_SIZE;
1105
+ @property (nonatomic, readonly) uint32_t BUFFER_USAGE;
1106
+ @property (nonatomic, readonly) uint32_t CURRENT_VERTEX_ATTRIB;
1107
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_ENABLED;
1108
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_SIZE;
1109
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_STRIDE;
1110
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_TYPE;
1111
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_NORMALIZED;
1112
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_POINTER;
1113
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
1114
+ @property (nonatomic, readonly) uint32_t CULL_FACE;
1115
+ @property (nonatomic, readonly) uint32_t FRONT;
1116
+ @property (nonatomic, readonly) uint32_t BACK;
1117
+ @property (nonatomic, readonly) uint32_t FRONT_AND_BACK;
1118
+ @property (nonatomic, readonly) uint32_t BLEND;
1119
+ @property (nonatomic, readonly) uint32_t DEPTH_TEST;
1120
+ @property (nonatomic, readonly) uint32_t DITHER;
1121
+ @property (nonatomic, readonly) uint32_t POLYGON_OFFSET_FILL;
1122
+ @property (nonatomic, readonly) uint32_t SAMPLE_ALPHA_TO_COVERAGE;
1123
+ @property (nonatomic, readonly) uint32_t SAMPLE_COVERAGE;
1124
+ @property (nonatomic, readonly) uint32_t SCISSOR_TEST;
1125
+ @property (nonatomic, readonly) uint32_t STENCIL_TEST;
1126
+ @property (nonatomic, readonly) uint32_t NO_ERROR;
1127
+ @property (nonatomic, readonly) uint32_t INVALID_ENUM;
1128
+ @property (nonatomic, readonly) uint32_t INVALID_VALUE;
1129
+ @property (nonatomic, readonly) uint32_t INVALID_OPERATION;
1130
+ @property (nonatomic, readonly) uint32_t INVALID_FRAMEBUFFER_OPERATION;
1131
+ @property (nonatomic, readonly) uint32_t OUT_OF_MEMORY;
1132
+ @property (nonatomic, readonly) uint32_t CONTEXT_LOST_WEBGL;
1133
+ @property (nonatomic, readonly) uint32_t CW;
1134
+ @property (nonatomic, readonly) uint32_t CCW;
1135
+ @property (nonatomic, readonly) uint32_t DONT_CARE;
1136
+ @property (nonatomic, readonly) uint32_t FASTEST;
1137
+ @property (nonatomic, readonly) uint32_t NICEST;
1138
+ @property (nonatomic, readonly) uint32_t GENERATE_MIPMAP_HINT;
1139
+ @property (nonatomic, readonly) uint32_t BYTE;
1140
+ @property (nonatomic, readonly) uint32_t UNSIGNED_BYTE;
1141
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT;
1142
+ @property (nonatomic, readonly) uint32_t SHORT;
1143
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT;
1144
+ @property (nonatomic, readonly) uint32_t INT;
1145
+ @property (nonatomic, readonly) uint32_t FLOAT;
1146
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT;
1147
+ @property (nonatomic, readonly) uint32_t ALPHA;
1148
+ @property (nonatomic, readonly) uint32_t RGB;
1149
+ @property (nonatomic, readonly) uint32_t RGBA;
1150
+ @property (nonatomic, readonly) uint32_t LUMINANCE;
1151
+ @property (nonatomic, readonly) uint32_t LUMINANCE_ALPHA;
1152
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_4_4_4_4;
1153
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_5_5_1;
1154
+ @property (nonatomic, readonly) uint32_t UNSIGNED_SHORT_5_6_5;
1155
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER;
1156
+ @property (nonatomic, readonly) uint32_t VERTEX_SHADER;
1157
+ @property (nonatomic, readonly) uint32_t COMPILE_STATUS;
1158
+ @property (nonatomic, readonly) uint32_t DELETE_STATUS;
1159
+ @property (nonatomic, readonly) uint32_t LINK_STATUS;
1160
+ @property (nonatomic, readonly) uint32_t VALIDATE_STATUS;
1161
+ @property (nonatomic, readonly) uint32_t ATTACHED_SHADERS;
1162
+ @property (nonatomic, readonly) uint32_t ACTIVE_ATTRIBUTES;
1163
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORMS;
1164
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_VECTORS;
1165
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_VECTORS;
1166
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_TEXTURE_IMAGE_UNITS;
1167
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_TEXTURE_IMAGE_UNITS;
1168
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_IMAGE_UNITS;
1169
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_ATTRIBS;
1170
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_VECTORS;
1171
+ @property (nonatomic, readonly) uint32_t SHADER_TYPE;
1172
+ @property (nonatomic, readonly) uint32_t SHADING_LANGUAGE_VERSION;
1173
+ @property (nonatomic, readonly) uint32_t CURRENT_PROGRAM;
1174
+ @property (nonatomic, readonly) uint32_t NEVER;
1175
+ @property (nonatomic, readonly) uint32_t LESS;
1176
+ @property (nonatomic, readonly) uint32_t EQUAL;
1177
+ @property (nonatomic, readonly) uint32_t LEQUAL;
1178
+ @property (nonatomic, readonly) uint32_t GREATER;
1179
+ @property (nonatomic, readonly) uint32_t NOTEQUAL;
1180
+ @property (nonatomic, readonly) uint32_t GEQUAL;
1181
+ @property (nonatomic, readonly) uint32_t ALWAYS;
1182
+ @property (nonatomic, readonly) uint32_t KEEP;
1183
+ @property (nonatomic, readonly) uint32_t REPLACE;
1184
+ @property (nonatomic, readonly) uint32_t INCR;
1185
+ @property (nonatomic, readonly) uint32_t DECR;
1186
+ @property (nonatomic, readonly) uint32_t INVERT;
1187
+ @property (nonatomic, readonly) uint32_t INCR_WRAP;
1188
+ @property (nonatomic, readonly) uint32_t DECR_WRAP;
1189
+ @property (nonatomic, readonly) uint32_t NEAREST;
1190
+ @property (nonatomic, readonly) uint32_t LINEAR;
1191
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_NEAREST;
1192
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_NEAREST;
1193
+ @property (nonatomic, readonly) uint32_t NEAREST_MIPMAP_LINEAR;
1194
+ @property (nonatomic, readonly) uint32_t LINEAR_MIPMAP_LINEAR;
1195
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAG_FILTER;
1196
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_FILTER;
1197
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_S;
1198
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_T;
1199
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D;
1200
+ @property (nonatomic, readonly) uint32_t TEXTURE;
1201
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP;
1202
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_CUBE_MAP;
1203
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_X;
1204
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_X;
1205
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Y;
1206
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Y;
1207
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_POSITIVE_Z;
1208
+ @property (nonatomic, readonly) uint32_t TEXTURE_CUBE_MAP_NEGATIVE_Z;
1209
+ @property (nonatomic, readonly) uint32_t MAX_CUBE_MAP_TEXTURE_SIZE;
1210
+ @property (nonatomic, readonly) uint32_t TEXTURE0;
1211
+ @property (nonatomic, readonly) uint32_t TEXTURE1;
1212
+ @property (nonatomic, readonly) uint32_t TEXTURE2;
1213
+ @property (nonatomic, readonly) uint32_t TEXTURE3;
1214
+ @property (nonatomic, readonly) uint32_t TEXTURE4;
1215
+ @property (nonatomic, readonly) uint32_t TEXTURE5;
1216
+ @property (nonatomic, readonly) uint32_t TEXTURE6;
1217
+ @property (nonatomic, readonly) uint32_t TEXTURE7;
1218
+ @property (nonatomic, readonly) uint32_t TEXTURE8;
1219
+ @property (nonatomic, readonly) uint32_t TEXTURE9;
1220
+ @property (nonatomic, readonly) uint32_t TEXTURE10;
1221
+ @property (nonatomic, readonly) uint32_t TEXTURE11;
1222
+ @property (nonatomic, readonly) uint32_t TEXTURE12;
1223
+ @property (nonatomic, readonly) uint32_t TEXTURE13;
1224
+ @property (nonatomic, readonly) uint32_t TEXTURE14;
1225
+ @property (nonatomic, readonly) uint32_t TEXTURE15;
1226
+ @property (nonatomic, readonly) uint32_t TEXTURE16;
1227
+ @property (nonatomic, readonly) uint32_t TEXTURE17;
1228
+ @property (nonatomic, readonly) uint32_t TEXTURE18;
1229
+ @property (nonatomic, readonly) uint32_t TEXTURE19;
1230
+ @property (nonatomic, readonly) uint32_t TEXTURE20;
1231
+ @property (nonatomic, readonly) uint32_t TEXTURE21;
1232
+ @property (nonatomic, readonly) uint32_t TEXTURE22;
1233
+ @property (nonatomic, readonly) uint32_t TEXTURE23;
1234
+ @property (nonatomic, readonly) uint32_t TEXTURE24;
1235
+ @property (nonatomic, readonly) uint32_t TEXTURE25;
1236
+ @property (nonatomic, readonly) uint32_t TEXTURE26;
1237
+ @property (nonatomic, readonly) uint32_t TEXTURE27;
1238
+ @property (nonatomic, readonly) uint32_t TEXTURE28;
1239
+ @property (nonatomic, readonly) uint32_t TEXTURE29;
1240
+ @property (nonatomic, readonly) uint32_t TEXTURE30;
1241
+ @property (nonatomic, readonly) uint32_t TEXTURE31;
1242
+ @property (nonatomic, readonly) uint32_t ACTIVE_TEXTURE;
1243
+ @property (nonatomic, readonly) uint32_t REPEAT;
1244
+ @property (nonatomic, readonly) uint32_t CLAMP_TO_EDGE;
1245
+ @property (nonatomic, readonly) uint32_t MIRRORED_REPEAT;
1246
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC2;
1247
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC3;
1248
+ @property (nonatomic, readonly) uint32_t FLOAT_VEC4;
1249
+ @property (nonatomic, readonly) uint32_t INT_VEC2;
1250
+ @property (nonatomic, readonly) uint32_t INT_VEC3;
1251
+ @property (nonatomic, readonly) uint32_t INT_VEC4;
1252
+ @property (nonatomic, readonly) uint32_t BOOL;
1253
+ @property (nonatomic, readonly) uint32_t BOOL_VEC2;
1254
+ @property (nonatomic, readonly) uint32_t BOOL_VEC3;
1255
+ @property (nonatomic, readonly) uint32_t BOOL_VEC4;
1256
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2;
1257
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3;
1258
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4;
1259
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D;
1260
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE;
1261
+ @property (nonatomic, readonly) uint32_t LOW_FLOAT;
1262
+ @property (nonatomic, readonly) uint32_t MEDIUM_FLOAT;
1263
+ @property (nonatomic, readonly) uint32_t HIGH_FLOAT;
1264
+ @property (nonatomic, readonly) uint32_t LOW_INT;
1265
+ @property (nonatomic, readonly) uint32_t MEDIUM_INT;
1266
+ @property (nonatomic, readonly) uint32_t HIGH_INT;
1267
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER;
1268
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER;
1269
+ @property (nonatomic, readonly) uint32_t RGBA4;
1270
+ @property (nonatomic, readonly) uint32_t RGB565;
1271
+ @property (nonatomic, readonly) uint32_t RGB5_A1;
1272
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT16;
1273
+ @property (nonatomic, readonly) uint32_t STENCIL_INDEX8;
1274
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
1275
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_WIDTH;
1276
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_HEIGHT;
1277
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_INTERNAL_FORMAT;
1278
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_RED_SIZE;
1279
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_GREEN_SIZE;
1280
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BLUE_SIZE;
1281
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_ALPHA_SIZE;
1282
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_DEPTH_SIZE;
1283
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_STENCIL_SIZE;
1284
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
1285
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
1286
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
1287
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
1288
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT0;
1289
+ @property (nonatomic, readonly) uint32_t DEPTH_ATTACHMENT;
1290
+ @property (nonatomic, readonly) uint32_t STENCIL_ATTACHMENT;
1291
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
1292
+ @property (nonatomic, readonly) uint32_t NONE;
1293
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_COMPLETE;
1294
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
1295
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
1296
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
1297
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_UNSUPPORTED;
1298
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_BINDING;
1299
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_BINDING;
1300
+ @property (nonatomic, readonly) uint32_t MAX_RENDERBUFFER_SIZE;
1301
+ @property (nonatomic, readonly) uint32_t UNPACK_COLORSPACE_CONVERSION_WEBGL;
1302
+ @property (nonatomic, readonly) uint32_t UNPACK_FLIP_Y_WEBGL;
1303
+ @property (nonatomic, readonly) uint32_t UNPACK_PREMULTIPLY_ALPHA_WEBGL;
1304
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1305
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1306
+ @end
1307
+
1308
+
1309
+ SWIFT_CLASS_NAMED("TNSWebGL2RenderingContext")
1310
+ @interface TNSWebGL2RenderingContext : TNSWebGLRenderingContext
1311
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
1312
+ - (nonnull instancetype)init:(TNSCanvas * _Nonnull)canvas :(NSDictionary<NSString *, id> * _Nonnull)attrs OBJC_DESIGNATED_INITIALIZER;
1313
+ - (void)beginQuery:(uint32_t)target :(uint32_t)query;
1314
+ - (void)beginTransformFeedback:(uint32_t)primitiveMode;
1315
+ - (void)bindBufferBase:(uint32_t)target :(uint32_t)index :(uint32_t)buffer;
1316
+ - (void)bindBufferRange:(uint32_t)target :(uint32_t)index :(uint32_t)buffer :(NSInteger)offset :(NSInteger)size;
1317
+ - (void)bindSampler:(uint32_t)unit :(uint32_t)sampler;
1318
+ - (void)bindTransformFeedback:(uint32_t)target :(uint32_t)transformFeedback;
1319
+ - (void)bindVertexArray:(uint32_t)vertexArray;
1320
+ - (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;
1321
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1322
+ - (void)clearBufferfv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1323
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1324
+ - (void)clearBufferiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1325
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values;
1326
+ - (void)clearBufferuiv:(uint32_t)buffer :(int32_t)drawbuffer :(void const * _Nonnull)values offset:(NSInteger)offset;
1327
+ - (void)clearBufferfi:(uint32_t)buffer :(int32_t)drawbuffer :(float)depth :(int32_t)stencil;
1328
+ - (int32_t)clientWaitSync:(GLsync _Nonnull)sync :(uint32_t)flags :(uint64_t)timeout SWIFT_WARN_UNUSED_RESULT;
1329
+ - (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;
1330
+ - (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;
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 u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
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 i16:(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 u16:(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 i32:(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 u32:(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 f32:(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 f64:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset :(int32_t)srcLengthOverride;
1338
+ - (void)copyBufferSubData:(uint32_t)readTarget :(uint32_t)writeTarget :(NSInteger)readOffset :(NSInteger)writeOffset :(NSInteger)size;
1339
+ - (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;
1340
+ - (uint32_t)createQuery SWIFT_WARN_UNUSED_RESULT;
1341
+ - (uint32_t)createSampler SWIFT_WARN_UNUSED_RESULT;
1342
+ - (uint32_t)createVertexArray SWIFT_WARN_UNUSED_RESULT;
1343
+ - (uint32_t)createTransformFeedback SWIFT_WARN_UNUSED_RESULT;
1344
+ - (void)deleteQuery:(uint32_t)query;
1345
+ - (void)deleteSampler:(uint32_t)sampler;
1346
+ - (void)deleteSync:(GLsync _Nonnull)sync;
1347
+ - (void)deleteTransformFeedback:(uint32_t)transformFeedback;
1348
+ - (void)deleteVertexArray:(uint32_t)vertexArray;
1349
+ - (void)drawArraysInstanced:(uint32_t)mode :(int32_t)first :(int32_t)count :(int32_t)instanceCount;
1350
+ - (void)drawElementsInstanced:(uint32_t)mode :(int32_t)count :(uint32_t)type :(NSInteger)offset :(int32_t)instanceCount;
1351
+ - (void)drawRangeElements:(uint32_t)mode :(uint32_t)start :(uint32_t)end :(int32_t)count :(uint32_t)type :(NSInteger)offset;
1352
+ - (void)drawBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
1353
+ - (void)endQuery:(uint32_t)target;
1354
+ - (void)endTransformFeedback;
1355
+ - (void)fenceSync:(uint32_t)condition :(uint32_t)flags;
1356
+ - (void)framebufferTextureLayer:(uint32_t)target :(uint32_t)attachment :(uint32_t)texture :(int32_t)level :(int32_t)layer;
1357
+ - (NSString * _Nonnull)getActiveUniformBlockName:(uint32_t)program :(uint32_t)uniformBlockIndex SWIFT_WARN_UNUSED_RESULT;
1358
+ - (id _Nonnull)getActiveUniformBlockParameter:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1359
+ - (id _Nonnull)getActiveUniforms:(uint32_t)program :(NSArray<NSNumber *> * _Nonnull)uniformIndices :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1360
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length;
1361
+ - (void)getBufferSubData:(uint32_t)target :(NSInteger)srcByteOffset :(void * _Nonnull)dstData size:(NSInteger)size :(int32_t)dstOffset :(int32_t)length offset:(NSInteger)offset;
1362
+ - (int32_t)getFragDataLocation:(uint32_t)program :(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
1363
+ - (id _Nonnull)getIndexedParameter:(uint32_t)target :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
1364
+ - (id _Nonnull)getInternalformatParameter:(uint32_t)target :(uint32_t)internalformat :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1365
+ - (id _Nullable)getParameter:(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1366
+ - (id _Nonnull)getQuery:(uint32_t)target :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1367
+ - (id _Nonnull)getQueryParameter:(uint32_t)query :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1368
+ - (id _Nonnull)getSamplerParameter:(uint32_t)sampler :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1369
+ - (id _Nonnull)getSyncParameter:(GLsync _Nonnull)sync :(uint32_t)pname SWIFT_WARN_UNUSED_RESULT;
1370
+ - (id _Nonnull)getTransformFeedbackVarying:(uint32_t)program :(uint32_t)index SWIFT_WARN_UNUSED_RESULT;
1371
+ - (uint32_t)getUniformBlockIndex:(uint32_t)program :(NSString * _Nonnull)uniformBlockName SWIFT_WARN_UNUSED_RESULT;
1372
+ - (NSArray<NSNumber *> * _Nonnull)getUniformIndices:(uint32_t)program :(NSArray<NSString *> * _Nonnull)uniformNames SWIFT_WARN_UNUSED_RESULT;
1373
+ - (void)invalidateFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments;
1374
+ - (void)invalidateSubFramebuffer:(uint32_t)target :(NSArray<NSNumber *> * _Nonnull)attachments :(int32_t)x :(int32_t)y :(int32_t)width :(int32_t)height;
1375
+ - (BOOL)isQuery:(uint32_t)query SWIFT_WARN_UNUSED_RESULT;
1376
+ - (BOOL)isSampler:(uint32_t)sampler SWIFT_WARN_UNUSED_RESULT;
1377
+ - (BOOL)isSync:(GLsync _Nonnull)sync SWIFT_WARN_UNUSED_RESULT;
1378
+ - (BOOL)isTransformFeedback:(uint32_t)transformFeedback SWIFT_WARN_UNUSED_RESULT;
1379
+ - (BOOL)isVertexArray:(uint32_t)vertexArray SWIFT_WARN_UNUSED_RESULT;
1380
+ - (void)pauseTransformFeedback;
1381
+ - (void)readBuffer:(uint32_t)src;
1382
+ - (void)renderbufferStorageMultisample:(uint32_t)target :(int32_t)samples :(uint32_t)internalFormat :(int32_t)width :(int32_t)height;
1383
+ - (void)resumeTransformFeedback;
1384
+ - (void)samplerParameteri:(uint32_t)sampler :(uint32_t)pname :(int32_t)param;
1385
+ - (void)samplerParameterf:(uint32_t)sampler :(uint32_t)pname :(float)param;
1386
+ - (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;
1387
+ - (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;
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 pixels:(void const * _Nonnull)pixels size:(NSInteger)size;
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 pixels:(void const * _Nonnull)pixels size:(NSInteger)size pixelOffset:(NSInteger)pixelOffset srcOffset:(int32_t)srcOffset;
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 i8:(NSArray<NSNumber *> * _Nonnull)source;
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 u8:(NSArray<NSNumber *> * _Nonnull)source;
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 i16:(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 u16:(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 i32:(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 u32:(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 f32:(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 f64:(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 i8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
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 u8:(NSArray<NSNumber *> * _Nonnull)source :(int32_t)srcOffset;
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 i16:(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 u16:(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 i32:(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 u32:(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 f32:(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 f64:(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 source:(UIImage * _Nonnull)source;
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 asset:(TNSImageAsset * _Nonnull)asset;
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 bitmap:(TNSImageBitmap * _Nonnull)bitmap;
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 canvas:(TNSCanvas * _Nonnull)canvas;
1410
+ - (void)texStorage2D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height;
1411
+ - (void)texStorage3D:(uint32_t)target :(int32_t)levels :(uint32_t)internalformat :(int32_t)width :(int32_t)height :(int32_t)depth;
1412
+ - (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;
1413
+ - (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;
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 i8:(NSArray<NSNumber *> * _Nonnull)srcData;
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 u8:(NSArray<NSNumber *> * _Nonnull)srcData;
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 i16:(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 u16:(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 i32:(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 u32:(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 f32:(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 f64:(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 i8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
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 u8:(NSArray<NSNumber *> * _Nonnull)srcData :(int32_t)srcOffset;
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 i16:(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 u16:(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 i32:(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 u32:(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 f32:(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 f64:(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 srcData:(UIImage * _Nonnull)srcData;
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 canvas:(TNSCanvas * _Nonnull)canvas;
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 asset:(TNSImageAsset * _Nonnull)asset;
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 bitmap:(TNSImageBitmap * _Nonnull)bitmap;
1434
+ - (void)transformFeedbackVaryings:(uint32_t)program :(NSArray<NSString *> * _Nonnull)varyings :(uint32_t)bufferMode;
1435
+ - (void)uniform1ui:(int32_t)location :(uint32_t)v0;
1436
+ - (void)uniform2ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1;
1437
+ - (void)uniform3ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2;
1438
+ - (void)uniform4ui:(int32_t)location :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
1439
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1440
+ - (void)uniform1uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1441
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1442
+ - (void)uniform2uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1443
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1444
+ - (void)uniform3uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1445
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size;
1446
+ - (void)uniform4uiv:(int32_t)location :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1447
+ - (void)uniformBlockBinding:(uint32_t)program :(uint32_t)uniformBlockIndex :(uint32_t)uniformBlockBinding;
1448
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1449
+ - (void)uniformMatrix3x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1450
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1451
+ - (void)uniformMatrix4x2fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1452
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1453
+ - (void)uniformMatrix2x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1454
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1455
+ - (void)uniformMatrix4x3fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1456
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1457
+ - (void)uniformMatrix2x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1458
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size;
1459
+ - (void)uniformMatrix3x4fv:(uint32_t)location :(BOOL)transpose :(void const * _Nonnull)data :(NSInteger)size offset:(NSInteger)offset;
1460
+ - (void)vertexAttribDivisor:(uint32_t)index :(uint32_t)divisor;
1461
+ - (void)vertexAttribI4i:(uint32_t)index :(int32_t)v0 :(int32_t)v1 :(int32_t)v2 :(int32_t)v3;
1462
+ - (void)vertexAttribI4ui:(uint32_t)index :(uint32_t)v0 :(uint32_t)v1 :(uint32_t)v2 :(uint32_t)v3;
1463
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value;
1464
+ - (void)vertexAttribI4iv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
1465
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value;
1466
+ - (void)vertexAttribI4uiv:(uint32_t)index :(void const * _Nonnull)value offset:(NSInteger)offset;
1467
+ @property (nonatomic, readonly) uint32_t READ_BUFFER;
1468
+ @property (nonatomic, readonly) uint32_t UNPACK_ROW_LENGTH;
1469
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_ROWS;
1470
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_PIXELS;
1471
+ @property (nonatomic, readonly) uint32_t PACK_ROW_LENGTH;
1472
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_ROWS;
1473
+ @property (nonatomic, readonly) uint32_t PACK_SKIP_PIXELS;
1474
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_3D;
1475
+ @property (nonatomic, readonly) uint32_t UNPACK_SKIP_IMAGES;
1476
+ @property (nonatomic, readonly) uint32_t UNPACK_IMAGE_HEIGHT;
1477
+ @property (nonatomic, readonly) uint32_t MAX_3D_TEXTURE_SIZE;
1478
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_VERTICES;
1479
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENTS_INDICES;
1480
+ @property (nonatomic, readonly) uint32_t MAX_TEXTURE_LOD_BIAS;
1481
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_COMPONENTS;
1482
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_COMPONENTS;
1483
+ @property (nonatomic, readonly) uint32_t MAX_ARRAY_TEXTURE_LAYERS;
1484
+ @property (nonatomic, readonly) uint32_t MIN_PROGRAM_TEXEL_OFFSET;
1485
+ @property (nonatomic, readonly) uint32_t MAX_PROGRAM_TEXEL_OFFSET;
1486
+ @property (nonatomic, readonly) uint32_t MAX_VARYING_COMPONENTS;
1487
+ @property (nonatomic, readonly) uint32_t FRAGMENT_SHADER_DERIVATIVE_HINT;
1488
+ @property (nonatomic, readonly) uint32_t RASTERIZER_DISCARD;
1489
+ @property (nonatomic, readonly) uint32_t VERTEX_ARRAY_BINDING;
1490
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_OUTPUT_COMPONENTS;
1491
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_INPUT_COMPONENTS;
1492
+ @property (nonatomic, readonly) uint32_t MAX_SERVER_WAIT_TIMEOUT;
1493
+ @property (nonatomic, readonly) uint32_t MAX_ELEMENT_INDEX;
1494
+ @property (nonatomic, readonly) uint32_t RED;
1495
+ @property (nonatomic, readonly) uint32_t RGB8;
1496
+ @property (nonatomic, readonly) uint32_t RGBA8;
1497
+ @property (nonatomic, readonly) uint32_t RGB10_A2;
1498
+ @property (nonatomic, readonly) uint32_t TEXTURE_3D;
1499
+ @property (nonatomic, readonly) uint32_t TEXTURE_WRAP_R;
1500
+ @property (nonatomic, readonly) uint32_t TEXTURE_MIN_LOD;
1501
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LOD;
1502
+ @property (nonatomic, readonly) uint32_t TEXTURE_BASE_LEVEL;
1503
+ @property (nonatomic, readonly) uint32_t TEXTURE_MAX_LEVEL;
1504
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_MODE;
1505
+ @property (nonatomic, readonly) uint32_t TEXTURE_COMPARE_FUNC;
1506
+ @property (nonatomic, readonly) uint32_t SRGB;
1507
+ @property (nonatomic, readonly) uint32_t SRGB8;
1508
+ @property (nonatomic, readonly) uint32_t SRGB8_ALPHA8;
1509
+ @property (nonatomic, readonly) uint32_t COMPARE_REF_TO_TEXTURE;
1510
+ @property (nonatomic, readonly) uint32_t RGBA32F;
1511
+ @property (nonatomic, readonly) uint32_t RGB32F;
1512
+ @property (nonatomic, readonly) uint32_t RGBA16F;
1513
+ @property (nonatomic, readonly) uint32_t RGB16F;
1514
+ @property (nonatomic, readonly) uint32_t TEXTURE_2D_ARRAY;
1515
+ @property (nonatomic, readonly) uint32_t TEXTURE_BINDING_2D_ARRAY;
1516
+ @property (nonatomic, readonly) uint32_t R11F_G11F_B10F;
1517
+ @property (nonatomic, readonly) uint32_t RGB9_E5;
1518
+ @property (nonatomic, readonly) uint32_t RGBA32UI;
1519
+ @property (nonatomic, readonly) uint32_t RGB32UI;
1520
+ @property (nonatomic, readonly) uint32_t RGBA16UI;
1521
+ @property (nonatomic, readonly) uint32_t RGB16UI;
1522
+ @property (nonatomic, readonly) uint32_t RGBA8UI;
1523
+ @property (nonatomic, readonly) uint32_t RGB8UI;
1524
+ @property (nonatomic, readonly) uint32_t RGBA32I;
1525
+ @property (nonatomic, readonly) uint32_t RGB32I;
1526
+ @property (nonatomic, readonly) uint32_t RGBA16I;
1527
+ @property (nonatomic, readonly) uint32_t RGB16I;
1528
+ @property (nonatomic, readonly) uint32_t RGBA8I;
1529
+ @property (nonatomic, readonly) uint32_t RGB8I;
1530
+ @property (nonatomic, readonly) uint32_t RED_INTEGER;
1531
+ @property (nonatomic, readonly) uint32_t RGB_INTEGER;
1532
+ @property (nonatomic, readonly) uint32_t RGBA_INTEGER;
1533
+ @property (nonatomic, readonly) uint32_t R8;
1534
+ @property (nonatomic, readonly) uint32_t RG8;
1535
+ @property (nonatomic, readonly) uint32_t R16F;
1536
+ @property (nonatomic, readonly) uint32_t R32F;
1537
+ @property (nonatomic, readonly) uint32_t RG16F;
1538
+ @property (nonatomic, readonly) uint32_t RG32F;
1539
+ @property (nonatomic, readonly) uint32_t R8I;
1540
+ @property (nonatomic, readonly) uint32_t R8UI;
1541
+ @property (nonatomic, readonly) uint32_t R16I;
1542
+ @property (nonatomic, readonly) uint32_t R16UI;
1543
+ @property (nonatomic, readonly) uint32_t R32I;
1544
+ @property (nonatomic, readonly) uint32_t R32UI;
1545
+ @property (nonatomic, readonly) uint32_t RG8I;
1546
+ @property (nonatomic, readonly) uint32_t RG8UI;
1547
+ @property (nonatomic, readonly) uint32_t RG16I;
1548
+ @property (nonatomic, readonly) uint32_t RG16UI;
1549
+ @property (nonatomic, readonly) uint32_t RG32I;
1550
+ @property (nonatomic, readonly) uint32_t RG32UI;
1551
+ @property (nonatomic, readonly) uint32_t R8_SNORM;
1552
+ @property (nonatomic, readonly) uint32_t RG8_SNORM;
1553
+ @property (nonatomic, readonly) uint32_t RGB8_SNORM;
1554
+ @property (nonatomic, readonly) uint32_t RGBA8_SNORM;
1555
+ @property (nonatomic, readonly) uint32_t RGB10_A2UI;
1556
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_FORMAT;
1557
+ @property (nonatomic, readonly) uint32_t TEXTURE_IMMUTABLE_LEVELS;
1558
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_2_10_10_10_REV;
1559
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_10F_11F_11F_REV;
1560
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_5_9_9_9_REV;
1561
+ @property (nonatomic, readonly) uint32_t FLOAT_32_UNSIGNED_INT_24_8_REV;
1562
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_24_8;
1563
+ @property (nonatomic, readonly) uint32_t HALF_FLOAT;
1564
+ @property (nonatomic, readonly) uint32_t RG;
1565
+ @property (nonatomic, readonly) uint32_t RG_INTEGER;
1566
+ @property (nonatomic, readonly) uint32_t INT_2_10_10_10_REV;
1567
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT_AVAILABLE;
1568
+ @property (nonatomic, readonly) uint32_t QUERY_RESULT;
1569
+ @property (nonatomic, readonly) uint32_t CURRENT_QUERY;
1570
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED;
1571
+ @property (nonatomic, readonly) uint32_t ANY_SAMPLES_PASSED_CONSERVATIVE;
1572
+ @property (nonatomic, readonly) uint32_t MAX_DRAW_BUFFERS;
1573
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER0;
1574
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER1;
1575
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER2;
1576
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER3;
1577
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER4;
1578
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER5;
1579
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER6;
1580
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER7;
1581
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER8;
1582
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER9;
1583
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER10;
1584
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER11;
1585
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER12;
1586
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER13;
1587
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER14;
1588
+ @property (nonatomic, readonly) uint32_t DRAW_BUFFER15;
1589
+ @property (nonatomic, readonly) uint32_t MAX_COLOR_ATTACHMENTS;
1590
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT1;
1591
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT2;
1592
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT3;
1593
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT4;
1594
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT5;
1595
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT6;
1596
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT7;
1597
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT8;
1598
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT9;
1599
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT10;
1600
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT11;
1601
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT12;
1602
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT13;
1603
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT14;
1604
+ @property (nonatomic, readonly) uint32_t COLOR_ATTACHMENT15;
1605
+ @property (nonatomic, readonly) uint32_t SAMPLER_3D;
1606
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_SHADOW;
1607
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY;
1608
+ @property (nonatomic, readonly) uint32_t SAMPLER_2D_ARRAY_SHADOW;
1609
+ @property (nonatomic, readonly) uint32_t SAMPLER_CUBE_SHADOW;
1610
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D;
1611
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_3D;
1612
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_CUBE;
1613
+ @property (nonatomic, readonly) uint32_t INT_SAMPLER_2D_ARRAY;
1614
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D;
1615
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_3D;
1616
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_CUBE;
1617
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_SAMPLER_2D_ARRAY;
1618
+ @property (nonatomic, readonly) uint32_t MAX_SAMPLES;
1619
+ @property (nonatomic, readonly) uint32_t SAMPLER_BINDING;
1620
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER;
1621
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER;
1622
+ @property (nonatomic, readonly) uint32_t PIXEL_PACK_BUFFER_BINDING;
1623
+ @property (nonatomic, readonly) uint32_t PIXEL_UNPACK_BUFFER_BINDING;
1624
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER;
1625
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER;
1626
+ @property (nonatomic, readonly) uint32_t COPY_READ_BUFFER_BINDING;
1627
+ @property (nonatomic, readonly) uint32_t COPY_WRITE_BUFFER_BINDING;
1628
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x3;
1629
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT2x4;
1630
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x2;
1631
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT3x4;
1632
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x2;
1633
+ @property (nonatomic, readonly) uint32_t FLOAT_MAT4x3;
1634
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC2;
1635
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC3;
1636
+ @property (nonatomic, readonly) uint32_t UNSIGNED_INT_VEC4;
1637
+ @property (nonatomic, readonly) uint32_t UNSIGNED_NORMALIZED;
1638
+ @property (nonatomic, readonly) uint32_t SIGNED_NORMALIZED;
1639
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_INTEGER;
1640
+ @property (nonatomic, readonly) uint32_t VERTEX_ATTRIB_ARRAY_DIVISOR;
1641
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_MODE;
1642
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS;
1643
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_VARYINGS;
1644
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_START;
1645
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_SIZE;
1646
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN;
1647
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS;
1648
+ @property (nonatomic, readonly) uint32_t MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS;
1649
+ @property (nonatomic, readonly) uint32_t INTERLEAVED_ATTRIBS;
1650
+ @property (nonatomic, readonly) uint32_t SEPARATE_ATTRIBS;
1651
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER;
1652
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BUFFER_BINDING;
1653
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK;
1654
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_PAUSED;
1655
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_ACTIVE;
1656
+ @property (nonatomic, readonly) uint32_t TRANSFORM_FEEDBACK_BINDING;
1657
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING;
1658
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE;
1659
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_RED_SIZE;
1660
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_GREEN_SIZE;
1661
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_BLUE_SIZE;
1662
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE;
1663
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE;
1664
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE;
1665
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_DEFAULT;
1666
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL_ATTACHMENT;
1667
+ @property (nonatomic, readonly) uint32_t DEPTH_STENCIL;
1668
+ @property (nonatomic, readonly) uint32_t DEPTH24_STENCIL8;
1669
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER_BINDING;
1670
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER;
1671
+ @property (nonatomic, readonly) uint32_t DRAW_FRAMEBUFFER;
1672
+ @property (nonatomic, readonly) uint32_t READ_FRAMEBUFFER_BINDING;
1673
+ @property (nonatomic, readonly) uint32_t RENDERBUFFER_SAMPLES;
1674
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER;
1675
+ @property (nonatomic, readonly) uint32_t FRAMEBUFFER_INCOMPLETE_MULTISAMPLE;
1676
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER;
1677
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_BINDING;
1678
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_START;
1679
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_SIZE;
1680
+ @property (nonatomic, readonly) uint32_t MAX_VERTEX_UNIFORM_BLOCKS;
1681
+ @property (nonatomic, readonly) uint32_t MAX_FRAGMENT_UNIFORM_BLOCKS;
1682
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_UNIFORM_BLOCKS;
1683
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BUFFER_BINDINGS;
1684
+ @property (nonatomic, readonly) uint32_t MAX_UNIFORM_BLOCK_SIZE;
1685
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS;
1686
+ @property (nonatomic, readonly) uint32_t MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS;
1687
+ @property (nonatomic, readonly) uint32_t UNIFORM_BUFFER_OFFSET_ALIGNMENT;
1688
+ @property (nonatomic, readonly) uint32_t ACTIVE_UNIFORM_BLOCKS;
1689
+ @property (nonatomic, readonly) uint32_t UNIFORM_TYPE;
1690
+ @property (nonatomic, readonly) uint32_t UNIFORM_SIZE;
1691
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_INDEX;
1692
+ @property (nonatomic, readonly) uint32_t UNIFORM_OFFSET;
1693
+ @property (nonatomic, readonly) uint32_t UNIFORM_ARRAY_STRIDE;
1694
+ @property (nonatomic, readonly) uint32_t UNIFORM_MATRIX_STRIDE;
1695
+ @property (nonatomic, readonly) uint32_t UNIFORM_IS_ROW_MAJOR;
1696
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_BINDING;
1697
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_DATA_SIZE;
1698
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORMS;
1699
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES;
1700
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER;
1701
+ @property (nonatomic, readonly) uint32_t UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER;
1702
+ @property (nonatomic, readonly) uint32_t OBJECT_TYPE;
1703
+ @property (nonatomic, readonly) uint32_t SYNC_CONDITION;
1704
+ @property (nonatomic, readonly) uint32_t SYNC_STATUS;
1705
+ @property (nonatomic, readonly) uint32_t SYNC_FLAGS;
1706
+ @property (nonatomic, readonly) uint32_t SYNC_FENCE;
1707
+ @property (nonatomic, readonly) uint32_t SYNC_GPU_COMMANDS_COMPLETE;
1708
+ @property (nonatomic, readonly) uint32_t UNSIGNALED;
1709
+ @property (nonatomic, readonly) uint32_t SIGNALED;
1710
+ @property (nonatomic, readonly) uint32_t ALREADY_SIGNALED;
1711
+ @property (nonatomic, readonly) uint32_t TIMEOUT_EXPIRED;
1712
+ @property (nonatomic, readonly) uint32_t CONDITION_SATISFIED;
1713
+ @property (nonatomic, readonly) uint32_t WAIT_FAILED;
1714
+ @property (nonatomic, readonly) uint32_t SYNC_FLUSH_COMMANDS_BIT;
1715
+ @property (nonatomic, readonly) uint32_t COLOR;
1716
+ @property (nonatomic, readonly) uint32_t DEPTH;
1717
+ @property (nonatomic, readonly) uint32_t STENCIL;
1718
+ @property (nonatomic, readonly) uint32_t MIN;
1719
+ @property (nonatomic, readonly) uint32_t MAX;
1720
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT24;
1721
+ @property (nonatomic, readonly) uint32_t STREAM_READ;
1722
+ @property (nonatomic, readonly) uint32_t STREAM_COPY;
1723
+ @property (nonatomic, readonly) uint32_t STATIC_READ;
1724
+ @property (nonatomic, readonly) uint32_t STATIC_COPY;
1725
+ @property (nonatomic, readonly) uint32_t DYNAMIC_READ;
1726
+ @property (nonatomic, readonly) uint32_t DYNAMIC_COPY;
1727
+ @property (nonatomic, readonly) uint32_t DEPTH_COMPONENT32F;
1728
+ @property (nonatomic, readonly) uint32_t DEPTH32F_STENCIL8;
1729
+ @property (nonatomic, readonly) NSInteger INVALID_INDEX;
1730
+ @property (nonatomic, readonly) uint64_t TIMEOUT_IGNORED;
1731
+ @property (nonatomic, readonly) uint32_t MAX_CLIENT_WAIT_TIMEOUT_WEBGL;
1732
+ @end
1733
+
1734
+
1735
+ SWIFT_CLASS_NAMED("TNSWebGLActiveInfo")
1736
+ @interface TNSWebGLActiveInfo : NSObject
1737
+ @property (nonatomic, readonly, copy) NSString * _Nonnull name;
1738
+ @property (nonatomic, readonly) int32_t size;
1739
+ @property (nonatomic, readonly) uint32_t type;
1740
+ - (nonnull instancetype)initWithName:(NSString * _Nonnull)name size:(int32_t)size type:(uint32_t)type OBJC_DESIGNATED_INITIALIZER;
1741
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1742
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1743
+ @end
1744
+
1745
+
1746
+
1747
+ SWIFT_CLASS_NAMED("TNSWebGLShaderPrecisionFormat")
1748
+ @interface TNSWebGLShaderPrecisionFormat : NSObject
1749
+ @property (nonatomic, readonly) int32_t rangeMin;
1750
+ @property (nonatomic, readonly) int32_t rangeMax;
1751
+ @property (nonatomic, readonly) int32_t precision;
1752
+ - (nonnull instancetype)initWithRangeMin:(int32_t)rangeMin rangeMax:(int32_t)rangeMax precision:(int32_t)precision OBJC_DESIGNATED_INITIALIZER;
1753
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1754
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1755
+ @end
1756
+
1757
+
1758
+ SWIFT_CLASS_NAMED("TNS_ANGLE_instanced_arrays")
1759
+ @interface TNS_ANGLE_instanced_arrays : NSObject
1760
+ @property (nonatomic, readonly) int32_t VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE;
1761
+ - (nonnull instancetype)initWithContext:(TNSWebGLRenderingContext * _Nonnull)context OBJC_DESIGNATED_INITIALIZER;
1762
+ - (void)drawArraysInstancedANGLEWithMode:(int32_t)mode first:(int32_t)first count:(int32_t)count primcount:(int32_t)primcount;
1763
+ - (void)drawElementsInstancedANGLEWithMode:(int32_t)mode count:(int32_t)count type:(int32_t)type offset:(int32_t)offset primcount:(int32_t)primcount;
1764
+ - (void)vertexAttribDivisorANGLEWithIndex:(int32_t)index divisor:(int32_t)divisor;
1765
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1766
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1767
+ @end
1768
+
1769
+
1770
+ SWIFT_CLASS_NAMED("TNS_EXT_blend_minmax")
1771
+ @interface TNS_EXT_blend_minmax : NSObject
1772
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1773
+ @property (nonatomic, readonly) int32_t MIN_EXT;
1774
+ @property (nonatomic, readonly) int32_t MAX_EXT;
1775
+ @end
1776
+
1777
+
1778
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_float")
1779
+ @interface TNS_EXT_color_buffer_float : NSObject
1780
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1781
+ @property (nonatomic, readonly) int32_t R16F;
1782
+ @property (nonatomic, readonly) int32_t RG16F;
1783
+ @property (nonatomic, readonly) int32_t RGB16F;
1784
+ @property (nonatomic, readonly) int32_t R32F;
1785
+ @property (nonatomic, readonly) int32_t RG32F;
1786
+ @property (nonatomic, readonly) int32_t RGBA32F;
1787
+ @property (nonatomic, readonly) int32_t R11F_G11F_B10F;
1788
+ @end
1789
+
1790
+
1791
+ SWIFT_CLASS_NAMED("TNS_EXT_color_buffer_half_float")
1792
+ @interface TNS_EXT_color_buffer_half_float : NSObject
1793
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1794
+ @property (nonatomic, readonly) int32_t RGBA16F_EXT;
1795
+ @property (nonatomic, readonly) int32_t RGB16F_EXT;
1796
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
1797
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
1798
+ @end
1799
+
1800
+
1801
+ SWIFT_CLASS_NAMED("TNS_EXT_sRGB")
1802
+ @interface TNS_EXT_sRGB : NSObject
1803
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1804
+ @property (nonatomic, readonly) int32_t SRGB_EXT;
1805
+ @property (nonatomic, readonly) int32_t SRGB_ALPHA_EXT;
1806
+ @property (nonatomic, readonly) int32_t SRGB8_ALPHA8_EXT;
1807
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT;
1808
+ @end
1809
+
1810
+
1811
+ SWIFT_CLASS_NAMED("TNS_EXT_shader_texture_lod")
1812
+ @interface TNS_EXT_shader_texture_lod : NSObject
1813
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1814
+ @end
1815
+
1816
+
1817
+ SWIFT_CLASS_NAMED("TNS_EXT_texture_filter_anisotropic")
1818
+ @interface TNS_EXT_texture_filter_anisotropic : NSObject
1819
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1820
+ @property (nonatomic, readonly) int32_t MAX_TEXTURE_MAX_ANISOTROPY_EXT;
1821
+ @property (nonatomic, readonly) int32_t TEXTURE_MAX_ANISOTROPY_EXT;
1822
+ @end
1823
+
1824
+
1825
+ SWIFT_CLASS_NAMED("TNS_OES_element_index_uint")
1826
+ @interface TNS_OES_element_index_uint : NSObject
1827
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1828
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT;
1829
+ @end
1830
+
1831
+
1832
+ SWIFT_CLASS_NAMED("TNS_OES_fbo_render_mipmap")
1833
+ @interface TNS_OES_fbo_render_mipmap : NSObject
1834
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1835
+ @end
1836
+
1837
+
1838
+ SWIFT_CLASS_NAMED("TNS_OES_standard_derivatives")
1839
+ @interface TNS_OES_standard_derivatives : NSObject
1840
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1841
+ @end
1842
+
1843
+
1844
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float")
1845
+ @interface TNS_OES_texture_float : NSObject
1846
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1847
+ @end
1848
+
1849
+
1850
+ SWIFT_CLASS_NAMED("TNS_OES_texture_float_linear")
1851
+ @interface TNS_OES_texture_float_linear : NSObject
1852
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1853
+ @end
1854
+
1855
+
1856
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float")
1857
+ @interface TNS_OES_texture_half_float : NSObject
1858
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1859
+ @property (nonatomic, readonly) int32_t HALF_FLOAT_OES;
1860
+ @end
1861
+
1862
+
1863
+ SWIFT_CLASS_NAMED("TNS_OES_texture_half_float_linear")
1864
+ @interface TNS_OES_texture_half_float_linear : NSObject
1865
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1866
+ @end
1867
+
1868
+
1869
+ SWIFT_CLASS_NAMED("TNS_OES_vertex_array_object")
1870
+ @interface TNS_OES_vertex_array_object : NSObject
1871
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1872
+ @property (nonatomic, readonly) int32_t VERTEX_ARRAY_BINDING_OES;
1873
+ - (uint32_t)createVertexArrayOES SWIFT_WARN_UNUSED_RESULT;
1874
+ - (void)deleteVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
1875
+ - (BOOL)isVertexArrayOESWithArrayObject:(uint32_t)arrayObject SWIFT_WARN_UNUSED_RESULT;
1876
+ - (void)bindVertexArrayOESWithArrayObject:(uint32_t)arrayObject;
1877
+ @end
1878
+
1879
+
1880
+ SWIFT_CLASS_NAMED("TNS_WEBGL_color_buffer_float")
1881
+ @interface TNS_WEBGL_color_buffer_float : NSObject
1882
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1883
+ @property (nonatomic, readonly) int32_t RGBA32F_EXT;
1884
+ @property (nonatomic, readonly) int32_t RGB32F_EXT;
1885
+ @property (nonatomic, readonly) int32_t FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT;
1886
+ @property (nonatomic, readonly) int32_t UNSIGNED_NORMALIZED_EXT;
1887
+ @end
1888
+
1889
+
1890
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc")
1891
+ @interface TNS_WEBGL_compressed_texture_etc : NSObject
1892
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1893
+ @property (nonatomic, readonly) int32_t COMPRESSED_R11_EAC;
1894
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_R11_EAC;
1895
+ @property (nonatomic, readonly) int32_t COMPRESSED_RG11_EAC;
1896
+ @property (nonatomic, readonly) int32_t COMPRESSED_SIGNED_RG11_EAC;
1897
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_ETC2;
1898
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA8_ETC2_EAC;
1899
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ETC2;
1900
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_ALPHA8_ETC2_EAC;
1901
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2;
1902
+ @property (nonatomic, readonly) int32_t COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2;
1903
+ @end
1904
+
1905
+
1906
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_etc1")
1907
+ @interface TNS_WEBGL_compressed_texture_etc1 : NSObject
1908
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1909
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_ETC1_WEBGL;
1910
+ @end
1911
+
1912
+
1913
+ SWIFT_CLASS_NAMED("TNS_WEBGL_compressed_texture_pvrtc")
1914
+ @interface TNS_WEBGL_compressed_texture_pvrtc : NSObject
1915
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1916
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
1917
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
1918
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
1919
+ @property (nonatomic, readonly) int32_t COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
1920
+ @end
1921
+
1922
+
1923
+ SWIFT_CLASS_NAMED("TNS_WEBGL_depth_texture")
1924
+ @interface TNS_WEBGL_depth_texture : NSObject
1925
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1926
+ @property (nonatomic, readonly) int32_t UNSIGNED_INT_24_8_WEBGL;
1927
+ @end
1928
+
1929
+
1930
+ SWIFT_CLASS_NAMED("TNS_WEBGL_draw_buffers")
1931
+ @interface TNS_WEBGL_draw_buffers : NSObject
1932
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT0_WEBGL;
1933
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT1_WEBGL;
1934
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT2_WEBGL;
1935
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT3_WEBGL;
1936
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT4_WEBGL;
1937
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT5_WEBGL;
1938
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT6_WEBGL;
1939
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT7_WEBGL;
1940
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT8_WEBGL;
1941
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT9_WEBGL;
1942
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT10_WEBGL;
1943
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT11_WEBGL;
1944
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT12_WEBGL;
1945
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT13_WEBGL;
1946
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT14_WEBGL;
1947
+ @property (nonatomic, readonly) int32_t COLOR_ATTACHMENT15_WEBGL;
1948
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER0_WEBGL;
1949
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER1_WEBGL;
1950
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER2_WEBGL;
1951
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER3_WEBGL;
1952
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER4_WEBGL;
1953
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER5_WEBGL;
1954
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER6_WEBGL;
1955
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER7_WEBGL;
1956
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER8_WEBGL;
1957
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER9_WEBGL;
1958
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER10_WEBGL;
1959
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER11_WEBGL;
1960
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER12_WEBGL;
1961
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER13_WEBGL;
1962
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER14_WEBGL;
1963
+ @property (nonatomic, readonly) int32_t DRAW_BUFFER15_WEBGL;
1964
+ @property (nonatomic, readonly) int32_t MAX_COLOR_ATTACHMENTS_WEBGL;
1965
+ @property (nonatomic, readonly) int32_t MAX_DRAW_BUFFERS_WEBGL;
1966
+ - (void)drawBuffersWEBGLWithBuffers:(NSArray<NSNumber *> * _Nonnull)buffers;
1967
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1968
+ @end
1969
+
1970
+
1971
+ SWIFT_CLASS_NAMED("TNS_WEBGL_lose_context")
1972
+ @interface TNS_WEBGL_lose_context : NSObject
1973
+ - (nonnull instancetype)initWithCanvas:(TNSCanvas * _Nonnull)canvas OBJC_DESIGNATED_INITIALIZER;
1974
+ - (void)loseContext;
1975
+ - (void)restoreContext;
1976
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
1977
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
1978
+ @end
1979
+
1980
+ @class AVPlayer;
1981
+ @class AVPlayerItemVideoOutput;
1982
+
1983
+ SWIFT_CLASS_NAMED("Utils")
1984
+ @interface Utils : NSObject
1985
+ + (CVOpenGLESTextureCacheRef _Nullable)createTextureCache:(TNSWebGLRenderingContext * _Nonnull)context SWIFT_WARN_UNUSED_RESULT;
1986
+ + (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;
1987
+ + (TNSRender * _Nonnull)setupRender SWIFT_WARN_UNUSED_RESULT;
1988
+ + (void)drawFrame:(AVPlayer * _Nonnull)player :(AVPlayerItemVideoOutput * _Nonnull)output :(CGSize)videoSize :(TNSRender * _Nonnull)render :(int32_t)internalFormat :(int32_t)format :(BOOL)flipYWebGL;
1989
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
1990
+ @end
1991
+
1992
+ #if __has_attribute(external_source_symbol)
1993
+ # pragma clang attribute pop
1994
+ #endif
1995
+ #pragma clang diagnostic pop
1996
+ #endif