Skip to content

OpenSourceAnimation/EP_CV_oF

 
 

Repository files navigation

Notes on organizing openFrameworks header files:

1. main.cpp only ever uses oF's header and the app's header.
  #include "ofMain.h"
  #include "ofApp.h"

2. ofApp.h needs oF and all its ofxAddons or other classes:
  #include "ofMain.h"
  #include "ofxAddon.h"

3. ofApp.cpp just needs its own header:
  #include "ofApp.h"

4. ofxAddon.h needs oF and any other ofxAddon or class it's using: 
  #include "ofMain.h"
  #include "otherOfxAddon.h”

5. ofxAddon.cpp just needs its header: 
  #include "ofxAddon.h"

6. ofxAddon headers that include each other must use header guards:
  #pragma once

About

Electric Perfume oF workshop course materials, 2017

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 39.4%
  • C++ 27.6%
  • C 21.2%
  • C# 5.1%
  • Objective-C 4.0%
  • GLSL 1.7%
  • ShaderLab 1.0%