Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7909 in orxonox.OLD for branches/gui/src


Ignore:
Timestamp:
May 27, 2006, 4:23:59 PM (19 years ago)
Author:
bensch
Message:

gui: also works on windows

Location:
branches/gui/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/importer/material.h

    r7876 r7909  
    1616
    1717#include <vector>
    18 #include "SDL_image.h"
    19 
    2018#include "texture.h"
    2119
  • branches/gui/src/lib/util/timer.cc

    r7900 r7909  
    1212#include <sys/time.h>
    1313
     14#ifdef __WIN32__
     15#include <windows.h>
     16int gettimeofday
     17      (struct timeval* tp, void* tzp) {
     18    DWORD t;
     19    t = timeGetTime();
     20    tp->tv_sec = t / 1000;
     21    tp->tv_usec = 1000 * (t % 1000 );
     22    /* 0 indicates success. */
     23    return 0;
     24}
     25#endif
     26
    1427/**
    1528 * @returns the current time in Second exact to the micro-second
     
    1831
    1932#if HAVE_CLOCK_GETTIME
     33
    2034   // use the POSIX realtime clock to get the current time
    2135    struct timespec tp;
  • branches/gui/src/story_entities/game_world.cc

    r7900 r7909  
    367367    this->frameTimes[frameTimesIndex] = currentFrame - this->lastFrame;
    368368    this->lastFrame = currentFrame;
     369    printf("%f\n", currentFrame);
    369370    ++this->cycle;
    370371    this->dtS = 0.0;
Note: See TracChangeset for help on using the changeset viewer.