Skip to content

Commit d7bcf6a

Browse files
committed
Update some versions for jdk8
1 parent 060f275 commit d7bcf6a

File tree

10 files changed

+37
-53
lines changed

10 files changed

+37
-53
lines changed

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<extension>
44
<groupId>io.takari.polyglot</groupId>
55
<artifactId>polyglot-ruby</artifactId>
6-
<version>0.4.3
6+
<version>0.4.5
77
</version>
88
</extension>
99
</extensions>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.1/apache-maven-3.6.1-bin.zip
2-
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
1+
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2+
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
v1.2.4 Extract picrate examples to ~/projects/examples instead of ~/picrate_samples for tighter integration with geany editor. Remove non-functioning sound library as an install option (direct toward minim as option).
1+
v1.3.0 Last version for jdk8. But should run OK jdk11 with JRuby-9.2.11.0 and --add-opens in ~/.jruby.java_opts to suppress reflective access warnings.
22

3+
v1.2.4 Extract picrate examples to ~/projects/examples instead of ~/picrate_samples for tighter integration with geany editor. Remove non-functioning sound library as an install option (direct toward minim as option).
34
v1.2.3 Favor latest beta Video2 library over GLVideo.
45

56
v1.2.2 Removed landscape from example as too taxing for raspberryPI. Improved geany tools.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source 'https://rubygems.org'
2-
ruby '2.5.7', :engine => 'jruby', :engine_version => '9.2.9.0'
2+
ruby '2.5.7', :engine => 'jruby', :engine_version => '9.2.11.0'
33
gemspec

docs/_posts/2018-05-06-install_jruby.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Get the latest version from [http://jruby.org/download][download]
1414

1515
```bash
1616
cd /opt
17-
sudo tar xzvf /pathToDownload/jruby-bin-9.2.9.0.tar.gz
17+
sudo tar xzvf /pathToDownload/jruby-bin-9.2.11.0.tar.gz
1818
```
1919

2020
Then use the excellent `update-alternatives` tool to provide symbolic links to `jruby`, `jgem`, `jirb` and `rake` especially if you haven't installed `mri` ruby.
@@ -44,9 +44,9 @@ mkdir installer
4444
cd installer
4545
rake
4646
```
47-
Currently installs jruby-9.2.9.0
47+
Currently installs jruby-9.2.11.0
4848

4949
If you know better please post on wiki
5050

51-
[download]:"https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.tar.gz"
51+
[download]:"https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.11.0/jruby-dist-9.2.11.0-bin.tar.gz"
5252
[rake_gist]:https://gist.github.com/monkstone/159c5a9813c9cd181040b4715e74f6b2

docs/_posts/2019-11-11-getting_started_buster.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: 2019-11-11 07:34:13
55
categories: PiCrate update
66
permalink: /getting_buster/
77
---
8-
Currently Raspbian Buster does not come with a pre-installed java. So the first step is to install a `jdk` we currently recommend installing openjdk8 (_there a complications you don't need using jdk11_) to benefit from `client` optimisations. There is a bash script [here][buster], that will install `openjdk8`, `jruby-9.2.9.0` and picrate for you.
8+
Currently Raspbian Buster does not come with a pre-installed java. So the first step is to install a `jdk` we currently recommend installing openjdk8 (_there a complications you don't need using jdk11_) to benefit from `client` optimisations. There is a bash script [here][buster], that will install `openjdk8`, `jruby-9.2.11.0` and picrate for you.
99
```bash
1010
bash buster_install.sh
1111
```

lib/picrate/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module PiCrate
4-
VERSION = '1.2.4'
4+
VERSION = '1.3.0'
55
end

pom.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project 'picrate', 'http://maven.apache.org' do
22

33
model_version '4.0.0'
4-
id 'ruby-processing:picrate:1.2.4'
4+
id 'ruby-processing:picrate:1.3.0'
55
packaging 'jar'
66

77
description 'An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.'
@@ -31,7 +31,7 @@
3131
'polyglot.dump.pom' => 'pom.xml'
3232
)
3333

34-
pom 'org.jruby:jruby:9.2.9.0'
34+
pom 'org.jruby:jruby:9.2.11.0'
3535
jar 'org.jogamp.jogl:jogl-all:${jogl.version}'
3636
jar 'org.jogamp.gluegen:gluegen-rt-main:${jogl.version}'
3737
jar 'org.processing:video:3.0.2'

pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ DO NOT MODIFIY - GENERATED CODE
66
77
88
-->
9-
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
9+
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
1010
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>ruby-processing</groupId>
1313
<artifactId>picrate</artifactId>
14-
<version>1.2.4</version>
14+
<version>1.3.0</version>
1515
<name>picrate</name>
1616
<description>An integrated processing-core (somewhat hacked), with additional java code for a jruby version of processing.</description>
1717
<url>http://maven.apache.org</url>
@@ -76,7 +76,7 @@ DO NOT MODIFIY - GENERATED CODE
7676
<dependency>
7777
<groupId>org.jruby</groupId>
7878
<artifactId>jruby</artifactId>
79-
<version>9.2.9.0</version>
79+
<version>9.2.11.0</version>
8080
<type>pom</type>
8181
</dependency>
8282
<dependency>

src/main/java/processing/opengl/PGraphicsOpenGL.java

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,26 +3651,26 @@ protected void textCharModelImpl(FontTexture.TextureInfo info,
36513651
* Ported from the implementation of textCharShapeImpl() in 1.5.1
36523652
*
36533653
* <EM>No attempt has been made to optimize this code</EM>
3654-
*
3654+
*
36553655
* TODO: Implement a FontShape class where each glyph is tessellated and
36563656
* stored inside a larger PShapeOpenGL object (which needs to be expanded as
36573657
* new glyphs are added and exceed the initial capacity in a similar way as
36583658
* the textures in FontTexture work). When a string of text is to be rendered
36593659
* in shape mode, then the correct sequences of vertex indices are computed
36603660
* (akin to the texcoords in the texture case) and used to draw only those
36613661
* parts of the PShape object that are required for the text.
3662-
*
3662+
*
36633663
*
36643664
* Some issues of the original implementation probably remain, so they are
36653665
* reproduced below:
3666-
*
3666+
*
36673667
* Also a problem where some fonts seem to be a bit slight, as if the
36683668
* control points aren't being mapped quite correctly. Probably doing
36693669
* something dumb that the control points don't map to P5's control
36703670
* points. Perhaps it's returning b-spline data from the TrueType font?
36713671
* Though it seems like that would make a lot of garbage rather than
36723672
* just a little flattening.
3673-
*
3673+
*
36743674
* There also seems to be a bug that is causing a line (but not a filled
36753675
* triangle) back to the origin on some letters (i.e. a capital L when
36763676
* tested with Akzidenz Grotesk Light). But this won't be visible
@@ -5352,7 +5352,7 @@ protected void backgroundImpl() {
53525352
// showWarning() and showException() available from PGraphics.
53535353

53545354
/**
5355-
* Report on anything from glError().Don't use this inside glBegin/glEnd
5355+
* Report on anything from glError().Don't use this inside glBegin/glEnd
53565356
* otherwise it'll throw an GL_INVALID_OPERATION error.
53575357
* @param where
53585358
*/
@@ -6366,11 +6366,11 @@ protected void blendModeImpl() {
63666366

63676367

63686368
/**
6369-
* Not an approved function, this will change or be removed in the future.This
6370-
* utility method returns the texture associated to the renderer's. drawing
6371-
* surface, making sure is updated to reflect the current contents off the
6369+
* Not an approved function, this will change or be removed in the future.This
6370+
* utility method returns the texture associated to the renderer's. drawing
6371+
* surface, making sure is updated to reflect the current contents off the
63726372
* screen (or offscreen drawing surface).
6373-
* @return
6373+
* @return
63746374
*/
63756375
public Texture getTexture() {
63766376
return getTexture(true);
@@ -6380,7 +6380,7 @@ public Texture getTexture() {
63806380
/**
63816381
* Not an approved function either, don't use it.
63826382
* @param load
6383-
* @return
6383+
* @return
63846384
*/
63856385
public Texture getTexture(boolean load) {
63866386
if (load) loadTexture();
@@ -6393,7 +6393,7 @@ public Texture getTexture(boolean load) {
63936393
* creating and/or updating it if needed.
63946394
*
63956395
* @param img the image to have a texture metadata associated to it
6396-
* @return
6396+
* @return
63976397
*/
63986398
public Texture getTexture(PImage img) {
63996399
Texture tex = (Texture)initCache(img);
@@ -6419,7 +6419,7 @@ public Texture getTexture(PImage img) {
64196419
/**
64206420
* Not an approved function, test its use in libraries to grab the FB objects
64216421
* for offscreen PGraphics.
6422-
* @return
6422+
* @return
64236423
*/
64246424
public FrameBuffer getFrameBuffer() {
64256425
return getFrameBuffer(false);
@@ -6478,7 +6478,7 @@ protected void unbindFrontTexture() {
64786478
* This utility method creates a texture for the provided image, and adds it
64796479
* to the metadata cache of the image.
64806480
* @param img the image to have a texture metadata associated to it
6481-
* @return
6481+
* @return
64826482
*/
64836483
protected Texture addTexture(PImage img) {
64846484
Texture.Parameters params =
@@ -6892,53 +6892,35 @@ protected void getGLParameters() {
68926892
OPENGL_VERSION = pgl.getString(PGL.VERSION);
68936893
OPENGL_EXTENSIONS = pgl.getString(PGL.EXTENSIONS);
68946894
GLSL_VERSION = pgl.getString(PGL.SHADING_LANGUAGE_VERSION);
6895-
68966895
npotTexSupported = pgl.hasNpotTexSupport();
68976896
autoMipmapGenSupported = pgl.hasAutoMipmapGenSupport();
68986897
fboMultisampleSupported = pgl.hasFboMultisampleSupport();
68996898
packedDepthStencilSupported = pgl.hasPackedDepthStencilSupport();
69006899
anisoSamplingSupported = pgl.hasAnisoSamplingSupport();
69016900
readBufferSupported = pgl.hasReadBuffer();
69026901
drawBufferSupported = pgl.hasDrawBuffer();
6903-
69046902
try {
69056903
pgl.blendEquation(PGL.FUNC_ADD);
69066904
blendEqSupported = true;
69076905
} catch (Exception e) {
69086906
blendEqSupported = false;
69096907
}
6910-
69116908
depthBits = pgl.getDepthBits();
69126909
stencilBits = pgl.getStencilBits();
6913-
69146910
pgl.getIntegerv(PGL.MAX_TEXTURE_SIZE, intBuffer);
69156911
maxTextureSize = intBuffer.get(0);
6916-
6917-
// work around runtime exceptions in Broadcom's VC IV driver
6918-
if (false == OPENGL_RENDERER.equals("VideoCore IV HW")) {
6919-
pgl.getIntegerv(PGL.MAX_SAMPLES, intBuffer);
6920-
maxSamples = intBuffer.get(0);
6921-
}
6922-
6912+
pgl.getIntegerv(PGL.MAX_SAMPLES, intBuffer);
6913+
maxSamples = intBuffer.get(0);
69236914
if (anisoSamplingSupported) {
69246915
pgl.getFloatv(PGL.MAX_TEXTURE_MAX_ANISOTROPY, floatBuffer);
69256916
maxAnisoAmount = floatBuffer.get(0);
69266917
}
6927-
6928-
// overwrite the default shaders with vendor specific versions
6929-
// if needed
6930-
if (OPENGL_RENDERER.equals("VideoCore IV HW")) { // Broadcom's binary driver for Raspberry Pi
6931-
defLightShaderVertURL =
6932-
PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightVert-brcm.glsl");
6933-
defTexlightShaderVertURL =
6934-
PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexLightVert-brcm.glsl");
6935-
} else if (OPENGL_RENDERER.contains("VC4")) { // Mesa driver for same hardware
6936-
defLightShaderVertURL =
6937-
PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/LightVert-vc4.glsl");
6938-
defTexlightShaderVertURL =
6939-
PGraphicsOpenGL.class.getResource("/processing/opengl/shaders/TexLightVert-vc4.glsl");
6918+
// Broadcom's binary drivers for Raspberry Pi don't work with PiCrate in Buster
6919+
if (OPENGL_RENDERER.equals("VideoCore IV HW")) {
6920+
pgl.dispose();
6921+
System.out.println("Use FakeKMS or FullKMS video driver for P2D and P3D sketches");
6922+
super.dispose();
69406923
}
6941-
69426924
glParamsRead = true;
69436925
}
69446926

@@ -13160,6 +13142,7 @@ public void begin(int type) {
1316013142
else if (type == PGL.TRIANGLES) primitive = TRIANGLES;
1316113143
}
1316213144

13145+
@Override
1316313146
public void end() {
1316413147
if (PGL.MAX_VERTEX_INDEX1 <= vertFirst + vertCount) {
1316513148
// We need a new index block for the new batch of

0 commit comments

Comments
 (0)