Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2101 in orxonox.OLD for orxonox/branches/chris/src/orxonox.cc


Ignore:
Timestamp:
Jul 10, 2004, 2:00:04 PM (21 years ago)
Author:
chris
Message:

orxonox/branches/chris: Finished the "GETITTOCOMPILE" project… compiling should work now, but linking is a different story

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/orxonox.cc

    r2096 r2101  
    2424*/
    2525
    26 #ifdef __WIN32__
    27 #include <windows.h>
    28 #endif
    29 
    30 #include <iostream>
    31 #include <cstdio>
    32 #include <GL/glut.h>
    33 #include <SDL/SDL.h>
    34 
    35 #include "environment.h"
     26#include "orxonox.h"
    3627#include "world.h"
    37 #include "input_output.h"
     28#include "camera.h"
    3829#include "data_tank.h"
    39 #include "stdincl.h"
    40 #include "player.h"
    41 #include "npc.h"
    42 #include "shoot_laser.h"
    43 
    44 #include "orxonox.h"
     30#include "command_node.h"
    4531
    4632using namespace std;
    47 
    4833
    4934Orxonox::Orxonox ()
     
    5944        if( world != NULL) delete world;
    6045        if( localinput != NULL) delete world;
    61         if( localcamera != NULL) delete camera;
     46        if( localcamera != NULL) delete localcamera;
    6247        if( resources != NULL) delete resources;
    6348}
     
    7964void Orxonox::get_config_file (int argc, char** argv)
    8065{
    81         char* path;
     66/*      char* path;
    8267        #ifdef __WIN32__
    8368        path = getenv("");
     
    8873        if( path != NULL) strcpy (configfilename, path);
    8974        else strcpy (configfilename, "./");
    90         strcat (configfilename, "/.orxonox.conf");
     75        strcat (configfilename, "/.orxonox.conf");*/
     76       
     77        strcpy (configfilename, "./orxonox.conf");
    9178}
    9279
     
    207194void Orxonox::mainLoop()
    208195{
     196        lastframe = SDL_GetTicks();
     197
    209198  // This is where everything is run
    210199  while( !bQuitOrxonox)
     
    237226{
    238227        // localinput
    239                 localinput.process();
     228                localinput->process();
    240229        // remoteinput
    241230}
     
    261250{
    262251                // clear buffer
    263         glClear( GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT);
     252        glClear( GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT);
    264253                // set camera
    265254        localcamera->apply ();
     
    276265}
    277266
    278 Camera* Orxonox::get_localinput ()
     267CommandNode* Orxonox::get_localinput ()
    279268{
    280269        return localinput;
    281270}
    282271
    283 Camera* Orxonox::get_world ()
     272World* Orxonox::get_world ()
    284273{
    285274        return world;
     
    295284    return -1;
    296285  }
    297 
    298         lastframe = SDL_GetTicks();
    299286       
    300287  (*orx).mainLoop();
Note: See TracChangeset for help on using the changeset viewer.