picrate 0.5.0-java → 0.6.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.mvn/wrapper/maven-wrapper.properties +1 -1
  3. data/CHANGELOG.md +3 -1
  4. data/README.md +1 -1
  5. data/Rakefile +8 -6
  6. data/docs/_editors/geany.md +5 -4
  7. data/docs/_editors/vim.md +6 -0
  8. data/docs/_includes/head.html +1 -0
  9. data/docs/_libraries/control_panel.md +2 -2
  10. data/docs/_libraries/gl_video.md +21 -0
  11. data/docs/_posts/2018-05-06-getting_started.md +10 -9
  12. data/docs/_posts/2018-05-06-install_jruby.md +19 -2
  13. data/docs/_posts/2018-06-26-auto_install_picrate.md +19 -4
  14. data/docs/_posts/2018-11-18-building-gem.md +18 -0
  15. data/docs/_posts/2018-11-27-getting_started_geany.md +38 -0
  16. data/docs/about.md +21 -10
  17. data/docs/assets/android-chrome-192x192.png +0 -0
  18. data/docs/assets/android-chrome-512x512.png +0 -0
  19. data/docs/assets/favicon.ico +0 -0
  20. data/docs/assets/geany.png +0 -0
  21. data/docs/assets/jwishy_picrate.png +0 -0
  22. data/docs/assets/picrate.svg +251 -0
  23. data/docs/index.html +8 -14
  24. data/lib/picrate/runner.rb +6 -2
  25. data/lib/picrate/version.rb +1 -1
  26. data/library/boids/boids.rb +10 -13
  27. data/mvnw +234 -0
  28. data/picrate.gemspec +2 -1
  29. data/pom.rb +1 -1
  30. data/pom.xml +1 -1
  31. data/src/main/java/japplemenubar/JAppleMenuBar.java +10 -2
  32. data/src/main/java/monkstone/ColorUtil.java +11 -1
  33. data/src/main/java/monkstone/MathToolModule.java +1 -0
  34. data/src/main/java/monkstone/PicrateLibrary.java +1 -0
  35. data/src/main/java/monkstone/fastmath/Deglut.java +1 -0
  36. data/src/main/java/monkstone/noise/SimplexNoise.java +3 -3
  37. data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
  38. data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
  39. data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +1 -1
  40. data/src/main/java/monkstone/slider/SimpleSlider.java +8 -8
  41. data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +1 -1
  42. data/src/main/java/monkstone/slider/Slider.java +3 -3
  43. data/src/main/java/monkstone/slider/SliderBar.java +1 -1
  44. data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
  45. data/src/main/java/monkstone/vecmath/AppRender.java +1 -0
  46. data/src/main/java/monkstone/vecmath/JRender.java +1 -0
  47. data/src/main/java/monkstone/vecmath/ShapeRender.java +1 -0
  48. data/src/main/java/monkstone/vecmath/vec2/Vec2.java +8 -0
  49. data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -0
  50. data/src/main/java/processing/awt/PGraphicsJava2D.java +85 -16
  51. data/src/main/java/processing/awt/PSurfaceAWT.java +1 -1
  52. data/src/main/java/processing/core/PApplet.java +18 -12
  53. data/src/main/java/processing/core/PShape.java +1182 -305
  54. data/src/main/java/processing/core/PStyle.java +1 -1
  55. data/src/main/java/processing/core/PSurface.java +1 -1
  56. data/src/main/java/processing/data/FloatDict.java +196 -54
  57. data/src/main/java/processing/data/FloatList.java +167 -54
  58. data/src/main/java/processing/data/IntDict.java +211 -56
  59. data/src/main/java/processing/data/IntList.java +185 -52
  60. data/src/main/java/processing/data/JSONArray.java +69 -20
  61. data/src/main/java/processing/data/JSONObject.java +53 -12
  62. data/src/main/java/processing/data/Sort.java +40 -10
  63. data/src/main/java/processing/data/StringDict.java +159 -49
  64. data/src/main/java/processing/data/StringList.java +147 -42
  65. data/src/main/java/processing/data/Table.java +778 -223
  66. data/src/main/java/processing/data/TableRow.java +26 -2
  67. data/src/main/java/processing/data/XML.java +190 -50
  68. data/src/main/java/processing/event/Event.java +93 -0
  69. data/src/main/java/processing/event/KeyEvent.java +55 -13
  70. data/src/main/java/processing/event/MouseEvent.java +77 -1
  71. data/src/main/java/processing/event/TouchEvent.java +14 -1
  72. data/src/main/java/processing/javafx/PGraphicsFX2D.java +8 -0
  73. data/src/main/java/processing/opengl/FrameBuffer.java +228 -66
  74. data/src/main/java/processing/opengl/LinePath.java +131 -27
  75. data/src/main/java/processing/opengl/LineStroker.java +30 -5
  76. data/src/main/java/processing/opengl/PGL.java +4066 -865
  77. data/src/main/java/processing/opengl/PGraphics2D.java +38 -10
  78. data/src/main/java/processing/opengl/PGraphics3D.java +38 -6
  79. data/src/main/java/processing/opengl/PGraphicsOpenGL.java +1980 -474
  80. data/src/main/java/processing/opengl/PJOGL.java +1460 -248
  81. data/src/main/java/processing/opengl/PShader.java +904 -217
  82. data/src/main/java/processing/opengl/PShapeOpenGL.java +1811 -487
  83. data/src/main/java/processing/opengl/PSurfaceJOGL.java +278 -71
  84. data/src/main/java/processing/opengl/Texture.java +610 -135
  85. data/src/main/java/processing/opengl/VertexBuffer.java +45 -9
  86. data/src/main/resources/icon/icon-1024.png +0 -0
  87. data/src/main/resources/icon/icon-128.png +0 -0
  88. data/src/main/resources/icon/icon-16.png +0 -0
  89. data/src/main/resources/icon/icon-256.png +0 -0
  90. data/src/main/resources/icon/icon-32.png +0 -0
  91. data/src/main/resources/icon/icon-48.png +0 -0
  92. data/src/main/resources/icon/icon-512.png +0 -0
  93. data/src/main/resources/icon/icon-64.png +0 -0
  94. data/vendors/Rakefile +1 -1
  95. metadata +13 -6
  96. data/docs/assets/circle_collisions.png +0 -0
  97. data/docs/favicon.ico +0 -0
@@ -27,18 +27,41 @@ package processing.opengl;
27
27
  import processing.opengl.PGraphicsOpenGL.GLResourceVertexBuffer;
28
28
 
29
29
  // TODO: need to combine with PGraphicsOpenGL.VertexAttribute
30
+
31
+ /**
32
+ *
33
+ * @author Martin Prout
34
+ */
30
35
  public class VertexBuffer {
31
- static protected final int INIT_VERTEX_BUFFER_SIZE = 256;
32
- static protected final int INIT_INDEX_BUFFER_SIZE = 512;
33
36
 
34
- public int glId;
37
+ /**
38
+ *
39
+ */
40
+ static protected final int INIT_VERTEX_BUFFER_SIZE = 256;
41
+
42
+ /**
43
+ *
44
+ */
45
+ static protected final int INIT_INDEX_BUFFER_SIZE = 512;
46
+
47
+ /**
48
+ *
49
+ */
50
+ public int glId;
35
51
  int target;
36
52
  int elementSize;
37
53
  int ncoords;
38
54
  boolean index;
39
55
 
40
- protected PGL pgl; // The interface between Processing and OpenGL.
41
- protected int context; // The context that created this texture.
56
+ /**
57
+ *
58
+ */
59
+ protected PGL pgl; // The interface between Processing and OpenGL.
60
+
61
+ /**
62
+ *
63
+ */
64
+ protected int context; // The context that created this texture.
42
65
  private GLResourceVertexBuffer glres;
43
66
 
44
67
  VertexBuffer(PGraphicsOpenGL pg, int target, int ncoords, int esize) {
@@ -57,19 +80,28 @@ public class VertexBuffer {
57
80
  init();
58
81
  }
59
82
 
60
- protected void create() {
83
+ /**
84
+ *
85
+ */
86
+ protected void create() {
61
87
  context = pgl.getCurrentContext();
62
88
  glres = new GLResourceVertexBuffer(this);
63
89
  }
64
90
 
65
- protected void init() {
91
+ /**
92
+ *
93
+ */
94
+ protected void init() {
66
95
  int size = index ? ncoords * INIT_INDEX_BUFFER_SIZE * elementSize :
67
96
  ncoords * INIT_VERTEX_BUFFER_SIZE * elementSize;
68
97
  pgl.bindBuffer(target, glId);
69
98
  pgl.bufferData(target, size, null, PGL.STATIC_DRAW);
70
99
  }
71
100
 
72
- protected void dispose() {
101
+ /**
102
+ *
103
+ */
104
+ protected void dispose() {
73
105
  if (glres != null) {
74
106
  glres.dispose();
75
107
  glId = 0;
@@ -77,7 +109,11 @@ public class VertexBuffer {
77
109
  }
78
110
  }
79
111
 
80
- protected boolean contextIsOutdated() {
112
+ /**
113
+ *
114
+ * @return
115
+ */
116
+ protected boolean contextIsOutdated() {
81
117
  boolean outdated = !pgl.contextIsCurrent(context);
82
118
  if (outdated) {
83
119
  dispose();
@@ -7,7 +7,7 @@ SOUND_VERSION = 'v1.3.2'
7
7
  GLVIDEO = 'processing-glvideo.zip'
8
8
  VIDEO = 'video-2.zip'
9
9
  VIDEO_VERSION = '2'
10
- EXAMPLES = '0.0.8'.freeze
10
+ EXAMPLES = '0.0.9'.freeze
11
11
  HOME_DIR = ENV['HOME']
12
12
  CLOBBER.include(EXAMPLES, SOUND, GLVIDEO, VIDEO)
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picrate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: java
6
6
  authors:
7
7
  - monkstone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-17 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -107,6 +107,7 @@ files:
107
107
  - docs/_libraries/custom.md
108
108
  - docs/_libraries/custom_java.md
109
109
  - docs/_libraries/gems.md
110
+ - docs/_libraries/gl_video.md
110
111
  - docs/_libraries/library_proxy.md
111
112
  - docs/_libraries/picrate.md
112
113
  - docs/_libraries/processing.md
@@ -145,16 +146,21 @@ files:
145
146
  - docs/_posts/2018-05-06-processing-api.md
146
147
  - docs/_posts/2018-05-11-arch-linux-arm.md
147
148
  - docs/_posts/2018-06-26-auto_install_picrate.md
149
+ - docs/_posts/2018-11-18-building-gem.md
150
+ - docs/_posts/2018-11-27-getting_started_geany.md
148
151
  - docs/_sass/_base.scss
149
152
  - docs/_sass/_layout.scss
150
153
  - docs/_sass/_syntax-highlighting.scss
151
154
  - docs/about.md
152
- - docs/assets/circle_collisions.png
155
+ - docs/assets/android-chrome-192x192.png
156
+ - docs/assets/android-chrome-512x512.png
157
+ - docs/assets/favicon.ico
153
158
  - docs/assets/geany.png
159
+ - docs/assets/jwishy_picrate.png
160
+ - docs/assets/picrate.svg
154
161
  - docs/classes.md
155
162
  - docs/css/main.scss
156
163
  - docs/editors.md
157
- - docs/favicon.ico
158
164
  - docs/feed.xml
159
165
  - docs/gems.md
160
166
  - docs/index.html
@@ -171,7 +177,7 @@ files:
171
177
  - lib/jogl-all-natives-linux-amd64.jar
172
178
  - lib/jogl-all-natives-linux-armv6hf.jar
173
179
  - lib/jogl-all.jar
174
- - lib/picrate-0.5.0.jar
180
+ - lib/picrate-0.6.0.jar
175
181
  - lib/picrate.rb
176
182
  - lib/picrate/app.rb
177
183
  - lib/picrate/creators/sketch_class.rb
@@ -195,6 +201,7 @@ files:
195
201
  - library/vector_utils/vector_utils.rb
196
202
  - library/video_event/video_event.rb
197
203
  - license.txt
204
+ - mvnw
198
205
  - picrate.gemspec
199
206
  - pom.rb
200
207
  - pom.xml
@@ -328,7 +335,7 @@ licenses:
328
335
  - GPL-3.0
329
336
  - LGPL-2.0
330
337
  metadata: {}
331
- post_install_message:
338
+ post_install_message: Use 'picrate --install Samples' to install samples
332
339
  rdoc_options: []
333
340
  require_paths:
334
341
  - lib
Binary file