sfml.js 0.0.1-preview.21 → 0.0.1-preview.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfml.js",
3
- "version": "0.0.1-preview.21",
3
+ "version": "0.0.1-preview.22",
4
4
  "description": "SFML's Node.js binding.",
5
5
  "main": "lib/sfml.js",
6
6
  "scripts": {
@@ -46,6 +46,5 @@
46
46
  "third_party/sfml/platform/macOS/lib/libsfml-graphics.2.5.1.dylib",
47
47
  "third_party/sfml/platform/macOS/Frameworks/**/*",
48
48
  "tools/*"
49
- ],
50
- "__npminstall_done": false
49
+ ]
51
50
  }
package/src/clock.h CHANGED
@@ -2,7 +2,7 @@
2
2
  #define SRC_CLOCK_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+ #include <SFML/System/Clock.hpp>
6
6
 
7
7
  namespace node_sfml {
8
8
  namespace clock {
package/src/color.h CHANGED
@@ -2,7 +2,7 @@
2
2
  #define SRC_COLOR_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+ #include <SFML/Graphics/Color.hpp>
6
6
 
7
7
  namespace node_sfml {
8
8
  namespace color {
@@ -1,3 +1,5 @@
1
+ #include <SFML/Graphics/CircleShape.hpp>
2
+
1
3
  #include "circle_shape.h"
2
4
  #include "drawable-inl.h"
3
5
 
@@ -1,5 +1,7 @@
1
- #include "convex_shape.h"
1
+ #include <SFML/Graphics/ConvexShape.hpp>
2
+
2
3
  #include "../vector2.h"
4
+ #include "convex_shape.h"
3
5
  #include "drawable-inl.h"
4
6
 
5
7
  namespace node_sfml {
@@ -2,7 +2,7 @@
2
2
  #define SRC_DRAWABLE_DRAWABLE_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+ #include <SFML/Graphics/Drawable.hpp>
6
6
 
7
7
  namespace node_sfml {
8
8
  namespace drawable {
@@ -2,14 +2,14 @@
2
2
  #define SRC_DRAWABLE_PACKAGE_PLUGIN_INL_H_
3
3
 
4
4
  #include "../color.h"
5
- #include "../rect.h"
5
+ #include "../rect-inl.h"
6
6
  #include "../texture.h"
7
7
  #include "drawable.h"
8
8
  #include "package_plugin.h"
9
9
 
10
10
  namespace node_sfml {
11
11
  namespace drawable {
12
- namespace pacekage_plugin_texture {
12
+ namespace package_plugin_texture {
13
13
 
14
14
  template <class T, class RAW_T>
15
15
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl) {
@@ -60,9 +60,9 @@ inline static NAN_METHOD(GetTextureRect) {
60
60
  rect::IntRect::NewRealInstance(info.GetIsolate(), argc, argv);
61
61
  }
62
62
 
63
- } // namespace pacekage_plugin_texture
63
+ } // namespace package_plugin_texture
64
64
 
65
- namespace pacekage_plugin_bounds {
65
+ namespace package_plugin_bounds {
66
66
 
67
67
  template <class T>
68
68
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl) {
@@ -102,9 +102,9 @@ GET_BOUNDS_IMPL(Global);
102
102
 
103
103
  #undef GET_BOUNDS_IMPL
104
104
 
105
- } // namespace pacekage_plugin_bounds
105
+ } // namespace package_plugin_bounds
106
106
 
107
- namespace pacekage_plugin_color_and_thickness {
107
+ namespace package_plugin_color_and_thickness {
108
108
 
109
109
  template <class T>
110
110
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl) {
@@ -174,7 +174,7 @@ inline NAN_METHOD(GetOutlineThickness) {
174
174
  info.GetReturnValue().Set(static_cast<double>(thickness));
175
175
  }
176
176
 
177
- } // namespace pacekage_plugin_color_and_thickness
177
+ } // namespace package_plugin_color_and_thickness
178
178
  } // namespace drawable
179
179
  } // namespace node_sfml
180
180
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  namespace node_sfml {
7
7
  namespace drawable {
8
- namespace pacekage_plugin_texture {
8
+ namespace package_plugin_texture {
9
9
 
10
10
  template <class T, class RAW_T>
11
11
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl);
@@ -19,9 +19,9 @@ inline static NAN_METHOD(GetTexture);
19
19
  template <class T>
20
20
  inline static NAN_METHOD(GetTextureRect);
21
21
 
22
- } // namespace pacekage_plugin_texture
22
+ } // namespace package_plugin_texture
23
23
 
24
- namespace pacekage_plugin_bounds {
24
+ namespace package_plugin_bounds {
25
25
 
26
26
  template <class T>
27
27
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl);
@@ -31,9 +31,9 @@ inline static NAN_METHOD(GetLocalBounds);
31
31
  template <class T>
32
32
  inline static NAN_METHOD(GetGlobalBounds);
33
33
 
34
- } // namespace pacekage_plugin_bounds
34
+ } // namespace package_plugin_bounds
35
35
 
36
- namespace pacekage_plugin_color_and_thickness {
36
+ namespace package_plugin_color_and_thickness {
37
37
 
38
38
  template <class T>
39
39
  inline void SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl);
@@ -53,7 +53,7 @@ inline static NAN_METHOD(SetOutlineThickness);
53
53
  template <class T>
54
54
  inline static NAN_METHOD(GetOutlineThickness);
55
55
 
56
- } // namespace pacekage_plugin_color_and_thickness
56
+ } // namespace package_plugin_color_and_thickness
57
57
  } // namespace drawable
58
58
  } // namespace node_sfml
59
59
 
@@ -1,6 +1,8 @@
1
- #include "rectangle_shape.h"
1
+ #include <SFML/Graphics/RectangleShape.hpp>
2
+
2
3
  #include "../vector2.h"
3
4
  #include "drawable-inl.h"
5
+ #include "rectangle_shape.h"
4
6
 
5
7
  namespace node_sfml {
6
8
  namespace drawable {
@@ -18,9 +18,9 @@ void Shape::SetPrototype(v8::Local<v8::FunctionTemplate>* _tpl) {
18
18
  Nan::SetPrototypeMethod(tpl, "getPoint", GetPoint);
19
19
 
20
20
  transformable::SetPrototype<Shape>(_tpl);
21
- pacekage_plugin_bounds::SetPrototype<sf::Shape>(_tpl);
22
- pacekage_plugin_color_and_thickness::SetPrototype<sf::Shape>(_tpl);
23
- pacekage_plugin_texture::SetPrototype<Shape, sf::Shape>(_tpl);
21
+ package_plugin_bounds::SetPrototype<sf::Shape>(_tpl);
22
+ package_plugin_color_and_thickness::SetPrototype<sf::Shape>(_tpl);
23
+ package_plugin_texture::SetPrototype<Shape, sf::Shape>(_tpl);
24
24
  }
25
25
 
26
26
  NAN_METHOD(Shape::GetPointCount) {
@@ -1,7 +1,9 @@
1
1
  #ifndef SRC_DRAWABLE_SHAPE_H_
2
2
  #define SRC_DRAWABLE_SHAPE_H_
3
3
 
4
+ #include <SFML/Graphics/Shape.hpp>
4
5
  #include <SFML/Graphics/Transformable.hpp>
6
+
5
7
  #include "drawable.h"
6
8
 
7
9
  namespace node_sfml {
@@ -1,6 +1,7 @@
1
1
  #include "sprite.h"
2
2
  #include "../color.h"
3
3
  #include "../plugins/transformable_plugin-inl.h"
4
+ #include "../rect-inl.h"
4
5
  #include "drawable-inl.h"
5
6
  #include "package_plugin-inl.h"
6
7
 
@@ -22,8 +23,8 @@ NAN_MODULE_INIT(Sprite::Init) {
22
23
 
23
24
  void Sprite::SetPrototype(Local<FunctionTemplate>* _tpl) {
24
25
  transformable::SetPrototype<Sprite>(_tpl);
25
- pacekage_plugin_bounds::SetPrototype<sf::Sprite>(_tpl);
26
- pacekage_plugin_texture::SetPrototype<Sprite, sf::Sprite>(_tpl);
26
+ package_plugin_bounds::SetPrototype<sf::Sprite>(_tpl);
27
+ package_plugin_texture::SetPrototype<Sprite, sf::Sprite>(_tpl);
27
28
 
28
29
  v8::Local<v8::FunctionTemplate>& tpl = *_tpl;
29
30
  Nan::SetPrototypeMethod(tpl, "setColor", SetColor);
@@ -50,7 +50,8 @@ NAN_MODULE_INIT(Text::Init) {
50
50
 
51
51
  void Text::SetPrototype(Local<FunctionTemplate>* _tpl) {
52
52
  transformable::SetPrototype<Text>(_tpl);
53
- pacekage_plugin_bounds::SetPrototype<sf::Text>(_tpl);
53
+ package_plugin_bounds::SetPrototype<sf::Text>(_tpl);
54
+ package_plugin_color_and_thickness::SetPrototype<sf::Text>(_tpl);
54
55
 
55
56
  v8::Local<v8::FunctionTemplate>& tpl = *_tpl;
56
57
  Nan::SetPrototypeMethod(tpl, "setFont", SetFont);
@@ -1,6 +1,9 @@
1
1
  #ifndef SRC_DRAWABLE_TEXT_H_
2
2
  #define SRC_DRAWABLE_TEXT_H_
3
3
 
4
+ #include <SFML/Graphics/Text.hpp>
5
+ #include <SFML/System/String.hpp>
6
+
4
7
  #include "drawable.h"
5
8
 
6
9
  namespace node_sfml {
package/src/font.h CHANGED
@@ -2,7 +2,7 @@
2
2
  #define SRC_FONT_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+ #include <SFML/Graphics/Font.hpp>
6
6
 
7
7
  namespace node_sfml {
8
8
  namespace font {
package/src/keyboard.h CHANGED
@@ -2,7 +2,11 @@
2
2
  #define SRC_KEYBOARD_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <map>
7
+ #include <string>
8
+
9
+ #include <SFML/Window/Keyboard.hpp>
6
10
 
7
11
  namespace node_sfml {
8
12
  namespace gen {
package/src/mouse.h CHANGED
@@ -2,7 +2,11 @@
2
2
  #define SRC_MOUSE_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <map>
7
+ #include <string>
8
+
9
+ #include <SFML/Window/Mouse.hpp>
6
10
 
7
11
  namespace node_sfml {
8
12
  namespace gen {
@@ -1,8 +1,8 @@
1
- #ifndef SRC_TRANSFORMABLE_PLUGIN_INL_H_
2
- #define SRC_TRANSFORMABLE_PLUGIN_INL_H_
1
+ #ifndef SRC_PLUGINS_TRANSFORMABLE_PLUGIN_INL_H_
2
+ #define SRC_PLUGINS_TRANSFORMABLE_PLUGIN_INL_H_
3
3
 
4
- #include "transformable_plugin.h"
5
4
  #include "../vector2.h"
5
+ #include "transformable_plugin.h"
6
6
 
7
7
  namespace node_sfml {
8
8
  namespace transformable {
@@ -118,4 +118,4 @@ VECTOR2F_GETTER_SETTER(Origin);
118
118
  } // namespace transformable
119
119
  } // namespace node_sfml
120
120
 
121
- #endif // SRC_TRANSFORMABLE_PLUGIN_INL_H_
121
+ #endif // SRC_PLUGINS_TRANSFORMABLE_PLUGIN_INL_H_
@@ -1,5 +1,5 @@
1
- #ifndef SRC_TRANSFORMABLE_PLUGIN_H_
2
- #define SRC_TRANSFORMABLE_PLUGIN_H_
1
+ #ifndef SRC_PLUGINS_TRANSFORMABLE_PLUGIN_H_
2
+ #define SRC_PLUGINS_TRANSFORMABLE_PLUGIN_H_
3
3
 
4
4
  #include <nan.h>
5
5
 
@@ -39,4 +39,4 @@ inline static NAN_METHOD(Rotate);
39
39
  } // namespace transformable
40
40
  } // namespace node_sfml
41
41
 
42
- #endif // SRC_TRANSFORMABLE_PLUGIN_H_
42
+ #endif // SRC_PLUGINS_TRANSFORMABLE_PLUGIN_H_
package/src/poll_event.h CHANGED
@@ -2,7 +2,8 @@
2
2
  #define SRC_POLL_EVENT_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/Window/Event.hpp>
6
7
 
7
8
  namespace node_sfml {
8
9
  namespace poll_event {
package/src/rect.h CHANGED
@@ -2,6 +2,7 @@
2
2
  #define SRC_RECT_H_
3
3
 
4
4
  #include <nan.h>
5
+
5
6
  #include <SFML/Graphics.hpp>
6
7
 
7
8
  #include "vector2.h"
@@ -2,7 +2,9 @@
2
2
  #define SRC_RENDER_WINDOW_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/Graphics/RenderWindow.hpp>
7
+ #include <SFML/Window/Event.hpp>
6
8
 
7
9
  namespace node_sfml {
8
10
  namespace render_window {
package/src/texture.h CHANGED
@@ -2,7 +2,8 @@
2
2
  #define SRC_TEXTURE_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/Graphics/Texture.hpp>
6
7
 
7
8
  namespace node_sfml {
8
9
  namespace texture {
package/src/time.h CHANGED
@@ -2,7 +2,8 @@
2
2
  #define SRC_TIME_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/System/Time.hpp>
6
7
 
7
8
  namespace node_sfml {
8
9
  namespace time {
package/src/utils.h CHANGED
@@ -2,6 +2,7 @@
2
2
  #define SRC_UTILS_H_
3
3
 
4
4
  #include <nan.h>
5
+
5
6
  #include <SFML/System/String.hpp>
6
7
 
7
8
  namespace node_sfml {
package/src/vector2.h CHANGED
@@ -2,7 +2,9 @@
2
2
  #define SRC_VECTOR2_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/Config.hpp>
7
+ #include <SFML/System/Vector2.hpp>
6
8
 
7
9
  namespace node_sfml {
8
10
  namespace vector2 {
package/src/video_mode.h CHANGED
@@ -2,7 +2,8 @@
2
2
  #define SRC_VIDEO_MODE_H_
3
3
 
4
4
  #include <nan.h>
5
- #include <SFML/Graphics.hpp>
5
+
6
+ #include <SFML/Window/VideoMode.hpp>
6
7
 
7
8
  namespace node_sfml {
8
9
  namespace video_mode {