Discovering the project's code structure
Open the project's VideoSynth
folder and find the src
folder there. It contains the project's source code files, as shown in the following screenshot:
There are three source files:
main.cpp
: This file contains the code to initiate a window and run the app. We will leave it unchanged.ofApp.h
: This file is a declaration of theofApp
application class, which consists of a declaration of the functions, such assetup()
,update()
,draw()
, and some others. Currently, we do not need to add anything there.ofApp.cpp
: This file contains definitions of declared functions. This is the file we will edit right now.
The following functions, declared in the ofApp
class, are called by the openFrameworks engine:
setup()
: This function is called once at the beginning of the application execution. This is the place to implement a project...