Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

'' was not declared in this scope error

$
0
0

I am trying to very simply output some text to the screen and have been trying to get this to work for nearly 6 hours... I am completely lost at this point.

I literally copied the code from one of the example files and I get the error message. Which makes sense to me because it is right I never declared the variable. But the example file as well does not declare any variable.

here is my code:

//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(25,25,25, 255);

ofTrueTypeFont::setGlobalDpi(72);

verdana14.loadFont("verdana.ttf", 14, true, true);
verdana14.setLineHeight(18.0f);
verdana14.setLetterSpacing(1.037);

bFirst = true;
typeStr = "abscedsgdsdee";

//--------------------------------------------------------------
void ofApp::draw()
{
ofSetColor(200,200,0);
ofCircle(xCord,yCord,30);
ofFill();

ofSetColor(100,100,100);
ofCircle(astX,astY,20);

ofSetColor(150);
verdana14.drawString("this I really hope this works");

Viewing all articles
Browse latest Browse all 40524

Trending Articles