@nativescript/canvas 2.0.0-alpha.2 → 2.0.0-alpha.3

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