Let's create two sliders and use them to mix 2D and 3D graphics using the following steps:
ofxFloatSlider show2d, show3d; ofFbo fbo3d;
setup(), after the
mixerGroup.add( show2d.setup("show2d", 255, 0, 255) ); mixerGroup.add( show3d.setup("show3d", 255, 0, 255) ); fbo3d.allocate( ofGetWidth(), ofGetHeight(), GL_RGBA );
The first and second lines set sliders to have a range from
255 and add them to the GUI group
mixerGroup (this group was created in the previous chapter). The third line allocates the offscreen buffer with size ...