Hello Brandon. Thanks for making this library.
I've been trying to integrate it as an alternate renderer for the Piccolo2D library. Piccolo2D uses Java2d as its backend (by default), so just wrapping a Piccolo PCanvas in your GLG2DCanvas seemed like an easy way to alter the rendering pipeline (the old Agile2D library served the same purpose).
I'm running on an old laptop (Dell latitude D820), with current drivers. GlView says my card (technically a GeForce Go 7300 on Windows 7 64bit) support GL2.1, and I have been able to use the Processing library's GL backend without problems (not like I'm about to describe).
In glg2d, I have zero issues if I'm programmatically drawing shapes. Yet when I go to draw an image (specifically a BufferedImage), which Piccolo2D uses as its offscreen canvas, I get GL errors and my JFrame craps out.
It contains two small examples of building a JFrame with an icon (a JLabel with a BufferedImage as its imageicon) as the content. The second instance uses GLG2DCanvas to wrap the label, and should override the graphics2d calls. I plugged the resulting error I get from JOGL in debug mode.
This is the cause:
glTexParameterf( 0x2300, 0x2200, 3042.0): GL_INVALID_ENUM ( 1280 0x500)
Called from line 44 in
[org.jogamp.glg2d.impl.gl2.GL2ImageDrawer begin GL2ImageDrawer.java 44]
I actually had piccolo rendering an image with no problems initially, then the frame died and the JRE got a runtime error, killing the JVM. I'm curious to see if you have any ideas....
Note: I'm using glg2d "0.3-SNAPSHOT" for and jogl "2.0-rc11".
Hello Brandon. Thanks for making this library.
I've been trying to integrate it as an alternate renderer for the Piccolo2D library. Piccolo2D uses Java2d as its backend (by default), so just wrapping a Piccolo PCanvas in your GLG2DCanvas seemed like an easy way to alter the rendering pipeline (the old Agile2D library served the same purpose).
I'm running on an old laptop (Dell latitude D820), with current drivers. GlView says my card (technically a GeForce Go 7300 on Windows 7 64bit) support GL2.1, and I have been able to use the Processing library's GL backend without problems (not like I'm about to describe).
In glg2d, I have zero issues if I'm programmatically drawing shapes. Yet when I go to draw an image (specifically a BufferedImage), which Piccolo2D uses as its offscreen canvas, I get GL errors and my JFrame craps out.
I'm doing all of this from Clojure, but there's a simple self contained example over at https://gist.github.com/joinr/788f23c22b3e613a643a97953a4b9962
It contains two small examples of building a JFrame with an icon (a JLabel with a BufferedImage as its imageicon) as the content. The second instance uses GLG2DCanvas to wrap the label, and should override the graphics2d calls. I plugged the resulting error I get from JOGL in debug mode.
This is the cause: glTexParameterf( 0x2300, 0x2200, 3042.0): GL_INVALID_ENUM ( 1280 0x500)
Called from line 44 in
[org.jogamp.glg2d.impl.gl2.GL2ImageDrawer begin GL2ImageDrawer.java 44]
I actually had piccolo rendering an image with no problems initially, then the frame died and the JRE got a runtime error, killing the JVM. I'm curious to see if you have any ideas....
Note: I'm using glg2d "0.3-SNAPSHOT" for and jogl "2.0-rc11".