Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

OF Does NOT redraw?!

$
0
0

@ocdy1001 wrote:

I was making a basic UI thingy and it doesnt redraw. I generated a new empty project. All i added was this:
int x = 0;

void ofApp::update(){
x++;
}

void ofApp::draw(){
ofSetColor(0);
ofDrawRectangle(x, 100, 100, 100);
}

Now the square does NOT move!
When i drag the window then the redraw comes in and draws the square at its new position. But it does not contiously redraw. Like when you dont swap the buffers in opengl. What can i do?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles