How to display text on the demo screen in openFrameworks

openFrameworks is written in C++, which is still unfamiliar to me.

As a reminder, we leave the method of displaying text characters on the demo screen.
It is useful to display variables, etc.

skitch.16

In conclusion, you can use ofDrawBitmapString as follows.

string thresholdMsg = "threshold:" + ofToString( threshold );
ofDrawBitmapString( thresholdMsg, 20, 600);

In this example, the value of THRESHOLD can be changed by key input.
Therefore, the current THRESHOLD value is displayed on the screen.

First, prepare the variable thresholdMsg and convert threshold to text.
The text is then displayed at x-axis=20, y-axis=600 using ofDrawBitmapString.