Week 1
Note
- main.cpp:
main.cppserves 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.his 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.cppcontains the implementation of the functions defined inofAppclass inofApp.h.In this file, you write the initialization code (in thesetupfunction), code to update your application's state (in theupdatefunction), and code to render visuals (in thedrawfunction).Typically, your application's main logic and functionality are implemented inofApp.cpp.