O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The GUI

The GUI is created using the ofxGui addon. Its basic classes are the following (see Chapter 3, Adding a GUI and Handling Keyboard Events, for details):

Class name with an example of an object definition

Description

ofxPanel gui;

This is a GUI panel, which can contain GUI controls, such as sliders, checkboxes, buttons, and also groups of GUI controls.

ofxGuiGroup globalGroup;

This is a group of GUI controls.

ofxIntSlider countX;

This is a slider with integer values.

ofxFloatSlider stepX;

This is a slider with float values.

ofxVec2Slider size;

This is a slider with two float values.

ofxToggle filled;

This is a checkbox.

ofxColorSlider color;

This is a color selector.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required