Quantcast
Viewing all articles
Browse latest Browse all 40524

ofSetCurrentRenderer in 0.9.0

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

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>