Vertical Sync in Processing 2.0
in
Programming Questions
•
3 months ago
Hi Forum,
I used to use this function - taken from the Forum - for double buffering in my sketches, and it seems to be complaining about beginGL() not being found... Haven't looked into the source to see if the method has been renamed yet - will do momentarily and update the post - but curious if anyone has figured this out already ?
- void enableVSync() {
- PGraphicsOpenGL pgl = (PGraphicsOpenGL) g;
- javax.media.opengl.GL gl = pgl.beginGL();
- gl.setSwapInterval(1);
- pgl.endGL();
- }
1