There seems to have been some changes to the OpenGLTOP sample project that break the documentation for making this project work with openFrameworks.
The project looks different from step 11 onwards:
Go back to the “Solution Explorer” and open TOP_CPlusPlusBase.h. Remove the following lines:
#include <windows.h> #include
and replace them with:
#include “ofMain.h”
The two lines at step 11 no longer exist. Simply placing the ofMain.h include doesn’t compile claiming that it cannot be found.
Some of the remaining steps are also a bit confusing considering excecute() is already filled up with example code that should probably be deleted in order to make the oF example work.
Is there anyone that has had success compiling these versions?
The steps I took to get it to work in latest 10k (compiled in Visual Studio 2019):
Downloaded OpenFrameworksExample.zip and the latest openFrameworks v0.11.2.
Extracted openFrameWorksExample archive at openFrameworks root.
Opened sln file (in this case I tested with inputTexture). When I opened it prompted me to upgrade to platform toolset v142 which I did. If there was no prompt then you should be able to go into the property page for the project and change it manually.
These were setup against v0.9.0 and ofMain.h no longer seems to include ofGLProgrammableRenderer.h so I had to add #include "ofGLProgrammableRenderer.h" to the beginning of OpenFrameworksTOP.h to get it to compile
Commented out the #error and set ofSetDataPathRoot to my data dir. This can be an absolute path even though the comment in there suggests it can’t be.
Compiled openframeworksLib and then compiled OpenFrameworksTOP and grabbed OpenFrameworksTOP.dll from /bin
I’ll take another pass at it and update the wiki, but hopefully this gets it working for you in the meantime.