I have freshly generated a new project for xcode using the ProjectGenerator application.
Literally with fresh files and no addons beside the included GUI and Vector graphic addons I have managed to somehow struggle at drawing a rectangle at 0,0. Instead it seems the y axis is drawing at 40. (I used a string to output mouse coordinates and it showed me the top right corner was located at 0,40 - when hovering the mouse over the rectangle).
I am at a loss of words as drawing the rectangle, loading a font and outputting mouse coordinates is the only thing I have done in this project so far.
I have also tried this with enabling and disabling the “High Resolution Capable” setting within xcode.
Code is below and Screenshot is attached.
Any feed back would be grateful.
code within main.cpp
ofSetupOpenGL(2000,1000,OF_WINDOW); ofRunApp(new ofApp());
code within ofApp.cpp
ofBackground(60); ofSetColor(255); ofDrawRectangle(0, 0, 100, 100); ofTrueTypeFont debugText; debugText.load("Lato-Regular.ttf", 20); debugText.drawString(to_string(mouseX) + " " + to_string(mouseY), 5,755);