I'm migrating some code to 0.9.0, and I need to use the ofGLProgrammableRenderer
.
in 0.8.4 I was doing this brefore ofSetupOpenGL
:
ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
However, in 0.9.0 this function disappeared, and it seems that I have to create a window separately to then create the renderer and call the new ofSetCurrentRenderer
function. Is it the correct way to do that? I can't find an example in this OF version.
BTW, the pointsAsTextures example still has this code, that won't probably compile:
#ifdef TARGET_OPENGLES
ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
#endif