summaryrefslogtreecommitdiff
path: root/json-instagram/src/exampleApp.cpp
blob: 75935a07fc6cf5db2eaa69d350c009c6c0a7305b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "exampleApp.h"



long ofToLong(const string& intString) {
	long x = 0;
	istringstream cur(intString);
	cur >> x;
	return x;
}

//------------------------------------------------------------------------------
void exampleApp::setup()
{
	ofSetFrameRate(24);
	loader.set_interval(5.00f);
	loader.start();
}

void exampleApp::update (){

	ofSetWindowTitle(ofToString(ofGetFrameRate()));
}

//------------------------------------------------------------------------------
void exampleApp::draw()
{
	ofBackground(0);
    
	//for(int i=0; i<images.size(); i++) {
	//	images[i].draw(i*30, i*30);
	//}
	loader.draw();
}