New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenGL2 doesn't work #19
Comments
Additional issue with OpenGL2. The problem appears to be in this code.
Error: |
opengl2 is a complete standalone library (it doesn't inherit from the classic opengl library) so it also needs to be treated completely seperately. for now opengl2 has been pulled from the 1.5 releases, the things happening within GLTextureUpdateHandler and GLDrawableHelper mostly fix problems that should be handled inside PGraphicsOpenGL, maybe the situation is already bit better with the opengl2 render. what happened when you ran the unmodified fs-api with the opengl2 renderer? |
Unmodified fs-api does not work with OpenGL2, using your example code. I get no error. import fullscreen.*; FullScreen fs; void setup(){ // set size to 640x480 // 5 fps // Create the fullscreen object // enter fullscreen mode void draw(){ // Do your fancy drawing here...
} |
They put those "Comment & Close" and "Comment" buttons too close together... |
OpenGL2 has now been set as the default for Processing in the codebase. So there is no need now to make explicit reference to processing.opengl2.PGraphicsOpenGL2. Using just clazz.getName().equals("processing.opengl.PGraphicsOpenGL works fine now. However, there is still and issue with this since PGraphics3D is gone. But due to recent changes in the OpenGL code, are the GL Helpers needed any more? |
very brief answer: helpers needed: not sure, quite likely not. if you have a fix please just upload and i'll merge ... jeez ... my sentences start to look like code ... |
This line needs to be modified for the new class
if ( clazz.getName().equals("processing.opengl.PGraphicsOpenGL"))
isGL = true;
should now be:
Similarly... a couple of other lines need to be tweaked in GLDrawableHelper to support OpenGL2.
Field context = PGraphicsOpenGL2.class.getDeclaredField( "context" );
&
Method allocate = PGraphicsOpenGL2.class.getDeclaredMethod( "allocate" );
The text was updated successfully, but these errors were encountered: