Hello, below is a really basic sketch I was trying to get going just to test out OpenGL in Ruby-Processing.
Code:require 'ruby-processing'
class Opengltest < Processing::App
load_java_library "opengl"
include_package "processing.opengl"
def setup
render_mode OPENGL
end
def draw
end
end
Opengltest.new :title => "Opengltest", :width => 800, :height => 600
However, when the sketch runs. I get the error trace below:
Exception in thread "Animation Thread" java/lang/Class.java:-2:in `getDeclaredConstructors0': java.lang.VerifyError: (class: processing/opengl/PGraphicsOpenGL, method: bindTexture signature: (Lprocessing/core/PImage;)V) Bad access to protected data (NativeException)
from java/lang/Class.java:2357:in `privateGetDeclaredConstructors'
from java/lang/Class.java:2671:in `getConstructor0'
from java/lang/Class.java:1629:in `getConstructor'
from processing/core/PApplet.java:1142:in `makeGraphics'
from processing/core/PApplet.java:982:in `size'
from processing/core/PApplet.java:942:in `size'
from sun/reflect/NativeMethodAccessorImpl.java:-2:in `invoke0'
from sun/reflect/NativeMethodAccessorImpl.java:39:in `invoke'
... 26 levels...
from java/lang/Thread.java:613:in `run'
from opengltest.rb:8:in `setup'
from :1