blob: deb4f35c308ba59e23ce58bae81039ad1b788ef3 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
#include "exampleApp.h"
/*
so far so good, NOW
threading
parse response and identify new pictures
save pictures & metadata - rather than reloading each time?
local images format
do we need any metadata? I guess not other than to know the tag id
could save with the tag id as the name of file, simpler
how exactly do we parse or mipmap the images
do we worry about memory - I guess not
identify the images
*/
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);
cout << "starting" << endl;
loader.start();
cout << "started" << endl;
}
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();
}
|