Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2005, 12:34:09 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/physics: threaded gui starts parrallel to the particles-demo
also changed some smaller stuff in the gui_gtk-class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/physics/src/subprojects/particles/framework.cc

    r4314 r4316  
    1919#include "particle_engine.h"
    2020
     21#include "gui_gtk.h"
    2122#include "p_node.h"
    2223#include "null_parent.h"
     
    2728#include "resource_manager.h"
    2829#include "camera.h"
     30
     31#include <pthread.h>
    2932
    3033int verbose;
     
    348351
    349352
     353void* Framework::initGui(void* argv)
     354{
     355  Window* guiMainWindow = NULL;
     356 
     357  initGUI(0, NULL);
     358 
     359  guiMainWindow = new Window("ParticlesFUN");
     360 
     361  Window::mainWindow->showall();
     362  mainloopGUI();
     363}
     364
     365
    350366
    351367int main(int argc, char *argv[])
    352368{
    353369  verbose = 3;
     370  pthread_t guiThread;
     371
    354372  Framework* framework = new Framework();
     373
     374  pthread_create(&guiThread, NULL, Framework::initGui,(void*) argv);
     375  //  framework->initGui(argv);
     376
    355377  framework->mainLoop();
    356378
Note: See TracChangeset for help on using the changeset viewer.