SetupOpenGL - oFWINDOW - problem

Hello everybody, I’m quite excited since it is my first post on this forum :slight_smile:

I’m very new to oF and currently I’m going through HelloWorld example from “Programming Interactivity” book.

I encounter one problem on the very beginning. While calling this method

ofSetupOpenGL(1024,768, oF_WINDOW);  

Xcode is giving me an error.“oF_WINDOW was not declared in this scope”. Could someone explaing me please what is wrong here. I think I managed to workaround it (since the input expects to pass an integer anyway) but is that something wrong with the code or there has been some minor change in oF recently?


I’m using of_preRelease_v0061_osx

#include "ofMain.h"  
#include "HelloWorldApp.h"  
int main( ){  
	// can be oF_WINDOW or oF_FULLSCREEN   
	// pass in width and height too:   
	ofSetupOpenGL(1024,768, oF_WINDOW);// <-------- setup the GL context   
	// this kicks off the running of my app   
	ofRunApp(new HelloWorldApp);  


ofSetupOpenGL(&window, 1024,768, OF_WINDOW);