J
Jim Johnson
I have a graphics program that draws some animations. How can I add
another thread to do so other stuff like file processing -OR- internet
query?
I heard I should use the C function - CreateThread()
any tutorial on using Thread in C++?
following is my main program
=====================
#include "ofMain.h"
#include "testApp.h"
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); //
<-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp(new testApp());
}
another thread to do so other stuff like file processing -OR- internet
query?
I heard I should use the C function - CreateThread()
any tutorial on using Thread in C++?
following is my main program
=====================
#include "ofMain.h"
#include "testApp.h"
int main( ){
ofSetupOpenGL(1024,768, OF_WINDOW); //
<-------- setup the GL context
// this kicks off the running of my app
// can be OF_WINDOW or OF_FULLSCREEN
// pass in width and height too:
ofRunApp(new testApp());
}