Week 1
Note
- main.cpp:
main.cpp
serves as the entry point for your application. When you run your OpenFrameworks application, it starts by executingmain.cpp
.- Its main purpose is to create an application object (
ofApp
) and begin running that application. - ofApp.h:
ofApp.h
is the main class definition file for your application. It contains the core logic of your application, such as setup, update, and draw functions.In this file, you declare member variables, functions, and handle events like key and mouse interactions.Typically, you declare functions for rendering, setup, and handling various events inofApp.h
. - ofApp.cpp:
ofApp.cpp
contains the implementation of the functions defined inofApp
class inofApp.h
.In this file, you write the initialization code (in thesetup
function), code to update your application's state (in theupdate
function), and code to render visuals (in thedraw
function).Typically, your application's main logic and functionality are implemented inofApp.cpp
.