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.
- checksums.yaml +4 -4
- data/.mvn/wrapper/maven-wrapper.properties +1 -1
- data/CHANGELOG.md +3 -1
- data/README.md +1 -1
- data/Rakefile +8 -6
- data/docs/_editors/geany.md +5 -4
- data/docs/_editors/vim.md +6 -0
- data/docs/_includes/head.html +1 -0
- data/docs/_libraries/control_panel.md +2 -2
- data/docs/_libraries/gl_video.md +21 -0
- data/docs/_posts/2018-05-06-getting_started.md +10 -9
- data/docs/_posts/2018-05-06-install_jruby.md +19 -2
- data/docs/_posts/2018-06-26-auto_install_picrate.md +19 -4
- data/docs/_posts/2018-11-18-building-gem.md +18 -0
- data/docs/_posts/2018-11-27-getting_started_geany.md +38 -0
- data/docs/about.md +21 -10
- data/docs/assets/android-chrome-192x192.png +0 -0
- data/docs/assets/android-chrome-512x512.png +0 -0
- data/docs/assets/favicon.ico +0 -0
- data/docs/assets/geany.png +0 -0
- data/docs/assets/jwishy_picrate.png +0 -0
- data/docs/assets/picrate.svg +251 -0
- data/docs/index.html +8 -14
- data/lib/picrate/runner.rb +6 -2
- data/lib/picrate/version.rb +1 -1
- data/library/boids/boids.rb +10 -13
- data/mvnw +234 -0
- data/picrate.gemspec +2 -1
- data/pom.rb +1 -1
- data/pom.xml +1 -1
- data/src/main/java/japplemenubar/JAppleMenuBar.java +10 -2
- data/src/main/java/monkstone/ColorUtil.java +11 -1
- data/src/main/java/monkstone/MathToolModule.java +1 -0
- data/src/main/java/monkstone/PicrateLibrary.java +1 -0
- data/src/main/java/monkstone/fastmath/Deglut.java +1 -0
- data/src/main/java/monkstone/noise/SimplexNoise.java +3 -3
- data/src/main/java/monkstone/slider/CustomHorizontalSlider.java +1 -1
- data/src/main/java/monkstone/slider/CustomVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleHorizontalSlider.java +1 -1
- data/src/main/java/monkstone/slider/SimpleSlider.java +8 -8
- data/src/main/java/monkstone/slider/SimpleVerticalSlider.java +1 -1
- data/src/main/java/monkstone/slider/Slider.java +3 -3
- data/src/main/java/monkstone/slider/SliderBar.java +1 -1
- data/src/main/java/monkstone/slider/SliderGroup.java +1 -1
- data/src/main/java/monkstone/vecmath/AppRender.java +1 -0
- data/src/main/java/monkstone/vecmath/JRender.java +1 -0
- data/src/main/java/monkstone/vecmath/ShapeRender.java +1 -0
- data/src/main/java/monkstone/vecmath/vec2/Vec2.java +8 -0
- data/src/main/java/monkstone/vecmath/vec3/Vec3.java +1 -0
- data/src/main/java/processing/awt/PGraphicsJava2D.java +85 -16
- data/src/main/java/processing/awt/PSurfaceAWT.java +1 -1
- data/src/main/java/processing/core/PApplet.java +18 -12
- data/src/main/java/processing/core/PShape.java +1182 -305
- data/src/main/java/processing/core/PStyle.java +1 -1
- data/src/main/java/processing/core/PSurface.java +1 -1
- data/src/main/java/processing/data/FloatDict.java +196 -54
- data/src/main/java/processing/data/FloatList.java +167 -54
- data/src/main/java/processing/data/IntDict.java +211 -56
- data/src/main/java/processing/data/IntList.java +185 -52
- data/src/main/java/processing/data/JSONArray.java +69 -20
- data/src/main/java/processing/data/JSONObject.java +53 -12
- data/src/main/java/processing/data/Sort.java +40 -10
- data/src/main/java/processing/data/StringDict.java +159 -49
- data/src/main/java/processing/data/StringList.java +147 -42
- data/src/main/java/processing/data/Table.java +778 -223
- data/src/main/java/processing/data/TableRow.java +26 -2
- data/src/main/java/processing/data/XML.java +190 -50
- data/src/main/java/processing/event/Event.java +93 -0
- data/src/main/java/processing/event/KeyEvent.java +55 -13
- data/src/main/java/processing/event/MouseEvent.java +77 -1
- data/src/main/java/processing/event/TouchEvent.java +14 -1
- data/src/main/java/processing/javafx/PGraphicsFX2D.java +8 -0
- data/src/main/java/processing/opengl/FrameBuffer.java +228 -66
- data/src/main/java/processing/opengl/LinePath.java +131 -27
- data/src/main/java/processing/opengl/LineStroker.java +30 -5
- data/src/main/java/processing/opengl/PGL.java +4066 -865
- data/src/main/java/processing/opengl/PGraphics2D.java +38 -10
- data/src/main/java/processing/opengl/PGraphics3D.java +38 -6
- data/src/main/java/processing/opengl/PGraphicsOpenGL.java +1980 -474
- data/src/main/java/processing/opengl/PJOGL.java +1460 -248
- data/src/main/java/processing/opengl/PShader.java +904 -217
- data/src/main/java/processing/opengl/PShapeOpenGL.java +1811 -487
- data/src/main/java/processing/opengl/PSurfaceJOGL.java +278 -71
- data/src/main/java/processing/opengl/Texture.java +610 -135
- data/src/main/java/processing/opengl/VertexBuffer.java +45 -9
- data/src/main/resources/icon/icon-1024.png +0 -0
- data/src/main/resources/icon/icon-128.png +0 -0
- data/src/main/resources/icon/icon-16.png +0 -0
- data/src/main/resources/icon/icon-256.png +0 -0
- data/src/main/resources/icon/icon-32.png +0 -0
- data/src/main/resources/icon/icon-48.png +0 -0
- data/src/main/resources/icon/icon-512.png +0 -0
- data/src/main/resources/icon/icon-64.png +0 -0
- data/vendors/Rakefile +1 -1
- metadata +13 -6
- data/docs/assets/circle_collisions.png +0 -0
- 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
|
-
|
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
|
-
|
41
|
-
|
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
|
-
|
83
|
+
/**
|
84
|
+
*
|
85
|
+
*/
|
86
|
+
protected void create() {
|
61
87
|
context = pgl.getCurrentContext();
|
62
88
|
glres = new GLResourceVertexBuffer(this);
|
63
89
|
}
|
64
90
|
|
65
|
-
|
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
|
-
|
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
|
-
|
112
|
+
/**
|
113
|
+
*
|
114
|
+
* @return
|
115
|
+
*/
|
116
|
+
protected boolean contextIsOutdated() {
|
81
117
|
boolean outdated = !pgl.contextIsCurrent(context);
|
82
118
|
if (outdated) {
|
83
119
|
dispose();
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendors/Rakefile
CHANGED
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.
|
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
|
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/
|
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.
|
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
|
data/docs/favicon.ico
DELETED
Binary file
|