Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying OpenFrameworks Essentials
  • Table Of Contents Toc
OpenFrameworks Essentials

OpenFrameworks Essentials

By : Denis Perevalov
5 (7)
close
close
OpenFrameworks Essentials

OpenFrameworks Essentials

5 (7)
By: Denis Perevalov

Overview of this book

If you are a programmer, visual artist, or designer with experience in creative coding, and want to use openFrameworks to create fun, stunning, and interactive applications, this is the book for you. Basic knowledge of programming languages, such as C++, Java, Python, or JavaScript, will be enough to proceed with the book.
Table of Contents (13 chapters)
close
close
12
Index

Application

The ofApp class is the main class for the openFrameworks project. It is declared in the ofApp.h file, and its functions are defined in the ofApp.cpp file. It contains functions that are called by the openFrameworks engine on starting up, rendering, and various events from the user, such as mouse events and keyboard events. (See Chapter 2, Creating Your First openFrameworks Project, for details).

The most important functions that should be filled to have a working project are the following:

  • setup(): This is called by openFrameworks once on starting the application. For example, it can include the following commands:
    ofSetWindowTitle( "My project" );
    ofSetWindowShape( 1280, 720 );
    ofSetFrameRate( 60 );
    ofSetFullScreen( true );

    The first line sets the application's window title to My project. The second line sets the window size to a width of 1280 pixels and a height of 720 pixels. The third line sets the rendering frame rate to 60 frames per second. The last line...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
OpenFrameworks Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon