sfml.js 0.0.1-preview.41 → 0.0.1-preview.44

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 (213) hide show
  1. package/README.md +57 -7
  2. package/binding.gyp +71 -19
  3. package/lib/joystick.d.ts +21 -0
  4. package/lib/joystick.js +72 -0
  5. package/lib/keyboard.d.ts +1 -0
  6. package/lib/mouse.d.ts +1 -1
  7. package/lib/poll_event.d.ts +73 -9
  8. package/lib/rect.d.ts +1 -1
  9. package/lib/render_window.d.ts +36 -10
  10. package/lib/render_window.js +76 -0
  11. package/lib/sensor.d.ts +12 -0
  12. package/lib/sensor.js +34 -0
  13. package/lib/sfml.d.ts +4 -0
  14. package/lib/sfml.js +4 -0
  15. package/lib/touch.d.ts +7 -0
  16. package/lib/touch.js +34 -0
  17. package/lib/vector3.d.ts +47 -0
  18. package/lib/vector3.js +154 -0
  19. package/package.json +12 -18
  20. package/src/gen/joystick_axis.cc +30 -0
  21. package/src/gen/sensor_type.cc +26 -0
  22. package/src/joystick.cc +132 -0
  23. package/src/joystick.h +32 -0
  24. package/src/poll_event.cc +74 -1
  25. package/src/render_window.cc +177 -0
  26. package/src/render_window.h +45 -0
  27. package/src/render_window_async_display.cc +49 -0
  28. package/src/render_window_async_draw.cc +56 -0
  29. package/src/sensor.cc +82 -0
  30. package/src/sensor.h +28 -0
  31. package/src/sfml.cc +12 -0
  32. package/src/touch.cc +54 -0
  33. package/src/touch.h +23 -0
  34. package/src/vector3-inl.h +200 -0
  35. package/src/vector3.cc +36 -0
  36. package/src/vector3.h +134 -0
  37. package/tools/copier/linux.js +21 -0
  38. package/tools/copier/macos.js +34 -0
  39. package/tools/copier/windows.js +33 -0
  40. package/tools/joystick_axis.js +62 -0
  41. package/tools/keycode.js +5 -3
  42. package/tools/lib_downloader.js +102 -0
  43. package/tools/lib_downloader_urls.js +58 -0
  44. package/tools/mouse_button.js +9 -5
  45. package/tools/sensor_type.js +62 -0
  46. package/third_party/sfml/platform/linux/lib/libsfml-audio.so.2.5.1 +0 -0
  47. package/third_party/sfml/platform/linux/lib/libsfml-graphics.so.2.5.1 +0 -0
  48. package/third_party/sfml/platform/linux/lib/libsfml-network.so.2.5.1 +0 -0
  49. package/third_party/sfml/platform/linux/lib/libsfml-system.so.2.5.1 +0 -0
  50. package/third_party/sfml/platform/linux/lib/libsfml-window.so.2.5.1 +0 -0
  51. package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/A/FLAC +0 -0
  52. package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/A/Resources/Info.plist +0 -22
  53. package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/A/OpenAL +0 -0
  54. package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/A/Resources/Info.plist +0 -22
  55. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/AlResource.hpp +0 -70
  56. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Export.hpp +0 -48
  57. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/InputSoundFile.hpp +0 -263
  58. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Listener.hpp +0 -234
  59. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Music.hpp +0 -337
  60. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/OutputSoundFile.hpp +0 -133
  61. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/Sound.hpp +0 -264
  62. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundBuffer.hpp +0 -352
  63. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundBufferRecorder.hpp +0 -144
  64. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileFactory.hpp +0 -197
  65. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileFactory.inl +0 -100
  66. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileReader.hpp +0 -165
  67. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundFileWriter.hpp +0 -125
  68. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundRecorder.hpp +0 -408
  69. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundSource.hpp +0 -332
  70. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio/SoundStream.hpp +0 -405
  71. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Audio.hpp +0 -56
  72. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Config.hpp +0 -236
  73. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/GpuPreference.hpp +0 -74
  74. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/BlendMode.hpp +0 -215
  75. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/CircleShape.hpp +0 -154
  76. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Color.hpp +0 -275
  77. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/ConvexShape.hpp +0 -153
  78. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Drawable.hpp +0 -126
  79. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Export.hpp +0 -48
  80. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Font.hpp +0 -439
  81. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glsl.hpp +0 -227
  82. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glsl.inl +0 -155
  83. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Glyph.hpp +0 -79
  84. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Image.hpp +0 -324
  85. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/PrimitiveType.hpp +0 -58
  86. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Rect.hpp +0 -254
  87. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Rect.inl +0 -159
  88. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RectangleShape.hpp +0 -132
  89. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderStates.hpp +0 -174
  90. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderTarget.hpp +0 -510
  91. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderTexture.hpp +0 -314
  92. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/RenderWindow.hpp +0 -284
  93. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Shader.hpp +0 -875
  94. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Shape.hpp +0 -355
  95. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Sprite.hpp +0 -279
  96. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Text.hpp +0 -513
  97. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Texture.hpp +0 -733
  98. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Transform.hpp +0 -479
  99. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Transformable.hpp +0 -429
  100. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/Vertex.hpp +0 -148
  101. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/VertexArray.hpp +0 -223
  102. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/VertexBuffer.hpp +0 -408
  103. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics/View.hpp +0 -343
  104. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Graphics.hpp +0 -68
  105. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Main.hpp +0 -43
  106. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Export.hpp +0 -48
  107. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Ftp.hpp +0 -616
  108. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Http.hpp +0 -482
  109. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/IpAddress.hpp +0 -328
  110. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Packet.hpp +0 -532
  111. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/Socket.hpp +0 -219
  112. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/SocketHandle.hpp +0 -57
  113. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/SocketSelector.hpp +0 -263
  114. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/TcpListener.hpp +0 -166
  115. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/TcpSocket.hpp +0 -316
  116. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network/UdpSocket.hpp +0 -291
  117. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Network.hpp +0 -53
  118. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/OpenGL.hpp +0 -78
  119. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Clock.hpp +0 -117
  120. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Err.hpp +0 -80
  121. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Export.hpp +0 -48
  122. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/FileInputStream.hpp +0 -169
  123. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/InputStream.hpp +0 -152
  124. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Lock.hpp +0 -139
  125. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/MemoryInputStream.hpp +0 -148
  126. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Mutex.hpp +0 -148
  127. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/NativeActivity.hpp +0 -62
  128. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/NonCopyable.hpp +0 -129
  129. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Sleep.hpp +0 -52
  130. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/String.hpp +0 -669
  131. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/String.inl +0 -53
  132. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Thread.hpp +0 -282
  133. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Thread.inl +0 -90
  134. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocal.hpp +0 -103
  135. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocalPtr.hpp +0 -158
  136. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/ThreadLocalPtr.inl +0 -77
  137. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Time.hpp +0 -488
  138. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Utf.hpp +0 -763
  139. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Utf.inl +0 -752
  140. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector2.hpp +0 -301
  141. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector2.inl +0 -161
  142. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector3.hpp +0 -302
  143. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System/Vector3.inl +0 -168
  144. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/System.hpp +0 -60
  145. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Clipboard.hpp +0 -119
  146. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Context.hpp +0 -195
  147. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/ContextSettings.hpp +0 -149
  148. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Cursor.hpp +0 -222
  149. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Event.hpp +0 -284
  150. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Export.hpp +0 -48
  151. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/GlResource.hpp +0 -109
  152. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Joystick.hpp +0 -227
  153. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Keyboard.hpp +0 -232
  154. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Mouse.hpp +0 -177
  155. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Sensor.hpp +0 -150
  156. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Touch.hpp +0 -137
  157. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/VideoMode.hpp +0 -228
  158. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/Window.hpp +0 -622
  159. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/WindowHandle.hpp +0 -101
  160. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window/WindowStyle.hpp +0 -53
  161. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Headers/Window.hpp +0 -58
  162. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfig.cmake +0 -148
  163. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfigDependencies.cmake +0 -86
  164. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLConfigVersion.cmake +0 -46
  165. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLSharedTargets-release.cmake +0 -59
  166. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/CMake/SFMLSharedTargets.cmake +0 -158
  167. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  168. package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/2.5.1/SFML +0 -0
  169. package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/A/Resources/Info.plist +0 -22
  170. package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/A/freetype +0 -0
  171. package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/A/Resources/Info.plist +0 -22
  172. package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/A/ogg +0 -0
  173. package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  174. package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/2.5.1/sfml-audio +0 -0
  175. package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  176. package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/2.5.1/sfml-graphics +0 -0
  177. package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  178. package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/2.5.1/sfml-network +0 -0
  179. package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  180. package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system +0 -0
  181. package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/2.5.1/Resources/Info.plist +0 -26
  182. package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/2.5.1/sfml-window +0 -0
  183. package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/A/Resources/Info.plist +0 -22
  184. package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/A/vorbis +0 -0
  185. package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/A/Resources/Info.plist +0 -22
  186. package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/A/vorbisenc +0 -0
  187. package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/A/Resources/Info.plist +0 -22
  188. package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/A/vorbisfile +0 -0
  189. package/third_party/sfml/platform/macOS/lib/libsfml-audio.2.5.1.dylib +0 -0
  190. package/third_party/sfml/platform/macOS/lib/libsfml-graphics.2.5.1.dylib +0 -0
  191. package/third_party/sfml/platform/macOS/lib/libsfml-network.2.5.1.dylib +0 -0
  192. package/third_party/sfml/platform/macOS/lib/libsfml-system.2.5.1.dylib +0 -0
  193. package/third_party/sfml/platform/macOS/lib/libsfml-window.2.5.1.dylib +0 -0
  194. package/third_party/sfml/platform/win64/bin/openal32.dll +0 -0
  195. package/third_party/sfml/platform/win64/bin/sfml-audio-2.dll +0 -0
  196. package/third_party/sfml/platform/win64/bin/sfml-graphics-2.dll +0 -0
  197. package/third_party/sfml/platform/win64/bin/sfml-network-2.dll +0 -0
  198. package/third_party/sfml/platform/win64/bin/sfml-system-2.dll +0 -0
  199. package/third_party/sfml/platform/win64/bin/sfml-window-2.dll +0 -0
  200. package/third_party/sfml/platform/win64/lib/flac.lib +0 -0
  201. package/third_party/sfml/platform/win64/lib/freetype.lib +0 -0
  202. package/third_party/sfml/platform/win64/lib/ogg.lib +0 -0
  203. package/third_party/sfml/platform/win64/lib/openal32.lib +0 -0
  204. package/third_party/sfml/platform/win64/lib/sfml-audio.lib +0 -0
  205. package/third_party/sfml/platform/win64/lib/sfml-graphics.lib +0 -0
  206. package/third_party/sfml/platform/win64/lib/sfml-main.lib +0 -0
  207. package/third_party/sfml/platform/win64/lib/sfml-network.lib +0 -0
  208. package/third_party/sfml/platform/win64/lib/sfml-system.lib +0 -0
  209. package/third_party/sfml/platform/win64/lib/sfml-window.lib +0 -0
  210. package/third_party/sfml/platform/win64/lib/vorbis.lib +0 -0
  211. package/third_party/sfml/platform/win64/lib/vorbisenc.lib +0 -0
  212. package/third_party/sfml/platform/win64/lib/vorbisfile.lib +0 -0
  213. package/tools/symlinks.js +0 -122
@@ -1,48 +0,0 @@
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_SYSTEM_EXPORT_HPP
26
- #define SFML_SYSTEM_EXPORT_HPP
27
-
28
- ////////////////////////////////////////////////////////////
29
- // Headers
30
- ////////////////////////////////////////////////////////////
31
- #include <SFML/Config.hpp>
32
-
33
-
34
- ////////////////////////////////////////////////////////////
35
- // Define portable import / export macros
36
- ////////////////////////////////////////////////////////////
37
- #if defined(SFML_SYSTEM_EXPORTS)
38
-
39
- #define SFML_SYSTEM_API SFML_API_EXPORT
40
-
41
- #else
42
-
43
- #define SFML_SYSTEM_API SFML_API_IMPORT
44
-
45
- #endif
46
-
47
-
48
- #endif // SFML_SYSTEM_EXPORT_HPP
@@ -1,169 +0,0 @@
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_FILEINPUTSTREAM_HPP
26
- #define SFML_FILEINPUTSTREAM_HPP
27
-
28
- ////////////////////////////////////////////////////////////
29
- // Headers
30
- ////////////////////////////////////////////////////////////
31
- #include <SFML/Config.hpp>
32
- #include <SFML/System/Export.hpp>
33
- #include <SFML/System/InputStream.hpp>
34
- #include <SFML/System/NonCopyable.hpp>
35
- #include <cstdio>
36
- #include <string>
37
-
38
- #ifdef SFML_SYSTEM_ANDROID
39
- namespace sf
40
- {
41
- namespace priv
42
- {
43
- class SFML_SYSTEM_API ResourceStream;
44
- }
45
- }
46
- #endif
47
-
48
-
49
- namespace sf
50
- {
51
- ////////////////////////////////////////////////////////////
52
- /// \brief Implementation of input stream based on a file
53
- ///
54
- ////////////////////////////////////////////////////////////
55
- class SFML_SYSTEM_API FileInputStream : public InputStream, NonCopyable
56
- {
57
- public:
58
- ////////////////////////////////////////////////////////////
59
- /// \brief Default constructor
60
- ///
61
- ////////////////////////////////////////////////////////////
62
- FileInputStream();
63
-
64
- ////////////////////////////////////////////////////////////
65
- /// \brief Default destructor
66
- ///
67
- ////////////////////////////////////////////////////////////
68
- virtual ~FileInputStream();
69
-
70
- ////////////////////////////////////////////////////////////
71
- /// \brief Open the stream from a file path
72
- ///
73
- /// \param filename Name of the file to open
74
- ///
75
- /// \return True on success, false on error
76
- ///
77
- ////////////////////////////////////////////////////////////
78
- bool open(const std::string& filename);
79
-
80
- ////////////////////////////////////////////////////////////
81
- /// \brief Read data from the stream
82
- ///
83
- /// After reading, the stream's reading position must be
84
- /// advanced by the amount of bytes read.
85
- ///
86
- /// \param data Buffer where to copy the read data
87
- /// \param size Desired number of bytes to read
88
- ///
89
- /// \return The number of bytes actually read, or -1 on error
90
- ///
91
- ////////////////////////////////////////////////////////////
92
- virtual Int64 read(void* data, Int64 size);
93
-
94
- ////////////////////////////////////////////////////////////
95
- /// \brief Change the current reading position
96
- ///
97
- /// \param position The position to seek to, from the beginning
98
- ///
99
- /// \return The position actually sought to, or -1 on error
100
- ///
101
- ////////////////////////////////////////////////////////////
102
- virtual Int64 seek(Int64 position);
103
-
104
- ////////////////////////////////////////////////////////////
105
- /// \brief Get the current reading position in the stream
106
- ///
107
- /// \return The current position, or -1 on error.
108
- ///
109
- ////////////////////////////////////////////////////////////
110
- virtual Int64 tell();
111
-
112
- ////////////////////////////////////////////////////////////
113
- /// \brief Return the size of the stream
114
- ///
115
- /// \return The total number of bytes available in the stream, or -1 on error
116
- ///
117
- ////////////////////////////////////////////////////////////
118
- virtual Int64 getSize();
119
-
120
- private:
121
-
122
- ////////////////////////////////////////////////////////////
123
- // Member data
124
- ////////////////////////////////////////////////////////////
125
- #ifdef SFML_SYSTEM_ANDROID
126
- priv::ResourceStream* m_file;
127
- #else
128
- std::FILE* m_file; ///< stdio file stream
129
- #endif
130
- };
131
-
132
- } // namespace sf
133
-
134
-
135
- #endif // SFML_FILEINPUTSTREAM_HPP
136
-
137
-
138
- ////////////////////////////////////////////////////////////
139
- /// \class sf::FileInputStream
140
- /// \ingroup system
141
- ///
142
- /// This class is a specialization of InputStream that
143
- /// reads from a file on disk.
144
- ///
145
- /// It wraps a file in the common InputStream interface
146
- /// and therefore allows to use generic classes or functions
147
- /// that accept such a stream, with a file on disk as the data
148
- /// source.
149
- ///
150
- /// In addition to the virtual functions inherited from
151
- /// InputStream, FileInputStream adds a function to
152
- /// specify the file to open.
153
- ///
154
- /// SFML resource classes can usually be loaded directly from
155
- /// a filename, so this class shouldn't be useful to you unless
156
- /// you create your own algorithms that operate on an InputStream.
157
- ///
158
- /// Usage example:
159
- /// \code
160
- /// void process(InputStream& stream);
161
- ///
162
- /// FileInputStream stream;
163
- /// if (stream.open("some_file.dat"))
164
- /// process(stream);
165
- /// \endcode
166
- ///
167
- /// InputStream, MemoryInputStream
168
- ///
169
- ////////////////////////////////////////////////////////////
@@ -1,152 +0,0 @@
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_INPUTSTREAM_HPP
26
- #define SFML_INPUTSTREAM_HPP
27
-
28
- ////////////////////////////////////////////////////////////
29
- // Headers
30
- ////////////////////////////////////////////////////////////
31
- #include <SFML/Config.hpp>
32
- #include <SFML/System/Export.hpp>
33
-
34
-
35
- namespace sf
36
- {
37
- ////////////////////////////////////////////////////////////
38
- /// \brief Abstract class for custom file input streams
39
- ///
40
- ////////////////////////////////////////////////////////////
41
- class SFML_SYSTEM_API InputStream
42
- {
43
- public:
44
-
45
- ////////////////////////////////////////////////////////////
46
- /// \brief Virtual destructor
47
- ///
48
- ////////////////////////////////////////////////////////////
49
- virtual ~InputStream() {}
50
-
51
- ////////////////////////////////////////////////////////////
52
- /// \brief Read data from the stream
53
- ///
54
- /// After reading, the stream's reading position must be
55
- /// advanced by the amount of bytes read.
56
- ///
57
- /// \param data Buffer where to copy the read data
58
- /// \param size Desired number of bytes to read
59
- ///
60
- /// \return The number of bytes actually read, or -1 on error
61
- ///
62
- ////////////////////////////////////////////////////////////
63
- virtual Int64 read(void* data, Int64 size) = 0;
64
-
65
- ////////////////////////////////////////////////////////////
66
- /// \brief Change the current reading position
67
- ///
68
- /// \param position The position to seek to, from the beginning
69
- ///
70
- /// \return The position actually sought to, or -1 on error
71
- ///
72
- ////////////////////////////////////////////////////////////
73
- virtual Int64 seek(Int64 position) = 0;
74
-
75
- ////////////////////////////////////////////////////////////
76
- /// \brief Get the current reading position in the stream
77
- ///
78
- /// \return The current position, or -1 on error.
79
- ///
80
- ////////////////////////////////////////////////////////////
81
- virtual Int64 tell() = 0;
82
-
83
- ////////////////////////////////////////////////////////////
84
- /// \brief Return the size of the stream
85
- ///
86
- /// \return The total number of bytes available in the stream, or -1 on error
87
- ///
88
- ////////////////////////////////////////////////////////////
89
- virtual Int64 getSize() = 0;
90
- };
91
-
92
- } // namespace sf
93
-
94
-
95
- #endif // SFML_INPUTSTREAM_HPP
96
-
97
-
98
- ////////////////////////////////////////////////////////////
99
- /// \class sf::InputStream
100
- /// \ingroup system
101
- ///
102
- /// This class allows users to define their own file input sources
103
- /// from which SFML can load resources.
104
- ///
105
- /// SFML resource classes like sf::Texture and
106
- /// sf::SoundBuffer provide loadFromFile and loadFromMemory functions,
107
- /// which read data from conventional sources. However, if you
108
- /// have data coming from a different source (over a network,
109
- /// embedded, encrypted, compressed, etc) you can derive your
110
- /// own class from sf::InputStream and load SFML resources with
111
- /// their loadFromStream function.
112
- ///
113
- /// Usage example:
114
- /// \code
115
- /// // custom stream class that reads from inside a zip file
116
- /// class ZipStream : public sf::InputStream
117
- /// {
118
- /// public:
119
- ///
120
- /// ZipStream(std::string archive);
121
- ///
122
- /// bool open(std::string filename);
123
- ///
124
- /// Int64 read(void* data, Int64 size);
125
- ///
126
- /// Int64 seek(Int64 position);
127
- ///
128
- /// Int64 tell();
129
- ///
130
- /// Int64 getSize();
131
- ///
132
- /// private:
133
- ///
134
- /// ...
135
- /// };
136
- ///
137
- /// // now you can load textures...
138
- /// sf::Texture texture;
139
- /// ZipStream stream("resources.zip");
140
- /// stream.open("images/img.png");
141
- /// texture.loadFromStream(stream);
142
- ///
143
- /// // musics...
144
- /// sf::Music music;
145
- /// ZipStream stream("resources.zip");
146
- /// stream.open("musics/msc.ogg");
147
- /// music.openFromStream(stream);
148
- ///
149
- /// // etc.
150
- /// \endcode
151
- ///
152
- ////////////////////////////////////////////////////////////
@@ -1,139 +0,0 @@
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_LOCK_HPP
26
- #define SFML_LOCK_HPP
27
-
28
- ////////////////////////////////////////////////////////////
29
- // Headers
30
- ////////////////////////////////////////////////////////////
31
- #include <SFML/System/Export.hpp>
32
- #include <SFML/System/NonCopyable.hpp>
33
-
34
-
35
- namespace sf
36
- {
37
- class Mutex;
38
-
39
- ////////////////////////////////////////////////////////////
40
- /// \brief Automatic wrapper for locking and unlocking mutexes
41
- ///
42
- ////////////////////////////////////////////////////////////
43
- class SFML_SYSTEM_API Lock : NonCopyable
44
- {
45
- public:
46
-
47
- ////////////////////////////////////////////////////////////
48
- /// \brief Construct the lock with a target mutex
49
- ///
50
- /// The mutex passed to sf::Lock is automatically locked.
51
- ///
52
- /// \param mutex Mutex to lock
53
- ///
54
- ////////////////////////////////////////////////////////////
55
- explicit Lock(Mutex& mutex);
56
-
57
- ////////////////////////////////////////////////////////////
58
- /// \brief Destructor
59
- ///
60
- /// The destructor of sf::Lock automatically unlocks its mutex.
61
- ///
62
- ////////////////////////////////////////////////////////////
63
- ~Lock();
64
-
65
- private:
66
-
67
- ////////////////////////////////////////////////////////////
68
- // Member data
69
- ////////////////////////////////////////////////////////////
70
- Mutex& m_mutex; ///< Mutex to lock / unlock
71
- };
72
-
73
- } // namespace sf
74
-
75
-
76
- #endif // SFML_LOCK_HPP
77
-
78
-
79
- ////////////////////////////////////////////////////////////
80
- /// \class sf::Lock
81
- /// \ingroup system
82
- ///
83
- /// sf::Lock is a RAII wrapper for sf::Mutex. By unlocking
84
- /// it in its destructor, it ensures that the mutex will
85
- /// always be released when the current scope (most likely
86
- /// a function) ends.
87
- /// This is even more important when an exception or an early
88
- /// return statement can interrupt the execution flow of the
89
- /// function.
90
- ///
91
- /// For maximum robustness, sf::Lock should always be used
92
- /// to lock/unlock a mutex.
93
- ///
94
- /// Usage example:
95
- /// \code
96
- /// sf::Mutex mutex;
97
- ///
98
- /// void function()
99
- /// {
100
- /// sf::Lock lock(mutex); // mutex is now locked
101
- ///
102
- /// functionThatMayThrowAnException(); // mutex is unlocked if this function throws
103
- ///
104
- /// if (someCondition)
105
- /// return; // mutex is unlocked
106
- ///
107
- /// } // mutex is unlocked
108
- /// \endcode
109
- ///
110
- /// Because the mutex is not explicitly unlocked in the code,
111
- /// it may remain locked longer than needed. If the region
112
- /// of the code that needs to be protected by the mutex is
113
- /// not the entire function, a good practice is to create a
114
- /// smaller, inner scope so that the lock is limited to this
115
- /// part of the code.
116
- ///
117
- /// \code
118
- /// sf::Mutex mutex;
119
- ///
120
- /// void function()
121
- /// {
122
- /// {
123
- /// sf::Lock lock(mutex);
124
- /// codeThatRequiresProtection();
125
- ///
126
- /// } // mutex is unlocked here
127
- ///
128
- /// codeThatDoesntCareAboutTheMutex();
129
- /// }
130
- /// \endcode
131
- ///
132
- /// Having a mutex locked longer than required is a bad practice
133
- /// which can lead to bad performances. Don't forget that when
134
- /// a mutex is locked, other threads may be waiting doing nothing
135
- /// until it is released.
136
- ///
137
- /// \see sf::Mutex
138
- ///
139
- ////////////////////////////////////////////////////////////