sfml.js 0.0.1-preview.4 → 0.0.1-preview.40

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 (668) hide show
  1. package/README.md +2 -4
  2. package/binding.gyp +63 -17
  3. package/index.d.ts +1 -0
  4. package/lib/clock.d.ts +1 -3
  5. package/lib/clock.js +3 -1
  6. package/lib/color.d.ts +2 -2
  7. package/lib/color.js +58 -3
  8. package/lib/common.js +33 -7
  9. package/lib/drawable/circle_shape.d.ts +2 -2
  10. package/lib/drawable/circle_shape.js +3 -3
  11. package/lib/drawable/convex_shape.d.ts +5 -0
  12. package/lib/drawable/convex_shape.js +35 -0
  13. package/lib/drawable/drawable.d.ts +6 -0
  14. package/lib/drawable/{base.js → drawable.js} +7 -4
  15. package/lib/drawable/plugin_package.d.ts +31 -0
  16. package/lib/drawable/plugin_package.js +102 -0
  17. package/lib/drawable/rectangle_shape.d.ts +6 -3
  18. package/lib/drawable/rectangle_shape.js +14 -2
  19. package/lib/drawable/shape.d.ts +8 -32
  20. package/lib/drawable/shape.js +16 -115
  21. package/lib/drawable/sprite.d.ts +17 -0
  22. package/lib/drawable/sprite.js +53 -0
  23. package/lib/drawable/text.d.ts +26 -0
  24. package/lib/drawable/text.js +88 -0
  25. package/lib/drawable/transformable.d.ts +28 -0
  26. package/lib/drawable/transformable.js +113 -0
  27. package/lib/drawable/vertex_array.d.ts +40 -0
  28. package/lib/drawable/vertex_array.js +128 -0
  29. package/lib/font.d.ts +24 -0
  30. package/lib/font.js +137 -0
  31. package/lib/image.d.ts +26 -0
  32. package/lib/image.js +147 -0
  33. package/lib/keyboard.d.ts +106 -0
  34. package/lib/keyboard.js +17 -0
  35. package/lib/mouse.d.ts +6 -0
  36. package/lib/mouse.js +39 -0
  37. package/lib/poll_event.d.ts +2 -4
  38. package/lib/rect.d.ts +1 -1
  39. package/lib/rect.js +29 -9
  40. package/lib/render_window.d.ts +27 -14
  41. package/lib/render_window.js +61 -7
  42. package/lib/sfml.d.ts +28 -0
  43. package/lib/sfml.js +22 -9
  44. package/lib/sound/base.d.ts +33 -0
  45. package/lib/sound/base.js +109 -0
  46. package/lib/sound/music.d.ts +15 -0
  47. package/lib/sound/music.js +65 -0
  48. package/lib/sound/sound.d.ts +16 -0
  49. package/lib/sound/sound.js +55 -0
  50. package/lib/sound/sound_buffer.d.ts +14 -0
  51. package/lib/sound/sound_buffer.js +78 -0
  52. package/lib/texture.d.ts +21 -0
  53. package/lib/texture.js +127 -0
  54. package/lib/time.d.ts +2 -2
  55. package/lib/vector2.d.ts +24 -0
  56. package/lib/vector2.js +85 -16
  57. package/lib/vertex.d.ts +14 -0
  58. package/lib/vertex.js +177 -0
  59. package/lib/video_mode.d.ts +2 -4
  60. package/lib/video_mode.js +15 -5
  61. package/package.json +33 -10
  62. package/src/base_class_with_loading.h +21 -0
  63. package/src/clock.cc +3 -3
  64. package/src/clock.h +5 -2
  65. package/src/color.cc +18 -13
  66. package/src/color.h +9 -3
  67. package/src/drawable/circle_shape.cc +9 -9
  68. package/src/drawable/circle_shape.h +4 -1
  69. package/src/drawable/convex_shape.cc +57 -0
  70. package/src/drawable/convex_shape.h +29 -0
  71. package/src/drawable/drawable-inl.h +29 -0
  72. package/src/drawable/drawable.cc +41 -0
  73. package/src/drawable/drawable.h +26 -38
  74. package/src/drawable/package_plugin-inl.h +191 -0
  75. package/src/drawable/package_plugin.h +60 -0
  76. package/src/drawable/rectangle_shape.cc +43 -7
  77. package/src/drawable/rectangle_shape.h +7 -1
  78. package/src/drawable/shape.cc +67 -0
  79. package/src/drawable/shape.h +13 -28
  80. package/src/drawable/sprite.cc +122 -0
  81. package/src/drawable/sprite.h +45 -0
  82. package/src/drawable/text.cc +133 -0
  83. package/src/drawable/text.h +54 -0
  84. package/src/drawable/vertex_array.cc +248 -0
  85. package/src/drawable/vertex_array.h +46 -0
  86. package/src/font.cc +208 -0
  87. package/src/font.h +43 -0
  88. package/src/image.cc +379 -0
  89. package/src/image.h +72 -0
  90. package/src/keyboard.cc +50 -0
  91. package/src/keyboard.h +8 -1
  92. package/src/mouse.cc +80 -0
  93. package/src/mouse.h +9 -1
  94. package/src/plugins/transformable_plugin-inl.h +121 -0
  95. package/src/plugins/transformable_plugin.h +42 -0
  96. package/src/poll_event.h +2 -1
  97. package/src/rect-inl.h +21 -16
  98. package/src/rect.h +10 -8
  99. package/src/render_window.cc +72 -6
  100. package/src/render_window.h +25 -2
  101. package/src/resizable_buffer.h +103 -0
  102. package/src/sfml.cc +29 -0
  103. package/src/sound/music.cc +113 -0
  104. package/src/sound/music.h +35 -0
  105. package/src/sound/sound.cc +116 -0
  106. package/src/sound/sound.h +41 -0
  107. package/src/sound/sound_buffer.cc +226 -0
  108. package/src/sound/sound_buffer.h +46 -0
  109. package/src/sound/sound_source.cc +124 -0
  110. package/src/sound/sound_source.h +80 -0
  111. package/src/texture.cc +246 -0
  112. package/src/texture.h +47 -0
  113. package/src/time.h +2 -1
  114. package/src/utils-inl.h +19 -0
  115. package/src/utils.h +6 -0
  116. package/src/vector2-inl.h +101 -17
  117. package/src/vector2.cc +4 -3
  118. package/src/vector2.h +42 -12
  119. package/src/vertex.cc +238 -0
  120. package/src/vertex.h +114 -0
  121. package/src/video_mode.cc +9 -9
  122. package/src/video_mode.h +9 -2
  123. package/src/workers/load_from_file_worker.h +79 -0
  124. package/src/workers/save_to_file_worker.h +79 -0
  125. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/AlResource.hpp +0 -0
  126. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/Export.hpp +0 -0
  127. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/InputSoundFile.hpp +0 -0
  128. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/Listener.hpp +0 -0
  129. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/Music.hpp +0 -0
  130. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/OutputSoundFile.hpp +0 -0
  131. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/Sound.hpp +0 -0
  132. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundBuffer.hpp +0 -0
  133. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundBufferRecorder.hpp +0 -0
  134. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundFileFactory.hpp +0 -0
  135. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundFileFactory.inl +0 -0
  136. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundFileReader.hpp +0 -0
  137. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundFileWriter.hpp +0 -0
  138. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundRecorder.hpp +0 -0
  139. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundSource.hpp +0 -0
  140. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio/SoundStream.hpp +0 -0
  141. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Audio.hpp +0 -0
  142. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Config.hpp +0 -0
  143. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/GpuPreference.hpp +0 -0
  144. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/BlendMode.hpp +0 -0
  145. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/CircleShape.hpp +0 -0
  146. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Color.hpp +0 -0
  147. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/ConvexShape.hpp +0 -0
  148. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Drawable.hpp +0 -0
  149. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Export.hpp +0 -0
  150. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Font.hpp +0 -0
  151. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Glsl.hpp +0 -0
  152. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Glsl.inl +0 -0
  153. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Glyph.hpp +0 -0
  154. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Image.hpp +0 -0
  155. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/PrimitiveType.hpp +0 -0
  156. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Rect.hpp +0 -0
  157. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Rect.inl +0 -0
  158. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/RectangleShape.hpp +0 -0
  159. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/RenderStates.hpp +0 -0
  160. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/RenderTarget.hpp +0 -0
  161. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/RenderTexture.hpp +0 -0
  162. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/RenderWindow.hpp +0 -0
  163. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Shader.hpp +0 -0
  164. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Shape.hpp +0 -0
  165. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Sprite.hpp +0 -0
  166. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Text.hpp +0 -0
  167. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Texture.hpp +0 -0
  168. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Transform.hpp +0 -0
  169. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Transformable.hpp +0 -0
  170. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/Vertex.hpp +0 -0
  171. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/VertexArray.hpp +0 -0
  172. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/VertexBuffer.hpp +0 -0
  173. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics/View.hpp +0 -0
  174. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Graphics.hpp +0 -0
  175. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Main.hpp +0 -0
  176. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/Export.hpp +0 -0
  177. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/Ftp.hpp +0 -0
  178. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/Http.hpp +0 -0
  179. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/IpAddress.hpp +0 -0
  180. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/Packet.hpp +0 -0
  181. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/Socket.hpp +0 -0
  182. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/SocketHandle.hpp +0 -0
  183. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/SocketSelector.hpp +0 -0
  184. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/TcpListener.hpp +0 -0
  185. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/TcpSocket.hpp +0 -0
  186. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network/UdpSocket.hpp +0 -0
  187. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Network.hpp +0 -0
  188. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/OpenGL.hpp +0 -0
  189. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Clock.hpp +0 -0
  190. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Err.hpp +0 -0
  191. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Export.hpp +0 -0
  192. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/FileInputStream.hpp +0 -0
  193. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/InputStream.hpp +0 -0
  194. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Lock.hpp +0 -0
  195. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/MemoryInputStream.hpp +0 -0
  196. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Mutex.hpp +0 -0
  197. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/NativeActivity.hpp +0 -0
  198. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/NonCopyable.hpp +0 -0
  199. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Sleep.hpp +0 -0
  200. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/String.hpp +0 -0
  201. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/String.inl +0 -0
  202. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Thread.hpp +0 -0
  203. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Thread.inl +0 -0
  204. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/ThreadLocal.hpp +0 -0
  205. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/ThreadLocalPtr.hpp +0 -0
  206. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/ThreadLocalPtr.inl +0 -0
  207. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Time.hpp +0 -0
  208. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Utf.hpp +0 -0
  209. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Utf.inl +0 -0
  210. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Vector2.hpp +0 -0
  211. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Vector2.inl +0 -0
  212. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Vector3.hpp +0 -0
  213. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System/Vector3.inl +0 -0
  214. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/System.hpp +0 -0
  215. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Clipboard.hpp +0 -0
  216. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Context.hpp +0 -0
  217. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/ContextSettings.hpp +0 -0
  218. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Cursor.hpp +0 -0
  219. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Event.hpp +0 -0
  220. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Export.hpp +0 -0
  221. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/GlResource.hpp +0 -0
  222. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Joystick.hpp +0 -0
  223. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Keyboard.hpp +0 -0
  224. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Mouse.hpp +0 -0
  225. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Sensor.hpp +0 -0
  226. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Touch.hpp +0 -0
  227. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/VideoMode.hpp +0 -0
  228. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/Window.hpp +0 -0
  229. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/WindowHandle.hpp +0 -0
  230. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window/WindowStyle.hpp +0 -0
  231. package/third_party/{SFML-2.5.1 → sfml}/include/SFML/Window.hpp +0 -0
  232. package/third_party/sfml/platform/linux/lib/libsfml-audio.so.2.5.1 +0 -0
  233. package/third_party/sfml/platform/linux/lib/libsfml-graphics.so.2.5.1 +0 -0
  234. package/third_party/sfml/platform/linux/lib/libsfml-network.so.2.5.1 +0 -0
  235. package/third_party/sfml/platform/linux/lib/libsfml-system.so.2.5.1 +0 -0
  236. package/third_party/sfml/platform/linux/lib/libsfml-window.so.2.5.1 +0 -0
  237. package/third_party/{SFML-2.5.1/macOS/Frameworks/FLAC.framework/Versions/A → sfml/platform/macOS/Frameworks/FLAC.framework}/Resources/Info.plist +0 -0
  238. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/FLAC.framework/Versions/A/FLAC +0 -0
  239. package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/A/Resources/Info.plist +22 -0
  240. package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/Current/FLAC +0 -0
  241. package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/Current/Resources/Info.plist +22 -0
  242. package/third_party/{SFML-2.5.1/macOS/Frameworks/OpenAL.framework/Versions/A → sfml/platform/macOS/Frameworks/OpenAL.framework}/Resources/Info.plist +0 -0
  243. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/OpenAL.framework/Versions/A/OpenAL +0 -0
  244. package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/A/Resources/Info.plist +22 -0
  245. package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/Current/OpenAL +0 -0
  246. package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/Current/Resources/Info.plist +22 -0
  247. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/AlResource.hpp +0 -0
  248. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/Export.hpp +0 -0
  249. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/InputSoundFile.hpp +0 -0
  250. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/Listener.hpp +0 -0
  251. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/Music.hpp +0 -0
  252. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/OutputSoundFile.hpp +0 -0
  253. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/Sound.hpp +0 -0
  254. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundBuffer.hpp +0 -0
  255. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundBufferRecorder.hpp +0 -0
  256. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundFileFactory.hpp +0 -0
  257. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundFileFactory.inl +0 -0
  258. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundFileReader.hpp +0 -0
  259. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundFileWriter.hpp +0 -0
  260. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundRecorder.hpp +0 -0
  261. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundSource.hpp +0 -0
  262. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio/SoundStream.hpp +0 -0
  263. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Audio.hpp +0 -0
  264. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Config.hpp +0 -0
  265. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/GpuPreference.hpp +0 -0
  266. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/BlendMode.hpp +0 -0
  267. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/CircleShape.hpp +0 -0
  268. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Color.hpp +0 -0
  269. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/ConvexShape.hpp +0 -0
  270. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Drawable.hpp +0 -0
  271. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Export.hpp +0 -0
  272. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Font.hpp +0 -0
  273. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Glsl.hpp +0 -0
  274. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Glsl.inl +0 -0
  275. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Glyph.hpp +0 -0
  276. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Image.hpp +0 -0
  277. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/PrimitiveType.hpp +0 -0
  278. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Rect.hpp +0 -0
  279. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Rect.inl +0 -0
  280. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/RectangleShape.hpp +0 -0
  281. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/RenderStates.hpp +0 -0
  282. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/RenderTarget.hpp +0 -0
  283. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/RenderTexture.hpp +0 -0
  284. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/RenderWindow.hpp +0 -0
  285. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Shader.hpp +0 -0
  286. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Shape.hpp +0 -0
  287. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Sprite.hpp +0 -0
  288. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Text.hpp +0 -0
  289. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Texture.hpp +0 -0
  290. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Transform.hpp +0 -0
  291. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Transformable.hpp +0 -0
  292. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/Vertex.hpp +0 -0
  293. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/VertexArray.hpp +0 -0
  294. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/VertexBuffer.hpp +0 -0
  295. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics/View.hpp +0 -0
  296. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Graphics.hpp +0 -0
  297. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Main.hpp +0 -0
  298. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/Export.hpp +0 -0
  299. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/Ftp.hpp +0 -0
  300. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/Http.hpp +0 -0
  301. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/IpAddress.hpp +0 -0
  302. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/Packet.hpp +0 -0
  303. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/Socket.hpp +0 -0
  304. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/SocketHandle.hpp +0 -0
  305. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/SocketSelector.hpp +0 -0
  306. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/TcpListener.hpp +0 -0
  307. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/TcpSocket.hpp +0 -0
  308. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network/UdpSocket.hpp +0 -0
  309. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Network.hpp +0 -0
  310. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/OpenGL.hpp +0 -0
  311. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Clock.hpp +0 -0
  312. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Err.hpp +0 -0
  313. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Export.hpp +0 -0
  314. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/FileInputStream.hpp +0 -0
  315. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/InputStream.hpp +0 -0
  316. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Lock.hpp +0 -0
  317. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/MemoryInputStream.hpp +0 -0
  318. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Mutex.hpp +0 -0
  319. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/NativeActivity.hpp +0 -0
  320. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/NonCopyable.hpp +0 -0
  321. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Sleep.hpp +0 -0
  322. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/String.hpp +0 -0
  323. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/String.inl +0 -0
  324. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Thread.hpp +0 -0
  325. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Thread.inl +0 -0
  326. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/ThreadLocal.hpp +0 -0
  327. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/ThreadLocalPtr.hpp +0 -0
  328. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/ThreadLocalPtr.inl +0 -0
  329. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Time.hpp +0 -0
  330. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Utf.hpp +0 -0
  331. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Utf.inl +0 -0
  332. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Vector2.hpp +0 -0
  333. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Vector2.inl +0 -0
  334. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Vector3.hpp +0 -0
  335. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System/Vector3.inl +0 -0
  336. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/System.hpp +0 -0
  337. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Clipboard.hpp +0 -0
  338. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Context.hpp +0 -0
  339. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/ContextSettings.hpp +0 -0
  340. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Cursor.hpp +0 -0
  341. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Event.hpp +0 -0
  342. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Export.hpp +0 -0
  343. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/GlResource.hpp +0 -0
  344. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Joystick.hpp +0 -0
  345. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Keyboard.hpp +0 -0
  346. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Mouse.hpp +0 -0
  347. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Sensor.hpp +0 -0
  348. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Touch.hpp +0 -0
  349. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/VideoMode.hpp +0 -0
  350. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/Window.hpp +0 -0
  351. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/WindowHandle.hpp +0 -0
  352. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window/WindowStyle.hpp +0 -0
  353. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Headers/Window.hpp +0 -0
  354. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/CMake/SFMLConfig.cmake +0 -0
  355. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/CMake/SFMLConfigDependencies.cmake +0 -0
  356. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/CMake/SFMLConfigVersion.cmake +0 -0
  357. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/CMake/SFMLSharedTargets-release.cmake +0 -0
  358. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/CMake/SFMLSharedTargets.cmake +0 -0
  359. package/third_party/{SFML-2.5.1/macOS/Frameworks/SFML.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/SFML.framework}/Resources/Info.plist +0 -0
  360. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/AlResource.hpp +70 -0
  361. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Export.hpp +48 -0
  362. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/InputSoundFile.hpp +263 -0
  363. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Listener.hpp +234 -0
  364. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Music.hpp +337 -0
  365. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/OutputSoundFile.hpp +133 -0
  366. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Sound.hpp +264 -0
  367. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundBuffer.hpp +352 -0
  368. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundBufferRecorder.hpp +144 -0
  369. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileFactory.hpp +197 -0
  370. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileFactory.inl +100 -0
  371. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileReader.hpp +165 -0
  372. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileWriter.hpp +125 -0
  373. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundRecorder.hpp +408 -0
  374. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundSource.hpp +332 -0
  375. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundStream.hpp +405 -0
  376. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio.hpp +56 -0
  377. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Config.hpp +236 -0
  378. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/GpuPreference.hpp +74 -0
  379. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/BlendMode.hpp +215 -0
  380. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/CircleShape.hpp +154 -0
  381. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Color.hpp +275 -0
  382. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/ConvexShape.hpp +153 -0
  383. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Drawable.hpp +126 -0
  384. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Export.hpp +48 -0
  385. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Font.hpp +439 -0
  386. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glsl.hpp +227 -0
  387. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glsl.inl +155 -0
  388. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glyph.hpp +79 -0
  389. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Image.hpp +324 -0
  390. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/PrimitiveType.hpp +58 -0
  391. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Rect.hpp +254 -0
  392. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Rect.inl +159 -0
  393. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RectangleShape.hpp +132 -0
  394. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderStates.hpp +174 -0
  395. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderTarget.hpp +510 -0
  396. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderTexture.hpp +314 -0
  397. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderWindow.hpp +284 -0
  398. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Shader.hpp +875 -0
  399. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Shape.hpp +355 -0
  400. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Sprite.hpp +279 -0
  401. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Text.hpp +513 -0
  402. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Texture.hpp +733 -0
  403. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Transform.hpp +479 -0
  404. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Transformable.hpp +429 -0
  405. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Vertex.hpp +148 -0
  406. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/VertexArray.hpp +223 -0
  407. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/VertexBuffer.hpp +408 -0
  408. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/View.hpp +343 -0
  409. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics.hpp +68 -0
  410. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Main.hpp +43 -0
  411. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Export.hpp +48 -0
  412. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Ftp.hpp +616 -0
  413. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Http.hpp +482 -0
  414. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/IpAddress.hpp +328 -0
  415. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Packet.hpp +532 -0
  416. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Socket.hpp +219 -0
  417. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/SocketHandle.hpp +57 -0
  418. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/SocketSelector.hpp +263 -0
  419. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/TcpListener.hpp +166 -0
  420. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/TcpSocket.hpp +316 -0
  421. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/UdpSocket.hpp +291 -0
  422. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network.hpp +53 -0
  423. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/OpenGL.hpp +78 -0
  424. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Clock.hpp +117 -0
  425. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Err.hpp +80 -0
  426. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Export.hpp +48 -0
  427. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/FileInputStream.hpp +169 -0
  428. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/InputStream.hpp +152 -0
  429. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Lock.hpp +139 -0
  430. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/MemoryInputStream.hpp +148 -0
  431. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Mutex.hpp +148 -0
  432. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/NativeActivity.hpp +62 -0
  433. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/NonCopyable.hpp +129 -0
  434. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Sleep.hpp +52 -0
  435. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/String.hpp +669 -0
  436. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/String.inl +53 -0
  437. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Thread.hpp +282 -0
  438. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Thread.inl +90 -0
  439. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocal.hpp +103 -0
  440. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocalPtr.hpp +158 -0
  441. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocalPtr.inl +77 -0
  442. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Time.hpp +488 -0
  443. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Utf.hpp +763 -0
  444. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Utf.inl +752 -0
  445. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector2.hpp +301 -0
  446. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector2.inl +161 -0
  447. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector3.hpp +302 -0
  448. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector3.inl +168 -0
  449. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System.hpp +60 -0
  450. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Clipboard.hpp +119 -0
  451. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Context.hpp +195 -0
  452. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/ContextSettings.hpp +149 -0
  453. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Cursor.hpp +222 -0
  454. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Event.hpp +284 -0
  455. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Export.hpp +48 -0
  456. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/GlResource.hpp +109 -0
  457. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Joystick.hpp +227 -0
  458. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Keyboard.hpp +232 -0
  459. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Mouse.hpp +177 -0
  460. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Sensor.hpp +150 -0
  461. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Touch.hpp +137 -0
  462. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/VideoMode.hpp +228 -0
  463. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Window.hpp +622 -0
  464. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/WindowHandle.hpp +101 -0
  465. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/WindowStyle.hpp +53 -0
  466. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window.hpp +58 -0
  467. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfig.cmake +148 -0
  468. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfigDependencies.cmake +86 -0
  469. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfigVersion.cmake +46 -0
  470. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLSharedTargets-release.cmake +59 -0
  471. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLSharedTargets.cmake +158 -0
  472. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  473. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/SFML.framework/Versions/2.5.1/SFML +0 -0
  474. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/AlResource.hpp +70 -0
  475. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Export.hpp +48 -0
  476. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/InputSoundFile.hpp +263 -0
  477. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Listener.hpp +234 -0
  478. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Music.hpp +337 -0
  479. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/OutputSoundFile.hpp +133 -0
  480. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Sound.hpp +264 -0
  481. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundBuffer.hpp +352 -0
  482. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundBufferRecorder.hpp +144 -0
  483. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileFactory.hpp +197 -0
  484. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileFactory.inl +100 -0
  485. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileReader.hpp +165 -0
  486. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileWriter.hpp +125 -0
  487. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundRecorder.hpp +408 -0
  488. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundSource.hpp +332 -0
  489. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundStream.hpp +405 -0
  490. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio.hpp +56 -0
  491. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Config.hpp +236 -0
  492. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/GpuPreference.hpp +74 -0
  493. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/BlendMode.hpp +215 -0
  494. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/CircleShape.hpp +154 -0
  495. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Color.hpp +275 -0
  496. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/ConvexShape.hpp +153 -0
  497. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Drawable.hpp +126 -0
  498. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Export.hpp +48 -0
  499. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Font.hpp +439 -0
  500. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glsl.hpp +227 -0
  501. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glsl.inl +155 -0
  502. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glyph.hpp +79 -0
  503. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Image.hpp +324 -0
  504. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/PrimitiveType.hpp +58 -0
  505. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Rect.hpp +254 -0
  506. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Rect.inl +159 -0
  507. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RectangleShape.hpp +132 -0
  508. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderStates.hpp +174 -0
  509. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderTarget.hpp +510 -0
  510. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderTexture.hpp +314 -0
  511. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderWindow.hpp +284 -0
  512. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Shader.hpp +875 -0
  513. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Shape.hpp +355 -0
  514. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Sprite.hpp +279 -0
  515. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Text.hpp +513 -0
  516. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Texture.hpp +733 -0
  517. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Transform.hpp +479 -0
  518. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Transformable.hpp +429 -0
  519. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Vertex.hpp +148 -0
  520. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/VertexArray.hpp +223 -0
  521. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/VertexBuffer.hpp +408 -0
  522. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/View.hpp +343 -0
  523. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics.hpp +68 -0
  524. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Main.hpp +43 -0
  525. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Export.hpp +48 -0
  526. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Ftp.hpp +616 -0
  527. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Http.hpp +482 -0
  528. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/IpAddress.hpp +328 -0
  529. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Packet.hpp +532 -0
  530. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Socket.hpp +219 -0
  531. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/SocketHandle.hpp +57 -0
  532. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/SocketSelector.hpp +263 -0
  533. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/TcpListener.hpp +166 -0
  534. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/TcpSocket.hpp +316 -0
  535. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/UdpSocket.hpp +291 -0
  536. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network.hpp +53 -0
  537. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/OpenGL.hpp +78 -0
  538. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Clock.hpp +117 -0
  539. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Err.hpp +80 -0
  540. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Export.hpp +48 -0
  541. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/FileInputStream.hpp +169 -0
  542. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/InputStream.hpp +152 -0
  543. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Lock.hpp +139 -0
  544. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/MemoryInputStream.hpp +148 -0
  545. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Mutex.hpp +148 -0
  546. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/NativeActivity.hpp +62 -0
  547. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/NonCopyable.hpp +129 -0
  548. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Sleep.hpp +52 -0
  549. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/String.hpp +669 -0
  550. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/String.inl +53 -0
  551. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Thread.hpp +282 -0
  552. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Thread.inl +90 -0
  553. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocal.hpp +103 -0
  554. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocalPtr.hpp +158 -0
  555. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocalPtr.inl +77 -0
  556. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Time.hpp +488 -0
  557. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Utf.hpp +763 -0
  558. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Utf.inl +752 -0
  559. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector2.hpp +301 -0
  560. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector2.inl +161 -0
  561. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector3.hpp +302 -0
  562. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector3.inl +168 -0
  563. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System.hpp +60 -0
  564. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Clipboard.hpp +119 -0
  565. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Context.hpp +195 -0
  566. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/ContextSettings.hpp +149 -0
  567. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Cursor.hpp +222 -0
  568. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Event.hpp +284 -0
  569. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Export.hpp +48 -0
  570. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/GlResource.hpp +109 -0
  571. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Joystick.hpp +227 -0
  572. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Keyboard.hpp +232 -0
  573. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Mouse.hpp +177 -0
  574. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Sensor.hpp +150 -0
  575. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Touch.hpp +137 -0
  576. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/VideoMode.hpp +228 -0
  577. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Window.hpp +622 -0
  578. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/WindowHandle.hpp +101 -0
  579. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/WindowStyle.hpp +53 -0
  580. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window.hpp +58 -0
  581. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfig.cmake +148 -0
  582. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfigDependencies.cmake +86 -0
  583. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfigVersion.cmake +46 -0
  584. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLSharedTargets-release.cmake +59 -0
  585. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLSharedTargets.cmake +158 -0
  586. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/Info.plist +26 -0
  587. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/SFML +0 -0
  588. package/third_party/{SFML-2.5.1/macOS/Frameworks/freetype.framework/Versions/A → sfml/platform/macOS/Frameworks/freetype.framework}/Resources/Info.plist +0 -0
  589. package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/A/Resources/Info.plist +22 -0
  590. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/freetype.framework/Versions/A/freetype +0 -0
  591. package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/Current/Resources/Info.plist +22 -0
  592. package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/Current/freetype +0 -0
  593. package/third_party/{SFML-2.5.1/macOS/Frameworks/ogg.framework/Versions/A → sfml/platform/macOS/Frameworks/ogg.framework}/Resources/Info.plist +0 -0
  594. package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/A/Resources/Info.plist +22 -0
  595. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/ogg.framework/Versions/A/ogg +0 -0
  596. package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/Current/Resources/Info.plist +22 -0
  597. package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/Current/ogg +0 -0
  598. package/third_party/{SFML-2.5.1/macOS/Frameworks/sfml-audio.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/sfml-audio.framework}/Resources/Info.plist +0 -0
  599. package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  600. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/sfml-audio.framework/Versions/2.5.1/sfml-audio +0 -0
  601. package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/Current/Resources/Info.plist +26 -0
  602. package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/Current/sfml-audio +0 -0
  603. package/third_party/{SFML-2.5.1/macOS/Frameworks/sfml-graphics.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/sfml-graphics.framework}/Resources/Info.plist +0 -0
  604. package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  605. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/sfml-graphics.framework/Versions/2.5.1/sfml-graphics +0 -0
  606. package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/Current/Resources/Info.plist +26 -0
  607. package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/Current/sfml-graphics +0 -0
  608. package/third_party/{SFML-2.5.1/macOS/Frameworks/sfml-network.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/sfml-network.framework}/Resources/Info.plist +0 -0
  609. package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  610. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/sfml-network.framework/Versions/2.5.1/sfml-network +0 -0
  611. package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/Current/Resources/Info.plist +26 -0
  612. package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/Current/sfml-network +0 -0
  613. package/third_party/{SFML-2.5.1/macOS/Frameworks/sfml-system.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/sfml-system.framework}/Resources/Info.plist +0 -0
  614. package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  615. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system +0 -0
  616. package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/Current/Resources/Info.plist +26 -0
  617. package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/Current/sfml-system +0 -0
  618. package/third_party/{SFML-2.5.1/macOS/Frameworks/sfml-window.framework/Versions/2.5.1 → sfml/platform/macOS/Frameworks/sfml-window.framework}/Resources/Info.plist +0 -0
  619. package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/2.5.1/Resources/Info.plist +26 -0
  620. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/sfml-window.framework/Versions/2.5.1/sfml-window +0 -0
  621. package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/Current/Resources/Info.plist +26 -0
  622. package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/Current/sfml-window +0 -0
  623. package/third_party/{SFML-2.5.1/macOS/Frameworks/vorbis.framework/Versions/A → sfml/platform/macOS/Frameworks/vorbis.framework}/Resources/Info.plist +0 -0
  624. package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/A/Resources/Info.plist +22 -0
  625. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/vorbis.framework/Versions/A/vorbis +0 -0
  626. package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/Current/Resources/Info.plist +22 -0
  627. package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/Current/vorbis +0 -0
  628. package/third_party/{SFML-2.5.1/macOS/Frameworks/vorbisenc.framework/Versions/A → sfml/platform/macOS/Frameworks/vorbisenc.framework}/Resources/Info.plist +0 -0
  629. package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/A/Resources/Info.plist +22 -0
  630. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/vorbisenc.framework/Versions/A/vorbisenc +0 -0
  631. package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/Current/Resources/Info.plist +22 -0
  632. package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/Current/vorbisenc +0 -0
  633. package/third_party/{SFML-2.5.1/macOS/Frameworks/vorbisfile.framework/Versions/A → sfml/platform/macOS/Frameworks/vorbisfile.framework}/Resources/Info.plist +0 -0
  634. package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/A/Resources/Info.plist +22 -0
  635. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/Frameworks/vorbisfile.framework/Versions/A/vorbisfile +0 -0
  636. package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/Current/Resources/Info.plist +22 -0
  637. package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/Current/vorbisfile +0 -0
  638. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/lib/libsfml-audio.2.5.1.dylib +0 -0
  639. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/lib/libsfml-graphics.2.5.1.dylib +0 -0
  640. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/lib/libsfml-network.2.5.1.dylib +0 -0
  641. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/lib/libsfml-system.2.5.1.dylib +0 -0
  642. package/third_party/{SFML-2.5.1 → sfml/platform}/macOS/lib/libsfml-window.2.5.1.dylib +0 -0
  643. package/third_party/sfml/platform/win64/bin/openal32.dll +0 -0
  644. package/third_party/sfml/platform/win64/bin/sfml-audio-2.dll +0 -0
  645. package/third_party/sfml/platform/win64/bin/sfml-graphics-2.dll +0 -0
  646. package/third_party/sfml/platform/win64/bin/sfml-network-2.dll +0 -0
  647. package/third_party/sfml/platform/win64/bin/sfml-system-2.dll +0 -0
  648. package/third_party/sfml/platform/win64/bin/sfml-window-2.dll +0 -0
  649. package/third_party/sfml/platform/win64/lib/flac.lib +0 -0
  650. package/third_party/sfml/platform/win64/lib/freetype.lib +0 -0
  651. package/third_party/sfml/platform/win64/lib/ogg.lib +0 -0
  652. package/third_party/sfml/platform/win64/lib/openal32.lib +0 -0
  653. package/third_party/sfml/platform/win64/lib/sfml-audio.lib +0 -0
  654. package/third_party/sfml/platform/win64/lib/sfml-graphics.lib +0 -0
  655. package/third_party/sfml/platform/win64/lib/sfml-main.lib +0 -0
  656. package/third_party/sfml/platform/win64/lib/sfml-network.lib +0 -0
  657. package/third_party/sfml/platform/win64/lib/sfml-system.lib +0 -0
  658. package/third_party/sfml/platform/win64/lib/sfml-window.lib +0 -0
  659. package/third_party/sfml/platform/win64/lib/vorbis.lib +0 -0
  660. package/third_party/sfml/platform/win64/lib/vorbisenc.lib +0 -0
  661. package/third_party/sfml/platform/win64/lib/vorbisfile.lib +0 -0
  662. package/tools/clang_format.js +9 -0
  663. package/tools/keycode.js +31 -20
  664. package/tools/mouse_button.js +53 -36
  665. package/tools/symlinks.js +122 -0
  666. package/tsconfig.json +8 -0
  667. package/lib/drawable/base.d.ts +0 -3
  668. package/src/drawable/shape-inl.h +0 -231
@@ -0,0 +1,875 @@
1
+ ////////////////////////////////////////////////////////////
2
+ //
3
+ // SFML - Simple and Fast Multimedia Library
4
+ // Copyright (C) 2007-2018 Laurent Gomila (laurent@sfml-dev.org)
5
+ //
6
+ // This software is provided 'as-is', without any express or implied warranty.
7
+ // In no event will the authors be held liable for any damages arising from the use of this software.
8
+ //
9
+ // Permission is granted to anyone to use this software for any purpose,
10
+ // including commercial applications, and to alter it and redistribute it freely,
11
+ // subject to the following restrictions:
12
+ //
13
+ // 1. The origin of this software must not be misrepresented;
14
+ // you must not claim that you wrote the original software.
15
+ // If you use this software in a product, an acknowledgment
16
+ // in the product documentation would be appreciated but is not required.
17
+ //
18
+ // 2. Altered source versions must be plainly marked as such,
19
+ // and must not be misrepresented as being the original software.
20
+ //
21
+ // 3. This notice may not be removed or altered from any source distribution.
22
+ //
23
+ ////////////////////////////////////////////////////////////
24
+
25
+ #ifndef SFML_SHADER_HPP
26
+ #define SFML_SHADER_HPP
27
+
28
+ ////////////////////////////////////////////////////////////
29
+ // Headers
30
+ ////////////////////////////////////////////////////////////
31
+ #include <SFML/Graphics/Export.hpp>
32
+ #include <SFML/Graphics/Glsl.hpp>
33
+ #include <SFML/Window/GlResource.hpp>
34
+ #include <SFML/System/NonCopyable.hpp>
35
+ #include <SFML/System/Vector2.hpp>
36
+ #include <SFML/System/Vector3.hpp>
37
+ #include <map>
38
+ #include <string>
39
+
40
+
41
+ namespace sf
42
+ {
43
+ class Color;
44
+ class InputStream;
45
+ class Texture;
46
+ class Transform;
47
+
48
+ ////////////////////////////////////////////////////////////
49
+ /// \brief Shader class (vertex, geometry and fragment)
50
+ ///
51
+ ////////////////////////////////////////////////////////////
52
+ class SFML_GRAPHICS_API Shader : GlResource, NonCopyable
53
+ {
54
+ public:
55
+
56
+ ////////////////////////////////////////////////////////////
57
+ /// \brief Types of shaders
58
+ ///
59
+ ////////////////////////////////////////////////////////////
60
+ enum Type
61
+ {
62
+ Vertex, ///< %Vertex shader
63
+ Geometry, ///< Geometry shader
64
+ Fragment ///< Fragment (pixel) shader
65
+ };
66
+
67
+ ////////////////////////////////////////////////////////////
68
+ /// \brief Special type that can be passed to setUniform(),
69
+ /// and that represents the texture of the object being drawn
70
+ ///
71
+ /// \see setUniform(const std::string&, CurrentTextureType)
72
+ ///
73
+ ////////////////////////////////////////////////////////////
74
+ struct CurrentTextureType {};
75
+
76
+ ////////////////////////////////////////////////////////////
77
+ /// \brief Represents the texture of the object being drawn
78
+ ///
79
+ /// \see setUniform(const std::string&, CurrentTextureType)
80
+ ///
81
+ ////////////////////////////////////////////////////////////
82
+ static CurrentTextureType CurrentTexture;
83
+
84
+ public:
85
+
86
+ ////////////////////////////////////////////////////////////
87
+ /// \brief Default constructor
88
+ ///
89
+ /// This constructor creates an invalid shader.
90
+ ///
91
+ ////////////////////////////////////////////////////////////
92
+ Shader();
93
+
94
+ ////////////////////////////////////////////////////////////
95
+ /// \brief Destructor
96
+ ///
97
+ ////////////////////////////////////////////////////////////
98
+ ~Shader();
99
+
100
+ ////////////////////////////////////////////////////////////
101
+ /// \brief Load the vertex, geometry or fragment shader from a file
102
+ ///
103
+ /// This function loads a single shader, vertex, geometry or
104
+ /// fragment, identified by the second argument.
105
+ /// The source must be a text file containing a valid
106
+ /// shader in GLSL language. GLSL is a C-like language
107
+ /// dedicated to OpenGL shaders; you'll probably need to
108
+ /// read a good documentation for it before writing your
109
+ /// own shaders.
110
+ ///
111
+ /// \param filename Path of the vertex, geometry or fragment shader file to load
112
+ /// \param type Type of shader (vertex, geometry or fragment)
113
+ ///
114
+ /// \return True if loading succeeded, false if it failed
115
+ ///
116
+ /// \see loadFromMemory, loadFromStream
117
+ ///
118
+ ////////////////////////////////////////////////////////////
119
+ bool loadFromFile(const std::string& filename, Type type);
120
+
121
+ ////////////////////////////////////////////////////////////
122
+ /// \brief Load both the vertex and fragment shaders from files
123
+ ///
124
+ /// This function loads both the vertex and the fragment
125
+ /// shaders. If one of them fails to load, the shader is left
126
+ /// empty (the valid shader is unloaded).
127
+ /// The sources must be text files containing valid shaders
128
+ /// in GLSL language. GLSL is a C-like language dedicated to
129
+ /// OpenGL shaders; you'll probably need to read a good documentation
130
+ /// for it before writing your own shaders.
131
+ ///
132
+ /// \param vertexShaderFilename Path of the vertex shader file to load
133
+ /// \param fragmentShaderFilename Path of the fragment shader file to load
134
+ ///
135
+ /// \return True if loading succeeded, false if it failed
136
+ ///
137
+ /// \see loadFromMemory, loadFromStream
138
+ ///
139
+ ////////////////////////////////////////////////////////////
140
+ bool loadFromFile(const std::string& vertexShaderFilename, const std::string& fragmentShaderFilename);
141
+
142
+ ////////////////////////////////////////////////////////////
143
+ /// \brief Load the vertex, geometry and fragment shaders from files
144
+ ///
145
+ /// This function loads the vertex, geometry and fragment
146
+ /// shaders. If one of them fails to load, the shader is left
147
+ /// empty (the valid shader is unloaded).
148
+ /// The sources must be text files containing valid shaders
149
+ /// in GLSL language. GLSL is a C-like language dedicated to
150
+ /// OpenGL shaders; you'll probably need to read a good documentation
151
+ /// for it before writing your own shaders.
152
+ ///
153
+ /// \param vertexShaderFilename Path of the vertex shader file to load
154
+ /// \param geometryShaderFilename Path of the geometry shader file to load
155
+ /// \param fragmentShaderFilename Path of the fragment shader file to load
156
+ ///
157
+ /// \return True if loading succeeded, false if it failed
158
+ ///
159
+ /// \see loadFromMemory, loadFromStream
160
+ ///
161
+ ////////////////////////////////////////////////////////////
162
+ bool loadFromFile(const std::string& vertexShaderFilename, const std::string& geometryShaderFilename, const std::string& fragmentShaderFilename);
163
+
164
+ ////////////////////////////////////////////////////////////
165
+ /// \brief Load the vertex, geometry or fragment shader from a source code in memory
166
+ ///
167
+ /// This function loads a single shader, vertex, geometry
168
+ /// or fragment, identified by the second argument.
169
+ /// The source code must be a valid shader in GLSL language.
170
+ /// GLSL is a C-like language dedicated to OpenGL shaders;
171
+ /// you'll probably need to read a good documentation for
172
+ /// it before writing your own shaders.
173
+ ///
174
+ /// \param shader String containing the source code of the shader
175
+ /// \param type Type of shader (vertex, geometry or fragment)
176
+ ///
177
+ /// \return True if loading succeeded, false if it failed
178
+ ///
179
+ /// \see loadFromFile, loadFromStream
180
+ ///
181
+ ////////////////////////////////////////////////////////////
182
+ bool loadFromMemory(const std::string& shader, Type type);
183
+
184
+ ////////////////////////////////////////////////////////////
185
+ /// \brief Load both the vertex and fragment shaders from source codes in memory
186
+ ///
187
+ /// This function loads both the vertex and the fragment
188
+ /// shaders. If one of them fails to load, the shader is left
189
+ /// empty (the valid shader is unloaded).
190
+ /// The sources must be valid shaders in GLSL language. GLSL is
191
+ /// a C-like language dedicated to OpenGL shaders; you'll
192
+ /// probably need to read a good documentation for it before
193
+ /// writing your own shaders.
194
+ ///
195
+ /// \param vertexShader String containing the source code of the vertex shader
196
+ /// \param fragmentShader String containing the source code of the fragment shader
197
+ ///
198
+ /// \return True if loading succeeded, false if it failed
199
+ ///
200
+ /// \see loadFromFile, loadFromStream
201
+ ///
202
+ ////////////////////////////////////////////////////////////
203
+ bool loadFromMemory(const std::string& vertexShader, const std::string& fragmentShader);
204
+
205
+ ////////////////////////////////////////////////////////////
206
+ /// \brief Load the vertex, geometry and fragment shaders from source codes in memory
207
+ ///
208
+ /// This function loads the vertex, geometry and fragment
209
+ /// shaders. If one of them fails to load, the shader is left
210
+ /// empty (the valid shader is unloaded).
211
+ /// The sources must be valid shaders in GLSL language. GLSL is
212
+ /// a C-like language dedicated to OpenGL shaders; you'll
213
+ /// probably need to read a good documentation for it before
214
+ /// writing your own shaders.
215
+ ///
216
+ /// \param vertexShader String containing the source code of the vertex shader
217
+ /// \param geometryShader String containing the source code of the geometry shader
218
+ /// \param fragmentShader String containing the source code of the fragment shader
219
+ ///
220
+ /// \return True if loading succeeded, false if it failed
221
+ ///
222
+ /// \see loadFromFile, loadFromStream
223
+ ///
224
+ ////////////////////////////////////////////////////////////
225
+ bool loadFromMemory(const std::string& vertexShader, const std::string& geometryShader, const std::string& fragmentShader);
226
+
227
+ ////////////////////////////////////////////////////////////
228
+ /// \brief Load the vertex, geometry or fragment shader from a custom stream
229
+ ///
230
+ /// This function loads a single shader, vertex, geometry
231
+ /// or fragment, identified by the second argument.
232
+ /// The source code must be a valid shader in GLSL language.
233
+ /// GLSL is a C-like language dedicated to OpenGL shaders;
234
+ /// you'll probably need to read a good documentation for it
235
+ /// before writing your own shaders.
236
+ ///
237
+ /// \param stream Source stream to read from
238
+ /// \param type Type of shader (vertex, geometry or fragment)
239
+ ///
240
+ /// \return True if loading succeeded, false if it failed
241
+ ///
242
+ /// \see loadFromFile, loadFromMemory
243
+ ///
244
+ ////////////////////////////////////////////////////////////
245
+ bool loadFromStream(InputStream& stream, Type type);
246
+
247
+ ////////////////////////////////////////////////////////////
248
+ /// \brief Load both the vertex and fragment shaders from custom streams
249
+ ///
250
+ /// This function loads both the vertex and the fragment
251
+ /// shaders. If one of them fails to load, the shader is left
252
+ /// empty (the valid shader is unloaded).
253
+ /// The source codes must be valid shaders in GLSL language.
254
+ /// GLSL is a C-like language dedicated to OpenGL shaders;
255
+ /// you'll probably need to read a good documentation for
256
+ /// it before writing your own shaders.
257
+ ///
258
+ /// \param vertexShaderStream Source stream to read the vertex shader from
259
+ /// \param fragmentShaderStream Source stream to read the fragment shader from
260
+ ///
261
+ /// \return True if loading succeeded, false if it failed
262
+ ///
263
+ /// \see loadFromFile, loadFromMemory
264
+ ///
265
+ ////////////////////////////////////////////////////////////
266
+ bool loadFromStream(InputStream& vertexShaderStream, InputStream& fragmentShaderStream);
267
+
268
+ ////////////////////////////////////////////////////////////
269
+ /// \brief Load the vertex, geometry and fragment shaders from custom streams
270
+ ///
271
+ /// This function loads the vertex, geometry and fragment
272
+ /// shaders. If one of them fails to load, the shader is left
273
+ /// empty (the valid shader is unloaded).
274
+ /// The source codes must be valid shaders in GLSL language.
275
+ /// GLSL is a C-like language dedicated to OpenGL shaders;
276
+ /// you'll probably need to read a good documentation for
277
+ /// it before writing your own shaders.
278
+ ///
279
+ /// \param vertexShaderStream Source stream to read the vertex shader from
280
+ /// \param geometryShaderStream Source stream to read the geometry shader from
281
+ /// \param fragmentShaderStream Source stream to read the fragment shader from
282
+ ///
283
+ /// \return True if loading succeeded, false if it failed
284
+ ///
285
+ /// \see loadFromFile, loadFromMemory
286
+ ///
287
+ ////////////////////////////////////////////////////////////
288
+ bool loadFromStream(InputStream& vertexShaderStream, InputStream& geometryShaderStream, InputStream& fragmentShaderStream);
289
+
290
+ ////////////////////////////////////////////////////////////
291
+ /// \brief Specify value for \p float uniform
292
+ ///
293
+ /// \param name Name of the uniform variable in GLSL
294
+ /// \param x Value of the float scalar
295
+ ///
296
+ ////////////////////////////////////////////////////////////
297
+ void setUniform(const std::string& name, float x);
298
+
299
+ ////////////////////////////////////////////////////////////
300
+ /// \brief Specify value for \p vec2 uniform
301
+ ///
302
+ /// \param name Name of the uniform variable in GLSL
303
+ /// \param vector Value of the vec2 vector
304
+ ///
305
+ ////////////////////////////////////////////////////////////
306
+ void setUniform(const std::string& name, const Glsl::Vec2& vector);
307
+
308
+ ////////////////////////////////////////////////////////////
309
+ /// \brief Specify value for \p vec3 uniform
310
+ ///
311
+ /// \param name Name of the uniform variable in GLSL
312
+ /// \param vector Value of the vec3 vector
313
+ ///
314
+ ////////////////////////////////////////////////////////////
315
+ void setUniform(const std::string& name, const Glsl::Vec3& vector);
316
+
317
+ ////////////////////////////////////////////////////////////
318
+ /// \brief Specify value for \p vec4 uniform
319
+ ///
320
+ /// This overload can also be called with sf::Color objects
321
+ /// that are converted to sf::Glsl::Vec4.
322
+ ///
323
+ /// It is important to note that the components of the color are
324
+ /// normalized before being passed to the shader. Therefore,
325
+ /// they are converted from range [0 .. 255] to range [0 .. 1].
326
+ /// For example, a sf::Color(255, 127, 0, 255) will be transformed
327
+ /// to a vec4(1.0, 0.5, 0.0, 1.0) in the shader.
328
+ ///
329
+ /// \param name Name of the uniform variable in GLSL
330
+ /// \param vector Value of the vec4 vector
331
+ ///
332
+ ////////////////////////////////////////////////////////////
333
+ void setUniform(const std::string& name, const Glsl::Vec4& vector);
334
+
335
+ ////////////////////////////////////////////////////////////
336
+ /// \brief Specify value for \p int uniform
337
+ ///
338
+ /// \param name Name of the uniform variable in GLSL
339
+ /// \param x Value of the int scalar
340
+ ///
341
+ ////////////////////////////////////////////////////////////
342
+ void setUniform(const std::string& name, int x);
343
+
344
+ ////////////////////////////////////////////////////////////
345
+ /// \brief Specify value for \p ivec2 uniform
346
+ ///
347
+ /// \param name Name of the uniform variable in GLSL
348
+ /// \param vector Value of the ivec2 vector
349
+ ///
350
+ ////////////////////////////////////////////////////////////
351
+ void setUniform(const std::string& name, const Glsl::Ivec2& vector);
352
+
353
+ ////////////////////////////////////////////////////////////
354
+ /// \brief Specify value for \p ivec3 uniform
355
+ ///
356
+ /// \param name Name of the uniform variable in GLSL
357
+ /// \param vector Value of the ivec3 vector
358
+ ///
359
+ ////////////////////////////////////////////////////////////
360
+ void setUniform(const std::string& name, const Glsl::Ivec3& vector);
361
+
362
+ ////////////////////////////////////////////////////////////
363
+ /// \brief Specify value for \p ivec4 uniform
364
+ ///
365
+ /// This overload can also be called with sf::Color objects
366
+ /// that are converted to sf::Glsl::Ivec4.
367
+ ///
368
+ /// If color conversions are used, the ivec4 uniform in GLSL
369
+ /// will hold the same values as the original sf::Color
370
+ /// instance. For example, sf::Color(255, 127, 0, 255) is
371
+ /// mapped to ivec4(255, 127, 0, 255).
372
+ ///
373
+ /// \param name Name of the uniform variable in GLSL
374
+ /// \param vector Value of the ivec4 vector
375
+ ///
376
+ ////////////////////////////////////////////////////////////
377
+ void setUniform(const std::string& name, const Glsl::Ivec4& vector);
378
+
379
+ ////////////////////////////////////////////////////////////
380
+ /// \brief Specify value for \p bool uniform
381
+ ///
382
+ /// \param name Name of the uniform variable in GLSL
383
+ /// \param x Value of the bool scalar
384
+ ///
385
+ ////////////////////////////////////////////////////////////
386
+ void setUniform(const std::string& name, bool x);
387
+
388
+ ////////////////////////////////////////////////////////////
389
+ /// \brief Specify value for \p bvec2 uniform
390
+ ///
391
+ /// \param name Name of the uniform variable in GLSL
392
+ /// \param vector Value of the bvec2 vector
393
+ ///
394
+ ////////////////////////////////////////////////////////////
395
+ void setUniform(const std::string& name, const Glsl::Bvec2& vector);
396
+
397
+ ////////////////////////////////////////////////////////////
398
+ /// \brief Specify value for \p bvec3 uniform
399
+ ///
400
+ /// \param name Name of the uniform variable in GLSL
401
+ /// \param vector Value of the bvec3 vector
402
+ ///
403
+ ////////////////////////////////////////////////////////////
404
+ void setUniform(const std::string& name, const Glsl::Bvec3& vector);
405
+
406
+ ////////////////////////////////////////////////////////////
407
+ /// \brief Specify value for \p bvec4 uniform
408
+ ///
409
+ /// \param name Name of the uniform variable in GLSL
410
+ /// \param vector Value of the bvec4 vector
411
+ ///
412
+ ////////////////////////////////////////////////////////////
413
+ void setUniform(const std::string& name, const Glsl::Bvec4& vector);
414
+
415
+ ////////////////////////////////////////////////////////////
416
+ /// \brief Specify value for \p mat3 matrix
417
+ ///
418
+ /// \param name Name of the uniform variable in GLSL
419
+ /// \param matrix Value of the mat3 matrix
420
+ ///
421
+ ////////////////////////////////////////////////////////////
422
+ void setUniform(const std::string& name, const Glsl::Mat3& matrix);
423
+
424
+ ////////////////////////////////////////////////////////////
425
+ /// \brief Specify value for \p mat4 matrix
426
+ ///
427
+ /// \param name Name of the uniform variable in GLSL
428
+ /// \param matrix Value of the mat4 matrix
429
+ ///
430
+ ////////////////////////////////////////////////////////////
431
+ void setUniform(const std::string& name, const Glsl::Mat4& matrix);
432
+
433
+ ////////////////////////////////////////////////////////////
434
+ /// \brief Specify a texture as \p sampler2D uniform
435
+ ///
436
+ /// \a name is the name of the variable to change in the shader.
437
+ /// The corresponding parameter in the shader must be a 2D texture
438
+ /// (\p sampler2D GLSL type).
439
+ ///
440
+ /// Example:
441
+ /// \code
442
+ /// uniform sampler2D the_texture; // this is the variable in the shader
443
+ /// \endcode
444
+ /// \code
445
+ /// sf::Texture texture;
446
+ /// ...
447
+ /// shader.setUniform("the_texture", texture);
448
+ /// \endcode
449
+ /// It is important to note that \a texture must remain alive as long
450
+ /// as the shader uses it, no copy is made internally.
451
+ ///
452
+ /// To use the texture of the object being drawn, which cannot be
453
+ /// known in advance, you can pass the special value
454
+ /// sf::Shader::CurrentTexture:
455
+ /// \code
456
+ /// shader.setUniform("the_texture", sf::Shader::CurrentTexture).
457
+ /// \endcode
458
+ ///
459
+ /// \param name Name of the texture in the shader
460
+ /// \param texture Texture to assign
461
+ ///
462
+ ////////////////////////////////////////////////////////////
463
+ void setUniform(const std::string& name, const Texture& texture);
464
+
465
+ ////////////////////////////////////////////////////////////
466
+ /// \brief Specify current texture as \p sampler2D uniform
467
+ ///
468
+ /// This overload maps a shader texture variable to the
469
+ /// texture of the object being drawn, which cannot be
470
+ /// known in advance. The second argument must be
471
+ /// sf::Shader::CurrentTexture.
472
+ /// The corresponding parameter in the shader must be a 2D texture
473
+ /// (\p sampler2D GLSL type).
474
+ ///
475
+ /// Example:
476
+ /// \code
477
+ /// uniform sampler2D current; // this is the variable in the shader
478
+ /// \endcode
479
+ /// \code
480
+ /// shader.setUniform("current", sf::Shader::CurrentTexture);
481
+ /// \endcode
482
+ ///
483
+ /// \param name Name of the texture in the shader
484
+ ///
485
+ ////////////////////////////////////////////////////////////
486
+ void setUniform(const std::string& name, CurrentTextureType);
487
+
488
+ ////////////////////////////////////////////////////////////
489
+ /// \brief Specify values for \p float[] array uniform
490
+ ///
491
+ /// \param name Name of the uniform variable in GLSL
492
+ /// \param scalarArray pointer to array of \p float values
493
+ /// \param length Number of elements in the array
494
+ ///
495
+ ////////////////////////////////////////////////////////////
496
+ void setUniformArray(const std::string& name, const float* scalarArray, std::size_t length);
497
+
498
+ ////////////////////////////////////////////////////////////
499
+ /// \brief Specify values for \p vec2[] array uniform
500
+ ///
501
+ /// \param name Name of the uniform variable in GLSL
502
+ /// \param vectorArray pointer to array of \p vec2 values
503
+ /// \param length Number of elements in the array
504
+ ///
505
+ ////////////////////////////////////////////////////////////
506
+ void setUniformArray(const std::string& name, const Glsl::Vec2* vectorArray, std::size_t length);
507
+
508
+ ////////////////////////////////////////////////////////////
509
+ /// \brief Specify values for \p vec3[] array uniform
510
+ ///
511
+ /// \param name Name of the uniform variable in GLSL
512
+ /// \param vectorArray pointer to array of \p vec3 values
513
+ /// \param length Number of elements in the array
514
+ ///
515
+ ////////////////////////////////////////////////////////////
516
+ void setUniformArray(const std::string& name, const Glsl::Vec3* vectorArray, std::size_t length);
517
+
518
+ ////////////////////////////////////////////////////////////
519
+ /// \brief Specify values for \p vec4[] array uniform
520
+ ///
521
+ /// \param name Name of the uniform variable in GLSL
522
+ /// \param vectorArray pointer to array of \p vec4 values
523
+ /// \param length Number of elements in the array
524
+ ///
525
+ ////////////////////////////////////////////////////////////
526
+ void setUniformArray(const std::string& name, const Glsl::Vec4* vectorArray, std::size_t length);
527
+
528
+ ////////////////////////////////////////////////////////////
529
+ /// \brief Specify values for \p mat3[] array uniform
530
+ ///
531
+ /// \param name Name of the uniform variable in GLSL
532
+ /// \param matrixArray pointer to array of \p mat3 values
533
+ /// \param length Number of elements in the array
534
+ ///
535
+ ////////////////////////////////////////////////////////////
536
+ void setUniformArray(const std::string& name, const Glsl::Mat3* matrixArray, std::size_t length);
537
+
538
+ ////////////////////////////////////////////////////////////
539
+ /// \brief Specify values for \p mat4[] array uniform
540
+ ///
541
+ /// \param name Name of the uniform variable in GLSL
542
+ /// \param matrixArray pointer to array of \p mat4 values
543
+ /// \param length Number of elements in the array
544
+ ///
545
+ ////////////////////////////////////////////////////////////
546
+ void setUniformArray(const std::string& name, const Glsl::Mat4* matrixArray, std::size_t length);
547
+
548
+ ////////////////////////////////////////////////////////////
549
+ /// \brief Change a float parameter of the shader
550
+ ///
551
+ /// \deprecated Use setUniform(const std::string&, float) instead.
552
+ ///
553
+ ////////////////////////////////////////////////////////////
554
+ SFML_DEPRECATED void setParameter(const std::string& name, float x);
555
+
556
+ ////////////////////////////////////////////////////////////
557
+ /// \brief Change a 2-components vector parameter of the shader
558
+ ///
559
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec2&) instead.
560
+ ///
561
+ ////////////////////////////////////////////////////////////
562
+ SFML_DEPRECATED void setParameter(const std::string& name, float x, float y);
563
+
564
+ ////////////////////////////////////////////////////////////
565
+ /// \brief Change a 3-components vector parameter of the shader
566
+ ///
567
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec3&) instead.
568
+ ///
569
+ ////////////////////////////////////////////////////////////
570
+ SFML_DEPRECATED void setParameter(const std::string& name, float x, float y, float z);
571
+
572
+ ////////////////////////////////////////////////////////////
573
+ /// \brief Change a 4-components vector parameter of the shader
574
+ ///
575
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec4&) instead.
576
+ ///
577
+ ////////////////////////////////////////////////////////////
578
+ SFML_DEPRECATED void setParameter(const std::string& name, float x, float y, float z, float w);
579
+
580
+ ////////////////////////////////////////////////////////////
581
+ /// \brief Change a 2-components vector parameter of the shader
582
+ ///
583
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec2&) instead.
584
+ ///
585
+ ////////////////////////////////////////////////////////////
586
+ SFML_DEPRECATED void setParameter(const std::string& name, const Vector2f& vector);
587
+
588
+ ////////////////////////////////////////////////////////////
589
+ /// \brief Change a 3-components vector parameter of the shader
590
+ ///
591
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec3&) instead.
592
+ ///
593
+ ////////////////////////////////////////////////////////////
594
+ SFML_DEPRECATED void setParameter(const std::string& name, const Vector3f& vector);
595
+
596
+ ////////////////////////////////////////////////////////////
597
+ /// \brief Change a color parameter of the shader
598
+ ///
599
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Vec4&) instead.
600
+ ///
601
+ ////////////////////////////////////////////////////////////
602
+ SFML_DEPRECATED void setParameter(const std::string& name, const Color& color);
603
+
604
+ ////////////////////////////////////////////////////////////
605
+ /// \brief Change a matrix parameter of the shader
606
+ ///
607
+ /// \deprecated Use setUniform(const std::string&, const Glsl::Mat4&) instead.
608
+ ///
609
+ ////////////////////////////////////////////////////////////
610
+ SFML_DEPRECATED void setParameter(const std::string& name, const Transform& transform);
611
+
612
+ ////////////////////////////////////////////////////////////
613
+ /// \brief Change a texture parameter of the shader
614
+ ///
615
+ /// \deprecated Use setUniform(const std::string&, const Texture&) instead.
616
+ ///
617
+ ////////////////////////////////////////////////////////////
618
+ SFML_DEPRECATED void setParameter(const std::string& name, const Texture& texture);
619
+
620
+ ////////////////////////////////////////////////////////////
621
+ /// \brief Change a texture parameter of the shader
622
+ ///
623
+ /// \deprecated Use setUniform(const std::string&, CurrentTextureType) instead.
624
+ ///
625
+ ////////////////////////////////////////////////////////////
626
+ SFML_DEPRECATED void setParameter(const std::string& name, CurrentTextureType);
627
+
628
+ ////////////////////////////////////////////////////////////
629
+ /// \brief Get the underlying OpenGL handle of the shader.
630
+ ///
631
+ /// You shouldn't need to use this function, unless you have
632
+ /// very specific stuff to implement that SFML doesn't support,
633
+ /// or implement a temporary workaround until a bug is fixed.
634
+ ///
635
+ /// \return OpenGL handle of the shader or 0 if not yet loaded
636
+ ///
637
+ ////////////////////////////////////////////////////////////
638
+ unsigned int getNativeHandle() const;
639
+
640
+ ////////////////////////////////////////////////////////////
641
+ /// \brief Bind a shader for rendering
642
+ ///
643
+ /// This function is not part of the graphics API, it mustn't be
644
+ /// used when drawing SFML entities. It must be used only if you
645
+ /// mix sf::Shader with OpenGL code.
646
+ ///
647
+ /// \code
648
+ /// sf::Shader s1, s2;
649
+ /// ...
650
+ /// sf::Shader::bind(&s1);
651
+ /// // draw OpenGL stuff that use s1...
652
+ /// sf::Shader::bind(&s2);
653
+ /// // draw OpenGL stuff that use s2...
654
+ /// sf::Shader::bind(NULL);
655
+ /// // draw OpenGL stuff that use no shader...
656
+ /// \endcode
657
+ ///
658
+ /// \param shader Shader to bind, can be null to use no shader
659
+ ///
660
+ ////////////////////////////////////////////////////////////
661
+ static void bind(const Shader* shader);
662
+
663
+ ////////////////////////////////////////////////////////////
664
+ /// \brief Tell whether or not the system supports shaders
665
+ ///
666
+ /// This function should always be called before using
667
+ /// the shader features. If it returns false, then
668
+ /// any attempt to use sf::Shader will fail.
669
+ ///
670
+ /// \return True if shaders are supported, false otherwise
671
+ ///
672
+ ////////////////////////////////////////////////////////////
673
+ static bool isAvailable();
674
+
675
+ ////////////////////////////////////////////////////////////
676
+ /// \brief Tell whether or not the system supports geometry shaders
677
+ ///
678
+ /// This function should always be called before using
679
+ /// the geometry shader features. If it returns false, then
680
+ /// any attempt to use sf::Shader geometry shader features will fail.
681
+ ///
682
+ /// This function can only return true if isAvailable() would also
683
+ /// return true, since shaders in general have to be supported in
684
+ /// order for geometry shaders to be supported as well.
685
+ ///
686
+ /// Note: The first call to this function, whether by your
687
+ /// code or SFML will result in a context switch.
688
+ ///
689
+ /// \return True if geometry shaders are supported, false otherwise
690
+ ///
691
+ ////////////////////////////////////////////////////////////
692
+ static bool isGeometryAvailable();
693
+
694
+ private:
695
+
696
+ ////////////////////////////////////////////////////////////
697
+ /// \brief Compile the shader(s) and create the program
698
+ ///
699
+ /// If one of the arguments is NULL, the corresponding shader
700
+ /// is not created.
701
+ ///
702
+ /// \param vertexShaderCode Source code of the vertex shader
703
+ /// \param geometryShaderCode Source code of the geometry shader
704
+ /// \param fragmentShaderCode Source code of the fragment shader
705
+ ///
706
+ /// \return True on success, false if any error happened
707
+ ///
708
+ ////////////////////////////////////////////////////////////
709
+ bool compile(const char* vertexShaderCode, const char* geometryShaderCode, const char* fragmentShaderCode);
710
+
711
+ ////////////////////////////////////////////////////////////
712
+ /// \brief Bind all the textures used by the shader
713
+ ///
714
+ /// This function each texture to a different unit, and
715
+ /// updates the corresponding variables in the shader accordingly.
716
+ ///
717
+ ////////////////////////////////////////////////////////////
718
+ void bindTextures() const;
719
+
720
+ ////////////////////////////////////////////////////////////
721
+ /// \brief Get the location ID of a shader uniform
722
+ ///
723
+ /// \param name Name of the uniform variable to search
724
+ ///
725
+ /// \return Location ID of the uniform, or -1 if not found
726
+ ///
727
+ ////////////////////////////////////////////////////////////
728
+ int getUniformLocation(const std::string& name);
729
+
730
+ ////////////////////////////////////////////////////////////
731
+ /// \brief RAII object to save and restore the program
732
+ /// binding while uniforms are being set
733
+ ///
734
+ /// Implementation is private in the .cpp file.
735
+ ///
736
+ ////////////////////////////////////////////////////////////
737
+ struct UniformBinder;
738
+
739
+ ////////////////////////////////////////////////////////////
740
+ // Types
741
+ ////////////////////////////////////////////////////////////
742
+ typedef std::map<int, const Texture*> TextureTable;
743
+ typedef std::map<std::string, int> UniformTable;
744
+
745
+ ////////////////////////////////////////////////////////////
746
+ // Member data
747
+ ////////////////////////////////////////////////////////////
748
+ unsigned int m_shaderProgram; ///< OpenGL identifier for the program
749
+ int m_currentTexture; ///< Location of the current texture in the shader
750
+ TextureTable m_textures; ///< Texture variables in the shader, mapped to their location
751
+ UniformTable m_uniforms; ///< Parameters location cache
752
+ };
753
+
754
+ } // namespace sf
755
+
756
+
757
+ #endif // SFML_SHADER_HPP
758
+
759
+
760
+ ////////////////////////////////////////////////////////////
761
+ /// \class sf::Shader
762
+ /// \ingroup graphics
763
+ ///
764
+ /// Shaders are programs written using a specific language,
765
+ /// executed directly by the graphics card and allowing
766
+ /// to apply real-time operations to the rendered entities.
767
+ ///
768
+ /// There are three kinds of shaders:
769
+ /// \li %Vertex shaders, that process vertices
770
+ /// \li Geometry shaders, that process primitives
771
+ /// \li Fragment (pixel) shaders, that process pixels
772
+ ///
773
+ /// A sf::Shader can be composed of either a vertex shader
774
+ /// alone, a geometry shader alone, a fragment shader alone,
775
+ /// or any combination of them. (see the variants of the
776
+ /// load functions).
777
+ ///
778
+ /// Shaders are written in GLSL, which is a C-like
779
+ /// language dedicated to OpenGL shaders. You'll probably
780
+ /// need to learn its basics before writing your own shaders
781
+ /// for SFML.
782
+ ///
783
+ /// Like any C/C++ program, a GLSL shader has its own variables
784
+ /// called \a uniforms that you can set from your C++ application.
785
+ /// sf::Shader handles different types of uniforms:
786
+ /// \li scalars: \p float, \p int, \p bool
787
+ /// \li vectors (2, 3 or 4 components)
788
+ /// \li matrices (3x3 or 4x4)
789
+ /// \li samplers (textures)
790
+ ///
791
+ /// Some SFML-specific types can be converted:
792
+ /// \li sf::Color as a 4D vector (\p vec4)
793
+ /// \li sf::Transform as matrices (\p mat3 or \p mat4)
794
+ ///
795
+ /// Every uniform variable in a shader can be set through one of the
796
+ /// setUniform() or setUniformArray() overloads. For example, if you
797
+ /// have a shader with the following uniforms:
798
+ /// \code
799
+ /// uniform float offset;
800
+ /// uniform vec3 point;
801
+ /// uniform vec4 color;
802
+ /// uniform mat4 matrix;
803
+ /// uniform sampler2D overlay;
804
+ /// uniform sampler2D current;
805
+ /// \endcode
806
+ /// You can set their values from C++ code as follows, using the types
807
+ /// defined in the sf::Glsl namespace:
808
+ /// \code
809
+ /// shader.setUniform("offset", 2.f);
810
+ /// shader.setUniform("point", sf::Vector3f(0.5f, 0.8f, 0.3f));
811
+ /// shader.setUniform("color", sf::Glsl::Vec4(color)); // color is a sf::Color
812
+ /// shader.setUniform("matrix", sf::Glsl::Mat4(transform)); // transform is a sf::Transform
813
+ /// shader.setUniform("overlay", texture); // texture is a sf::Texture
814
+ /// shader.setUniform("current", sf::Shader::CurrentTexture);
815
+ /// \endcode
816
+ ///
817
+ /// The old setParameter() overloads are deprecated and will be removed in a
818
+ /// future version. You should use their setUniform() equivalents instead.
819
+ ///
820
+ /// The special Shader::CurrentTexture argument maps the
821
+ /// given \p sampler2D uniform to the current texture of the
822
+ /// object being drawn (which cannot be known in advance).
823
+ ///
824
+ /// To apply a shader to a drawable, you must pass it as an
825
+ /// additional parameter to the \ref RenderWindow::draw function:
826
+ /// \code
827
+ /// window.draw(sprite, &shader);
828
+ /// \endcode
829
+ ///
830
+ /// ... which is in fact just a shortcut for this:
831
+ /// \code
832
+ /// sf::RenderStates states;
833
+ /// states.shader = &shader;
834
+ /// window.draw(sprite, states);
835
+ /// \endcode
836
+ ///
837
+ /// In the code above we pass a pointer to the shader, because it may
838
+ /// be null (which means "no shader").
839
+ ///
840
+ /// Shaders can be used on any drawable, but some combinations are
841
+ /// not interesting. For example, using a vertex shader on a sf::Sprite
842
+ /// is limited because there are only 4 vertices, the sprite would
843
+ /// have to be subdivided in order to apply wave effects.
844
+ /// Another bad example is a fragment shader with sf::Text: the texture
845
+ /// of the text is not the actual text that you see on screen, it is
846
+ /// a big texture containing all the characters of the font in an
847
+ /// arbitrary order; thus, texture lookups on pixels other than the
848
+ /// current one may not give you the expected result.
849
+ ///
850
+ /// Shaders can also be used to apply global post-effects to the
851
+ /// current contents of the target (like the old sf::PostFx class
852
+ /// in SFML 1). This can be done in two different ways:
853
+ /// \li draw everything to a sf::RenderTexture, then draw it to
854
+ /// the main target using the shader
855
+ /// \li draw everything directly to the main target, then use
856
+ /// sf::Texture::update(Window&) to copy its contents to a texture
857
+ /// and draw it to the main target using the shader
858
+ ///
859
+ /// The first technique is more optimized because it doesn't involve
860
+ /// retrieving the target's pixels to system memory, but the
861
+ /// second one doesn't impact the rendering process and can be
862
+ /// easily inserted anywhere without impacting all the code.
863
+ ///
864
+ /// Like sf::Texture that can be used as a raw OpenGL texture,
865
+ /// sf::Shader can also be used directly as a raw shader for
866
+ /// custom OpenGL geometry.
867
+ /// \code
868
+ /// sf::Shader::bind(&shader);
869
+ /// ... render OpenGL geometry ...
870
+ /// sf::Shader::bind(NULL);
871
+ /// \endcode
872
+ ///
873
+ /// \see sf::Glsl
874
+ ///
875
+ ////////////////////////////////////////////////////////////