sfml.js 0.0.1-preview.37 → 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.
- package/README.md +2 -4
- package/binding.gyp +31 -0
- package/lib/color.js +5 -2
- package/lib/image.js +17 -4
- package/lib/keyboard.js +3 -1
- package/lib/rect.js +28 -8
- package/lib/render_window.js +3 -1
- package/lib/texture.d.ts +1 -0
- package/lib/texture.js +19 -0
- package/lib/vector2.js +26 -12
- package/lib/vertex.js +4 -2
- package/lib/video_mode.js +14 -4
- package/package.json +8 -3
- package/src/color.cc +4 -6
- package/src/drawable/package_plugin-inl.h +4 -3
- package/src/drawable/rectangle_shape.cc +3 -2
- package/src/drawable/shape.cc +3 -1
- package/src/drawable/vertex_array.cc +3 -3
- package/src/font.cc +6 -4
- package/src/image.cc +4 -5
- package/src/image.h +1 -1
- package/src/mouse.cc +2 -1
- package/src/plugins/transformable_plugin-inl.h +2 -2
- package/src/rect-inl.h +12 -8
- package/src/rect.h +1 -1
- package/src/render_window.cc +4 -3
- package/src/resizable_buffer.h +17 -2
- package/src/texture.cc +46 -2
- package/src/texture.h +1 -0
- package/src/utils-inl.h +2 -2
- package/src/vector2-inl.h +13 -13
- package/src/vector2.h +3 -3
- package/src/vertex.cc +66 -28
- package/src/vertex.h +2 -2
- package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/Current/FLAC +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/FLAC.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/Current/OpenAL +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/OpenAL.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/AlResource.hpp +70 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/InputSoundFile.hpp +263 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/Listener.hpp +234 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/Music.hpp +337 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/OutputSoundFile.hpp +133 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/Sound.hpp +264 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundBuffer.hpp +352 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundBufferRecorder.hpp +144 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundFileFactory.hpp +197 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundFileFactory.inl +100 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundFileReader.hpp +165 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundFileWriter.hpp +125 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundRecorder.hpp +408 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundSource.hpp +332 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio/SoundStream.hpp +405 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Audio.hpp +56 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Config.hpp +236 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/GpuPreference.hpp +74 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/BlendMode.hpp +215 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/CircleShape.hpp +154 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Color.hpp +275 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/ConvexShape.hpp +153 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Drawable.hpp +126 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Font.hpp +439 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Glsl.hpp +227 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Glsl.inl +155 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Glyph.hpp +79 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Image.hpp +324 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/PrimitiveType.hpp +58 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Rect.hpp +254 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Rect.inl +159 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/RectangleShape.hpp +132 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/RenderStates.hpp +174 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/RenderTarget.hpp +510 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/RenderTexture.hpp +314 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/RenderWindow.hpp +284 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Shader.hpp +875 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Shape.hpp +355 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Sprite.hpp +279 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Text.hpp +513 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Texture.hpp +733 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Transform.hpp +479 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Transformable.hpp +429 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/Vertex.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/VertexArray.hpp +223 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/VertexBuffer.hpp +408 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics/View.hpp +343 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Graphics.hpp +68 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Main.hpp +43 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/Ftp.hpp +616 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/Http.hpp +482 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/IpAddress.hpp +328 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/Packet.hpp +532 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/Socket.hpp +219 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/SocketHandle.hpp +57 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/SocketSelector.hpp +263 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/TcpListener.hpp +166 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/TcpSocket.hpp +316 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network/UdpSocket.hpp +291 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Network.hpp +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/OpenGL.hpp +78 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Clock.hpp +117 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Err.hpp +80 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/FileInputStream.hpp +169 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/InputStream.hpp +152 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Lock.hpp +139 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/MemoryInputStream.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Mutex.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/NativeActivity.hpp +62 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/NonCopyable.hpp +129 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Sleep.hpp +52 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/String.hpp +669 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/String.inl +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Thread.hpp +282 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Thread.inl +90 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/ThreadLocal.hpp +103 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/ThreadLocalPtr.hpp +158 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/ThreadLocalPtr.inl +77 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Time.hpp +488 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Utf.hpp +763 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Utf.inl +752 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Vector2.hpp +301 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Vector2.inl +161 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Vector3.hpp +302 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System/Vector3.inl +168 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/System.hpp +60 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Clipboard.hpp +119 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Context.hpp +195 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/ContextSettings.hpp +149 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Cursor.hpp +222 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Event.hpp +284 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/GlResource.hpp +109 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Joystick.hpp +227 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Keyboard.hpp +232 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Mouse.hpp +177 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Sensor.hpp +150 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Touch.hpp +137 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/VideoMode.hpp +228 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/Window.hpp +622 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/WindowHandle.hpp +101 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window/WindowStyle.hpp +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Headers/Window.hpp +58 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/CMake/SFMLConfig.cmake +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/CMake/SFMLConfigDependencies.cmake +86 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/CMake/SFMLConfigVersion.cmake +46 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/CMake/SFMLSharedTargets-release.cmake +59 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/CMake/SFMLSharedTargets.cmake +158 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/AlResource.hpp +70 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/InputSoundFile.hpp +263 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Listener.hpp +234 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Music.hpp +337 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/OutputSoundFile.hpp +133 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/Sound.hpp +264 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundBuffer.hpp +352 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundBufferRecorder.hpp +144 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileFactory.hpp +197 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileFactory.inl +100 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileReader.hpp +165 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundFileWriter.hpp +125 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundRecorder.hpp +408 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundSource.hpp +332 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio/SoundStream.hpp +405 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Audio.hpp +56 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Config.hpp +236 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/GpuPreference.hpp +74 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/BlendMode.hpp +215 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/CircleShape.hpp +154 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Color.hpp +275 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/ConvexShape.hpp +153 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Drawable.hpp +126 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Font.hpp +439 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glsl.hpp +227 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glsl.inl +155 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Glyph.hpp +79 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Image.hpp +324 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/PrimitiveType.hpp +58 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Rect.hpp +254 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Rect.inl +159 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RectangleShape.hpp +132 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderStates.hpp +174 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderTarget.hpp +510 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderTexture.hpp +314 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/RenderWindow.hpp +284 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Shader.hpp +875 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Shape.hpp +355 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Sprite.hpp +279 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Text.hpp +513 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Texture.hpp +733 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Transform.hpp +479 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Transformable.hpp +429 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/Vertex.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/VertexArray.hpp +223 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/VertexBuffer.hpp +408 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics/View.hpp +343 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Graphics.hpp +68 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Main.hpp +43 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Ftp.hpp +616 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Http.hpp +482 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/IpAddress.hpp +328 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Packet.hpp +532 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/Socket.hpp +219 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/SocketHandle.hpp +57 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/SocketSelector.hpp +263 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/TcpListener.hpp +166 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/TcpSocket.hpp +316 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network/UdpSocket.hpp +291 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Network.hpp +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/OpenGL.hpp +78 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Clock.hpp +117 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Err.hpp +80 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/FileInputStream.hpp +169 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/InputStream.hpp +152 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Lock.hpp +139 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/MemoryInputStream.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Mutex.hpp +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/NativeActivity.hpp +62 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/NonCopyable.hpp +129 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Sleep.hpp +52 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/String.hpp +669 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/String.inl +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Thread.hpp +282 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Thread.inl +90 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocal.hpp +103 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocalPtr.hpp +158 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/ThreadLocalPtr.inl +77 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Time.hpp +488 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Utf.hpp +763 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Utf.inl +752 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector2.hpp +301 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector2.inl +161 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector3.hpp +302 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System/Vector3.inl +168 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/System.hpp +60 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Clipboard.hpp +119 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Context.hpp +195 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/ContextSettings.hpp +149 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Cursor.hpp +222 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Event.hpp +284 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Export.hpp +48 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/GlResource.hpp +109 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Joystick.hpp +227 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Keyboard.hpp +232 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Mouse.hpp +177 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Sensor.hpp +150 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Touch.hpp +137 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/VideoMode.hpp +228 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/Window.hpp +622 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/WindowHandle.hpp +101 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window/WindowStyle.hpp +53 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Headers/Window.hpp +58 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfig.cmake +148 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfigDependencies.cmake +86 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLConfigVersion.cmake +46 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLSharedTargets-release.cmake +59 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/CMake/SFMLSharedTargets.cmake +158 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/SFML.framework/Versions/Current/SFML +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/freetype.framework/Versions/Current/freetype +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/ogg.framework/Versions/Current/ogg +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-audio.framework/Versions/Current/sfml-audio +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-graphics.framework/Versions/Current/sfml-graphics +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-network.framework/Versions/Current/sfml-network +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-system.framework/Versions/Current/sfml-system +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/Current/Resources/Info.plist +26 -0
- package/third_party/sfml/platform/macOS/Frameworks/sfml-window.framework/Versions/Current/sfml-window +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbis.framework/Versions/Current/vorbis +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisenc.framework/Versions/Current/vorbisenc +0 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/Current/Resources/Info.plist +22 -0
- package/third_party/sfml/platform/macOS/Frameworks/vorbisfile.framework/Versions/Current/vorbisfile +0 -0
- package/third_party/sfml/platform/win64/bin/openal32.dll +0 -0
- package/third_party/sfml/platform/win64/bin/sfml-audio-2.dll +0 -0
- package/third_party/sfml/platform/win64/bin/sfml-graphics-2.dll +0 -0
- package/third_party/sfml/platform/win64/bin/sfml-network-2.dll +0 -0
- package/third_party/sfml/platform/win64/bin/sfml-system-2.dll +0 -0
- package/third_party/sfml/platform/win64/bin/sfml-window-2.dll +0 -0
- package/third_party/sfml/platform/win64/lib/flac.lib +0 -0
- package/third_party/sfml/platform/win64/lib/freetype.lib +0 -0
- package/third_party/sfml/platform/win64/lib/ogg.lib +0 -0
- package/third_party/sfml/platform/win64/lib/openal32.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-audio.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-graphics.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-main.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-network.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-system.lib +0 -0
- package/third_party/sfml/platform/win64/lib/sfml-window.lib +0 -0
- package/third_party/sfml/platform/win64/lib/vorbis.lib +0 -0
- package/third_party/sfml/platform/win64/lib/vorbisenc.lib +0 -0
- package/third_party/sfml/platform/win64/lib/vorbisfile.lib +0 -0
- package/tools/keycode.js +31 -20
- package/tools/mouse_button.js +52 -35
- package/tools/symlinks.js +15 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#ifndef SRC_PLUGINS_TRANSFORMABLE_PLUGIN_INL_H_
|
|
2
2
|
#define SRC_PLUGINS_TRANSFORMABLE_PLUGIN_INL_H_
|
|
3
3
|
|
|
4
|
-
#include "../vector2.h"
|
|
4
|
+
#include "../vector2-inl.h"
|
|
5
5
|
#include "transformable_plugin.h"
|
|
6
6
|
|
|
7
7
|
namespace node_sfml {
|
|
@@ -96,7 +96,7 @@ inline NAN_METHOD(Rotate) {
|
|
|
96
96
|
const sf::Vector2f& vec = target->transformable().get##name(); \
|
|
97
97
|
\
|
|
98
98
|
Nan::TryCatch try_catch; \
|
|
99
|
-
v8::MaybeLocal<v8::
|
|
99
|
+
v8::MaybeLocal<v8::Value> maybe_vec = \
|
|
100
100
|
vector2::Vector2F::NewRealInstance(info.GetIsolate(), vec); \
|
|
101
101
|
if (maybe_vec.IsEmpty()) { \
|
|
102
102
|
try_catch.ReThrow(); \
|
package/src/rect-inl.h
CHANGED
|
@@ -10,12 +10,11 @@ namespace rect {
|
|
|
10
10
|
#define TEMPLATE_INNER T, NAN_T, V8_T
|
|
11
11
|
|
|
12
12
|
template <typename T, typename NAN_T, class V8_T>
|
|
13
|
-
v8::MaybeLocal<v8::
|
|
13
|
+
v8::MaybeLocal<v8::Value> Rect<TEMPLATE_INNER>::NewRealInstance(
|
|
14
14
|
v8::Isolate* isolate, size_t argc, v8::Local<v8::Value>* argv) {
|
|
15
15
|
v8::Local<v8::Function> cons = real_constructor.Get(isolate);
|
|
16
16
|
|
|
17
|
-
v8::MaybeLocal<v8::
|
|
18
|
-
cons->NewInstance(isolate->GetCurrentContext(), argc, argv);
|
|
17
|
+
v8::MaybeLocal<v8::Value> maybe_ret = Nan::Call(cons, cons, argc, argv);
|
|
19
18
|
return maybe_ret;
|
|
20
19
|
}
|
|
21
20
|
|
|
@@ -82,9 +81,14 @@ NAN_METHOD(Rect<TEMPLATE_INNER>::Intersects) {
|
|
|
82
81
|
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(info[0].As<v8::Object>());
|
|
83
82
|
|
|
84
83
|
v8::Local<v8::Function> cons = real_constructor.Get(info.GetIsolate());
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
Nan::TryCatch try_catch;
|
|
85
|
+
v8::MaybeLocal<v8::Value> maybe_ret = Nan::Call(cons, cons, 0, nullptr);
|
|
86
|
+
if (maybe_ret.IsEmpty()) {
|
|
87
|
+
try_catch.ReThrow();
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
v8::Local<v8::Object> ret = maybe_ret.ToLocalChecked().As<v8::Object>();
|
|
88
92
|
Rect<T, NAN_T, V8_T>* ret_rect =
|
|
89
93
|
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(ret);
|
|
90
94
|
|
|
@@ -100,7 +104,7 @@ NAN_METHOD(Rect<TEMPLATE_INNER>::Intersects) {
|
|
|
100
104
|
template <typename T, typename NAN_T, class V8_T> \
|
|
101
105
|
NAN_METHOD(Rect<TEMPLATE_INNER>::name##Getter) { \
|
|
102
106
|
Rect<T, NAN_T, V8_T>* rect = \
|
|
103
|
-
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(info.
|
|
107
|
+
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(info.This()); \
|
|
104
108
|
v8::Local<V8_T> ret = \
|
|
105
109
|
Nan::New<V8_T>(static_cast<NAN_T>(rect->_rect.lowercase)); \
|
|
106
110
|
info.GetReturnValue().Set(ret); \
|
|
@@ -115,7 +119,7 @@ NAN_METHOD(Rect<TEMPLATE_INNER>::Intersects) {
|
|
|
115
119
|
\
|
|
116
120
|
NAN_T val = maybe_value.ToLocalChecked()->Value(); \
|
|
117
121
|
Rect<T, NAN_T, V8_T>* rect = \
|
|
118
|
-
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(info.
|
|
122
|
+
Nan::ObjectWrap::Unwrap<Rect<T, NAN_T, V8_T>>(info.This()); \
|
|
119
123
|
rect->_rect.lowercase = static_cast<T>(val); \
|
|
120
124
|
}
|
|
121
125
|
|
package/src/rect.h
CHANGED
|
@@ -53,7 +53,7 @@ class Rect : public Nan::ObjectWrap {
|
|
|
53
53
|
Nan::SetMethod(func, "setRealConstructor", SetRealConstructor);
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
static v8::MaybeLocal<v8::
|
|
56
|
+
static v8::MaybeLocal<v8::Value> NewRealInstance(
|
|
57
57
|
v8::Isolate* isolate,
|
|
58
58
|
size_t argc = 0,
|
|
59
59
|
v8::Local<v8::Value>* argv = nullptr);
|
package/src/render_window.cc
CHANGED
|
@@ -16,6 +16,7 @@ using v8::Local;
|
|
|
16
16
|
using v8::MaybeLocal;
|
|
17
17
|
using v8::Object;
|
|
18
18
|
using v8::String;
|
|
19
|
+
using v8::Value;
|
|
19
20
|
|
|
20
21
|
Nan::Persistent<Function> constructor;
|
|
21
22
|
|
|
@@ -126,14 +127,14 @@ NAN_METHOD(RenderWindow::Capture) {
|
|
|
126
127
|
sf::Image img = window->_window->capture();
|
|
127
128
|
|
|
128
129
|
Nan::TryCatch try_catch;
|
|
129
|
-
MaybeLocal<
|
|
130
|
+
MaybeLocal<Value> maybe_img =
|
|
130
131
|
image::Image::NewRealInstance(info.GetIsolate());
|
|
131
132
|
if (maybe_img.IsEmpty()) {
|
|
132
133
|
try_catch.ReThrow();
|
|
133
134
|
return;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
Local<Object> img_obj = maybe_img.ToLocalChecked();
|
|
137
|
+
Local<Object> img_obj = maybe_img.ToLocalChecked().As<Object>();
|
|
137
138
|
image::Image* node_sfml_img = Nan::ObjectWrap::Unwrap<image::Image>(img_obj);
|
|
138
139
|
node_sfml_img->SetInnerImage(img);
|
|
139
140
|
|
|
@@ -190,7 +191,7 @@ NAN_METHOD(RenderWindow::GetSize) {
|
|
|
190
191
|
sf::Vector2u vec = window->_window->getSize();
|
|
191
192
|
|
|
192
193
|
Nan::TryCatch try_catch;
|
|
193
|
-
MaybeLocal<
|
|
194
|
+
MaybeLocal<Value> maybe_vec =
|
|
194
195
|
vector2::Vector2U::NewRealInstance(info.GetIsolate(), vec);
|
|
195
196
|
if (maybe_vec.IsEmpty()) {
|
|
196
197
|
try_catch.ReThrow();
|
package/src/resizable_buffer.h
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
#define SRC_RESIZABLE_BUFFER_H_
|
|
3
3
|
|
|
4
4
|
#include <stdio.h>
|
|
5
|
+
|
|
6
|
+
#ifndef _WIN32
|
|
5
7
|
#include <unistd.h>
|
|
8
|
+
#endif
|
|
6
9
|
|
|
7
10
|
namespace node_sfml {
|
|
8
11
|
|
|
@@ -19,8 +22,13 @@ class ResizableBuffer {
|
|
|
19
22
|
inline ResizableBuffer()
|
|
20
23
|
: _buff(nullptr),
|
|
21
24
|
_length(0),
|
|
22
|
-
_byte_length(0)
|
|
23
|
-
|
|
25
|
+
_byte_length(0)
|
|
26
|
+
#ifndef _WIN32
|
|
27
|
+
,
|
|
28
|
+
_page_size(getpagesize())
|
|
29
|
+
#endif
|
|
30
|
+
{
|
|
31
|
+
}
|
|
24
32
|
|
|
25
33
|
explicit inline ResizableBuffer(size_t length) : ResizableBuffer() {
|
|
26
34
|
this->Realloc(length);
|
|
@@ -44,12 +52,16 @@ class ResizableBuffer {
|
|
|
44
52
|
_byte_length = _length * sizeof(T);
|
|
45
53
|
if (!_length) return;
|
|
46
54
|
|
|
55
|
+
#ifndef _WIN32
|
|
47
56
|
if (_byte_length >= _page_size) {
|
|
48
57
|
posix_memalign(
|
|
49
58
|
reinterpret_cast<void**>(&_buff), _page_size, _byte_length);
|
|
50
59
|
} else {
|
|
51
60
|
_buff = static_cast<T*>(valloc(_byte_length));
|
|
52
61
|
}
|
|
62
|
+
#else
|
|
63
|
+
_buff = static_cast<T*>(malloc(_byte_length));
|
|
64
|
+
#endif
|
|
53
65
|
|
|
54
66
|
memset(_buff, 0, _byte_length);
|
|
55
67
|
}
|
|
@@ -80,7 +92,10 @@ class ResizableBuffer {
|
|
|
80
92
|
T* _buff;
|
|
81
93
|
size_t _length;
|
|
82
94
|
size_t _byte_length;
|
|
95
|
+
|
|
96
|
+
#ifndef _WIN32
|
|
83
97
|
size_t _page_size;
|
|
98
|
+
#endif
|
|
84
99
|
};
|
|
85
100
|
|
|
86
101
|
} // namespace node_sfml
|
package/src/texture.cc
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#include "texture.h"
|
|
2
2
|
#include "image.h"
|
|
3
3
|
#include "rect.h"
|
|
4
|
-
#include "vector2.h"
|
|
4
|
+
#include "vector2-inl.h"
|
|
5
5
|
#include "workers/load_from_file_worker.h"
|
|
6
6
|
|
|
7
7
|
namespace node_sfml {
|
|
@@ -30,6 +30,7 @@ NAN_MODULE_INIT(Texture::Init) {
|
|
|
30
30
|
Nan::SetPrototypeMethod(tpl, "getSize", GetSize);
|
|
31
31
|
|
|
32
32
|
Nan::SetPrototypeMethod(tpl, "updateByImage", UpdateByImage);
|
|
33
|
+
Nan::SetPrototypeMethod(tpl, "updateByPixels", UpdateByPixels);
|
|
33
34
|
Nan::SetPrototypeMethod(tpl, "updateByTexture", UpdateByTexture);
|
|
34
35
|
|
|
35
36
|
Nan::SetPrototypeMethod(tpl, "setSmooth", SetSmooth);
|
|
@@ -140,7 +141,7 @@ NAN_METHOD(Texture::GetSize) {
|
|
|
140
141
|
sf::Vector2u size = texture->_texture.getSize();
|
|
141
142
|
|
|
142
143
|
Nan::TryCatch try_catch;
|
|
143
|
-
MaybeLocal<
|
|
144
|
+
MaybeLocal<Value> size_obj =
|
|
144
145
|
vector2::Vector2<sf::Uint32, sf::Uint32, v8::Uint32>::NewRealInstance(
|
|
145
146
|
info.GetIsolate(), size);
|
|
146
147
|
if (size_obj.IsEmpty()) {
|
|
@@ -175,6 +176,49 @@ NAN_METHOD(Texture::UpdateByTexture) {
|
|
|
175
176
|
texture->_texture.update(another->_texture, x, y);
|
|
176
177
|
}
|
|
177
178
|
|
|
179
|
+
NAN_METHOD(Texture::UpdateByPixels) {
|
|
180
|
+
Texture* texture = Nan::ObjectWrap::Unwrap<Texture>(info.Holder());
|
|
181
|
+
if (texture->_loading) {
|
|
182
|
+
Nan::ThrowError("Texture is loading.");
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
sf::Vector2u texture_size = texture->_texture.getSize();
|
|
187
|
+
size_t width = texture_size.x;
|
|
188
|
+
size_t height = texture_size.y;
|
|
189
|
+
size_t x = 0;
|
|
190
|
+
size_t y = 0;
|
|
191
|
+
if (!info[1]->IsUndefined()) {
|
|
192
|
+
width = Nan::To<sf::Uint32>(info[0]).FromJust();
|
|
193
|
+
}
|
|
194
|
+
if (!info[2]->IsUndefined()) {
|
|
195
|
+
height = Nan::To<sf::Uint32>(info[1]).FromJust();
|
|
196
|
+
}
|
|
197
|
+
if (!info[3]->IsUndefined()) {
|
|
198
|
+
x = Nan::To<sf::Uint32>(info[2]).FromJust();
|
|
199
|
+
}
|
|
200
|
+
if (!info[4]->IsUndefined()) {
|
|
201
|
+
y = Nan::To<sf::Uint32>(info[3]).FromJust();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
Local<Object> buffer_object = info[0].As<Object>();
|
|
205
|
+
size_t len = node::Buffer::Length(buffer_object);
|
|
206
|
+
|
|
207
|
+
if (len < ((width * height) << 2)) {
|
|
208
|
+
Nan::ThrowError("Buffer's length is too short.");
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (width + x > texture_size.x || height + y > texture_size.y) {
|
|
213
|
+
Nan::ThrowError("width / height / x / y out of range.");
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
sf::Uint8* buff =
|
|
218
|
+
reinterpret_cast<sf::Uint8*>(node::Buffer::Data(buffer_object));
|
|
219
|
+
texture->_texture.update(buff, width, height, x, y);
|
|
220
|
+
}
|
|
221
|
+
|
|
178
222
|
NAN_METHOD(Texture::UpdateByImage) {
|
|
179
223
|
Texture* texture = Nan::ObjectWrap::Unwrap<Texture>(info.Holder());
|
|
180
224
|
if (texture->_loading) {
|
package/src/texture.h
CHANGED
|
@@ -27,6 +27,7 @@ class Texture : public Nan::ObjectWrap, public BaseClassWithLoading {
|
|
|
27
27
|
// Update family
|
|
28
28
|
static NAN_METHOD(UpdateByImage);
|
|
29
29
|
static NAN_METHOD(UpdateByTexture);
|
|
30
|
+
static NAN_METHOD(UpdateByPixels);
|
|
30
31
|
|
|
31
32
|
inline const sf::Texture& texture() const { return _texture; }
|
|
32
33
|
inline sf::Texture& mutable_texture() { return _texture; }
|
package/src/utils-inl.h
CHANGED
|
@@ -34,11 +34,11 @@ inline void V8StringToSFString(v8::Isolate* isolate,
|
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
ResizableBuffer<char> utf8_string(string_utf8_length);
|
|
37
|
+
ResizableBuffer<char> utf8_string(string_utf8_length + 1);
|
|
38
38
|
int wrote = v8_string->WriteUtf8(isolate, *utf8_string);
|
|
39
39
|
|
|
40
40
|
// TODO(XadillaX): Real length?
|
|
41
|
-
ResizableBuffer<wchar_t> wstr(wrote << 1);
|
|
41
|
+
ResizableBuffer<wchar_t> wstr((wrote << 1) + 1);
|
|
42
42
|
sf::Utf<8>::toWide(*utf8_string, *utf8_string + wrote, *wstr);
|
|
43
43
|
sf_string = sf::String(*wstr);
|
|
44
44
|
}
|
package/src/vector2-inl.h
CHANGED
|
@@ -13,7 +13,7 @@ NAN_METHOD(Subtract) {
|
|
|
13
13
|
T* right = Nan::ObjectWrap::Unwrap<T>(info[1].As<v8::Object>());
|
|
14
14
|
|
|
15
15
|
Nan::TryCatch try_catch;
|
|
16
|
-
v8::MaybeLocal<v8::
|
|
16
|
+
v8::MaybeLocal<v8::Value> ret =
|
|
17
17
|
T::NewRealInstance(info.GetIsolate(), left->vector2() - right->vector2());
|
|
18
18
|
if (ret.IsEmpty()) {
|
|
19
19
|
try_catch.ReThrow();
|
|
@@ -29,7 +29,7 @@ NAN_METHOD(Add) {
|
|
|
29
29
|
T* right = Nan::ObjectWrap::Unwrap<T>(info[1].As<v8::Object>());
|
|
30
30
|
|
|
31
31
|
Nan::TryCatch try_catch;
|
|
32
|
-
v8::MaybeLocal<v8::
|
|
32
|
+
v8::MaybeLocal<v8::Value> ret =
|
|
33
33
|
T::NewRealInstance(info.GetIsolate(), left->vector2() + right->vector2());
|
|
34
34
|
if (ret.IsEmpty()) {
|
|
35
35
|
try_catch.ReThrow();
|
|
@@ -45,7 +45,7 @@ NAN_METHOD(Multiply) {
|
|
|
45
45
|
T right = static_cast<T>(Nan::To<NAN_T>(info[1]).FromJust());
|
|
46
46
|
|
|
47
47
|
Nan::TryCatch try_catch;
|
|
48
|
-
v8::MaybeLocal<v8::
|
|
48
|
+
v8::MaybeLocal<v8::Value> ret =
|
|
49
49
|
Self::NewRealInstance(info.GetIsolate(), left->vector2() * right);
|
|
50
50
|
if (ret.IsEmpty()) {
|
|
51
51
|
try_catch.ReThrow();
|
|
@@ -61,7 +61,7 @@ NAN_METHOD(Div) {
|
|
|
61
61
|
T right = static_cast<T>(Nan::To<NAN_T>(info[1]).FromJust());
|
|
62
62
|
|
|
63
63
|
Nan::TryCatch try_catch;
|
|
64
|
-
v8::MaybeLocal<v8::
|
|
64
|
+
v8::MaybeLocal<v8::Value> ret =
|
|
65
65
|
Self::NewRealInstance(info.GetIsolate(), left->vector2() / right);
|
|
66
66
|
if (ret.IsEmpty()) {
|
|
67
67
|
try_catch.ReThrow();
|
|
@@ -88,27 +88,27 @@ NAN_METHOD(NotEquals) {
|
|
|
88
88
|
#define TEMPLATE_INNER T, NAN_T, V8_T
|
|
89
89
|
|
|
90
90
|
template <typename T, typename NAN_T, class V8_T>
|
|
91
|
-
v8::MaybeLocal<v8::
|
|
91
|
+
v8::MaybeLocal<v8::Value> Vector2<TEMPLATE_INNER>::NewRealInstance(
|
|
92
92
|
v8::Isolate* isolate, size_t argc, v8::Local<v8::Value>* argv) {
|
|
93
93
|
v8::Local<v8::Function> cons = real_constructor.Get(isolate);
|
|
94
94
|
if (cons.IsEmpty()) {
|
|
95
95
|
Nan::ThrowError("`real_constructor` is not set.");
|
|
96
|
-
return v8::MaybeLocal<v8::
|
|
96
|
+
return v8::MaybeLocal<v8::Value>();
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
v8::MaybeLocal<v8::
|
|
100
|
-
|
|
99
|
+
v8::MaybeLocal<v8::Value> maybe_ret = Nan::Call(cons, cons, argc, argv);
|
|
100
|
+
cons->NewInstance(isolate->GetCurrentContext(), argc, argv);
|
|
101
101
|
return maybe_ret;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
template <typename T, typename NAN_T, class V8_T>
|
|
105
|
-
v8::MaybeLocal<v8::
|
|
105
|
+
v8::MaybeLocal<v8::Value> Vector2<TEMPLATE_INNER>::NewRealInstance(
|
|
106
106
|
v8::Isolate* isolate, const sf::Vector2<T>& src) {
|
|
107
|
-
v8::MaybeLocal<v8::
|
|
107
|
+
v8::MaybeLocal<v8::Value> maybe =
|
|
108
108
|
Vector2<TEMPLATE_INNER>::NewRealInstance(isolate);
|
|
109
109
|
if (maybe.IsEmpty()) return maybe;
|
|
110
110
|
|
|
111
|
-
v8::Local<v8::Object> vec = maybe.ToLocalChecked();
|
|
111
|
+
v8::Local<v8::Object> vec = maybe.ToLocalChecked().As<v8::Object>();
|
|
112
112
|
Vector2<TEMPLATE_INNER>* vec_wrapper =
|
|
113
113
|
Nan::ObjectWrap::Unwrap<Vector2<TEMPLATE_INNER>>(vec);
|
|
114
114
|
sf::Vector2<T>& v = vec_wrapper->vector2();
|
|
@@ -150,7 +150,7 @@ NAN_METHOD(Vector2<TEMPLATE_INNER>::New) {
|
|
|
150
150
|
template <typename T, typename NAN_T, class V8_T> \
|
|
151
151
|
NAN_METHOD(Vector2<TEMPLATE_INNER>::name##Getter) { \
|
|
152
152
|
Vector2<T, NAN_T, V8_T>* vec = \
|
|
153
|
-
Nan::ObjectWrap::Unwrap<Vector2<T, NAN_T, V8_T>>(info.
|
|
153
|
+
Nan::ObjectWrap::Unwrap<Vector2<T, NAN_T, V8_T>>(info.This()); \
|
|
154
154
|
v8::Local<V8_T> ret = \
|
|
155
155
|
Nan::New<V8_T>(static_cast<NAN_T>(vec->vector2().lowercase)); \
|
|
156
156
|
info.GetReturnValue().Set(ret); \
|
|
@@ -165,7 +165,7 @@ NAN_METHOD(Vector2<TEMPLATE_INNER>::New) {
|
|
|
165
165
|
\
|
|
166
166
|
NAN_T val = maybe_value.ToLocalChecked()->Value(); \
|
|
167
167
|
Vector2<T, NAN_T, V8_T>* vec = \
|
|
168
|
-
Nan::ObjectWrap::Unwrap<Vector2<T, NAN_T, V8_T>>(info.
|
|
168
|
+
Nan::ObjectWrap::Unwrap<Vector2<T, NAN_T, V8_T>>(info.This()); \
|
|
169
169
|
vec->vector2().lowercase = static_cast<T>(val); \
|
|
170
170
|
}
|
|
171
171
|
|
package/src/vector2.h
CHANGED
|
@@ -74,12 +74,12 @@ class Vector2 : public Nan::ObjectWrap {
|
|
|
74
74
|
Nan::SetMethod(func, "notEquals", NotEquals<Self>);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
static v8::MaybeLocal<v8::
|
|
77
|
+
static v8::MaybeLocal<v8::Value> NewRealInstance(
|
|
78
78
|
v8::Isolate* isolate,
|
|
79
79
|
size_t argc = 0,
|
|
80
80
|
v8::Local<v8::Value>* argv = nullptr);
|
|
81
|
-
static v8::MaybeLocal<v8::
|
|
82
|
-
|
|
81
|
+
static v8::MaybeLocal<v8::Value> NewRealInstance(v8::Isolate* isolate,
|
|
82
|
+
const sf::Vector2<T>& src);
|
|
83
83
|
|
|
84
84
|
protected:
|
|
85
85
|
static NAN_METHOD(New);
|
package/src/vertex.cc
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
namespace node_sfml {
|
|
6
6
|
namespace vertex {
|
|
7
7
|
|
|
8
|
+
using v8::BigInt;
|
|
8
9
|
using v8::Function;
|
|
9
10
|
using v8::FunctionTemplate;
|
|
10
11
|
using v8::Isolate;
|
|
@@ -44,24 +45,23 @@ NAN_MODULE_INIT(Vertex::Init) {
|
|
|
44
45
|
Nan::Set(target, name, func);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
|
-
MaybeLocal<
|
|
48
|
-
|
|
48
|
+
MaybeLocal<Value> Vertex::NewRealInstance(v8::Isolate* isolate,
|
|
49
|
+
const sf::Vertex& vertex) {
|
|
49
50
|
Nan::HandleScope scope;
|
|
50
51
|
|
|
51
52
|
v8::Local<v8::Function> cons = real_constructor.Get(isolate);
|
|
52
53
|
if (cons.IsEmpty()) {
|
|
53
54
|
Nan::ThrowError("`real_constructor` is not set.");
|
|
54
|
-
return v8::MaybeLocal<v8::
|
|
55
|
+
return v8::MaybeLocal<v8::Value>();
|
|
55
56
|
}
|
|
56
57
|
|
|
57
|
-
sf::
|
|
58
|
+
sf::Uint64 temp = reinterpret_cast<sf::Uint64>(&vertex);
|
|
58
59
|
Local<Value> argv[] = {
|
|
59
60
|
Nan::New(vertex::Vertex::new_from_pointer_magic_number),
|
|
60
|
-
|
|
61
|
+
BigInt::NewFromUnsigned(isolate, temp),
|
|
61
62
|
};
|
|
62
63
|
|
|
63
|
-
v8::MaybeLocal<v8::
|
|
64
|
-
cons->NewInstance(isolate->GetCurrentContext(), 2, argv);
|
|
64
|
+
v8::MaybeLocal<v8::Value> maybe_ret = Nan::Call(cons, cons, 2, argv);
|
|
65
65
|
return maybe_ret;
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -69,7 +69,8 @@ NAN_METHOD(Vertex::New) {
|
|
|
69
69
|
if (info[0]->IsNumber()) {
|
|
70
70
|
sf::Int32 magic_number = Nan::To<sf::Int32>(info[0]).FromJust();
|
|
71
71
|
if (magic_number == new_from_pointer_magic_number) {
|
|
72
|
-
|
|
72
|
+
Local<BigInt> big_int = info[1].As<BigInt>();
|
|
73
|
+
sf::Uint64 ptr = big_int->Uint64Value();
|
|
73
74
|
sf::Vertex* vertex = reinterpret_cast<sf::Vertex*>(ptr);
|
|
74
75
|
Vertex* ret = new Vertex(vertex);
|
|
75
76
|
ret->Wrap(info.This());
|
|
@@ -97,7 +98,7 @@ NAN_METHOD(Vertex::SyncFromJS) {
|
|
|
97
98
|
|
|
98
99
|
#define V(name, lowercase, snake_case, unwrap_type, inner_func) \
|
|
99
100
|
NAN_METHOD(Vertex::name##Getter) { \
|
|
100
|
-
Vertex* vertex = Nan::ObjectWrap::Unwrap<Vertex>(info.
|
|
101
|
+
Vertex* vertex = Nan::ObjectWrap::Unwrap<Vertex>(info.This()); \
|
|
101
102
|
info.GetReturnValue().Set(Nan::New<Object>(vertex->_##lowercase##_wrap)); \
|
|
102
103
|
vertex->_vtx->snake_case = *vertex->_##lowercase; \
|
|
103
104
|
} \
|
|
@@ -106,7 +107,7 @@ NAN_METHOD(Vertex::SyncFromJS) {
|
|
|
106
107
|
Local<Object> obj = info[0].As<Object>(); \
|
|
107
108
|
unwrap_type* obj_unwrapped = Nan::ObjectWrap::Unwrap<unwrap_type>(obj); \
|
|
108
109
|
\
|
|
109
|
-
Vertex* vertex = Nan::ObjectWrap::Unwrap<Vertex>(info.
|
|
110
|
+
Vertex* vertex = Nan::ObjectWrap::Unwrap<Vertex>(info.This()); \
|
|
110
111
|
vertex->_##lowercase = &obj_unwrapped->inner_func(); \
|
|
111
112
|
vertex->_##lowercase##_wrap.Reset(obj); \
|
|
112
113
|
vertex->SyncFromJS(k##name); \
|
|
@@ -119,21 +120,40 @@ Vertex::Vertex(sf::Vertex* src) {
|
|
|
119
120
|
_vtx =
|
|
120
121
|
std::make_unique<sf::Vertex>(src->position, src->color, src->texCoords);
|
|
121
122
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
MaybeLocal<Value> maybe_temp;
|
|
124
|
+
Local<Object> temp;
|
|
125
|
+
|
|
126
|
+
Nan::TryCatch try_catch;
|
|
127
|
+
maybe_temp =
|
|
128
|
+
vector2::Vector2F::NewRealInstance(Isolate::GetCurrent(), _vtx->position);
|
|
129
|
+
if (maybe_temp.IsEmpty()) {
|
|
130
|
+
try_catch.ReThrow();
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
temp = maybe_temp.ToLocalChecked().As<Object>();
|
|
125
135
|
_position_wrap.Reset(temp);
|
|
126
136
|
_position = &Nan::ObjectWrap::Unwrap<vector2::Vector2F>(temp)->vector2();
|
|
127
137
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
138
|
+
MaybeLocal<Object> maybe_color = color::Color::NewRealColorInstance(
|
|
139
|
+
Isolate::GetCurrent(), _vtx->color.toInteger());
|
|
140
|
+
if (maybe_color.IsEmpty()) {
|
|
141
|
+
try_catch.ReThrow();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
temp = maybe_color.ToLocalChecked();
|
|
131
146
|
_color_wrap.Reset(temp);
|
|
132
147
|
_color = &Nan::ObjectWrap::Unwrap<color::Color>(temp)->color();
|
|
133
148
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
149
|
+
maybe_temp = vector2::Vector2F::NewRealInstance(Isolate::GetCurrent(),
|
|
150
|
+
_vtx->texCoords);
|
|
151
|
+
if (maybe_temp.IsEmpty()) {
|
|
152
|
+
try_catch.ReThrow();
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
temp = maybe_temp.ToLocalChecked().As<Object>();
|
|
137
157
|
_tex_coords_wrap.Reset(temp);
|
|
138
158
|
_tex_coords = &Nan::ObjectWrap::Unwrap<vector2::Vector2F>(temp)->vector2();
|
|
139
159
|
}
|
|
@@ -171,21 +191,39 @@ Vertex::Vertex(Local<Value> position,
|
|
|
171
191
|
}
|
|
172
192
|
}
|
|
173
193
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
194
|
+
Nan::TryCatch try_catch;
|
|
195
|
+
MaybeLocal<Value> maybe_temp;
|
|
196
|
+
Local<Object> temp;
|
|
197
|
+
maybe_temp =
|
|
198
|
+
vector2::Vector2F::NewRealInstance(Isolate::GetCurrent(), _vtx->position);
|
|
199
|
+
if (maybe_temp.IsEmpty()) {
|
|
200
|
+
try_catch.ReThrow();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
temp = maybe_temp.ToLocalChecked().As<Object>();
|
|
177
205
|
_position_wrap.Reset(temp);
|
|
178
206
|
_position = &Nan::ObjectWrap::Unwrap<vector2::Vector2F>(temp)->vector2();
|
|
179
207
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
208
|
+
MaybeLocal<Object> maybe_color = color::Color::NewRealColorInstance(
|
|
209
|
+
Isolate::GetCurrent(), _vtx->color.toInteger());
|
|
210
|
+
if (maybe_color.IsEmpty()) {
|
|
211
|
+
try_catch.ReThrow();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
temp = maybe_color.ToLocalChecked().As<Object>();
|
|
183
216
|
_color_wrap.Reset(temp);
|
|
184
217
|
_color = &Nan::ObjectWrap::Unwrap<color::Color>(temp)->color();
|
|
185
218
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
219
|
+
maybe_temp = vector2::Vector2F::NewRealInstance(Isolate::GetCurrent(),
|
|
220
|
+
_vtx->texCoords);
|
|
221
|
+
if (maybe_temp.IsEmpty()) {
|
|
222
|
+
try_catch.ReThrow();
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
temp = maybe_temp.ToLocalChecked().As<Object>();
|
|
189
227
|
_tex_coords_wrap.Reset(temp);
|
|
190
228
|
_tex_coords = &Nan::ObjectWrap::Unwrap<vector2::Vector2F>(temp)->vector2();
|
|
191
229
|
}
|
package/src/vertex.h
CHANGED
|
@@ -25,8 +25,8 @@ class Vertex : public Nan::ObjectWrap {
|
|
|
25
25
|
kAll,
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
static v8::MaybeLocal<v8::
|
|
29
|
-
|
|
28
|
+
static v8::MaybeLocal<v8::Value> NewRealInstance(v8::Isolate* isolate,
|
|
29
|
+
const sf::Vertex& vertex);
|
|
30
30
|
|
|
31
31
|
public:
|
|
32
32
|
static NAN_MODULE_INIT(Init);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>FLAC</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>org.sfml-dev.FLAC</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundlePackageType</key>
|
|
14
|
+
<string>FMWK</string>
|
|
15
|
+
<key>CFBundleSignature</key>
|
|
16
|
+
<string>????</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleSupportedPlatforms</key>
|
|
20
|
+
<array><string>MacOSX</string></array>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>FLAC</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>org.sfml-dev.FLAC</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundlePackageType</key>
|
|
14
|
+
<string>FMWK</string>
|
|
15
|
+
<key>CFBundleSignature</key>
|
|
16
|
+
<string>????</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleSupportedPlatforms</key>
|
|
20
|
+
<array><string>MacOSX</string></array>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>OpenAL</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>org.sfml-dev.OpenAL</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundlePackageType</key>
|
|
14
|
+
<string>FMWK</string>
|
|
15
|
+
<key>CFBundleSignature</key>
|
|
16
|
+
<string>????</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleSupportedPlatforms</key>
|
|
20
|
+
<array><string>MacOSX</string></array>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>English</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>OpenAL</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>org.sfml-dev.OpenAL</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundlePackageType</key>
|
|
14
|
+
<string>FMWK</string>
|
|
15
|
+
<key>CFBundleSignature</key>
|
|
16
|
+
<string>????</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1.0</string>
|
|
19
|
+
<key>CFBundleSupportedPlatforms</key>
|
|
20
|
+
<array><string>MacOSX</string></array>
|
|
21
|
+
</dict>
|
|
22
|
+
</plist>
|