Shadowrun: Awakened 29 September 2011 - Build 871
Defines | Functions
pover_video.cpp File Reference
#include <iostream>
#include "polyover.h"
#include "polymain.h"
#include "pover_video.h"
#include "tbb/tick_count.h"
#include "tbb/task_scheduler_init.h"
#include <sys/time.h>
#include <unistd.h>
Include dependency graph for pover_video.cpp:

Go to the source code of this file.

Defines

#define VIDEO_WINMAIN_ARGS

Functions

bool g_last_frame ()
bool g_next_frame ()
bool initializeVideo (int argc, char **argv)
void rt_sleep (int msec)

Define Documentation

Definition at line 31 of file pover_video.cpp.


Function Documentation

bool g_last_frame ( )

Definition at line 69 of file pover_video.cpp.

References gVideo, n_next_frame_calls, video::next_frame(), and video::running.

                    {
    if(n_next_frame_calls) return gVideo->next_frame(); 
    return gVideo->running;
}
bool g_next_frame ( )

Definition at line 61 of file pover_video.cpp.

References frame_skips, gVideo, n_next_frame_calls, video::next_frame(), and video::running.

                    {
    if(++n_next_frame_calls >= frame_skips) { // the data race here is benign
        n_next_frame_calls = 0; 
        return gVideo->next_frame();
    } 
    return gVideo->running;
}
bool initializeVideo ( int  argc,
char **  argv 
)

Definition at line 74 of file pover_video.cpp.

References g_useGraphics, g_windowTitle, g_xwinsize, g_ywinsize, gVideo, video::init_console(), video::init_window(), and video::title.

Referenced by main().

                                            {
    //pover_video *l_video = new pover_video();
    //gVideo = l_video;
    gVideo->init_console();  // don't check return code.
    gVideo->title = g_windowTitle;
    g_useGraphics = gVideo->init_window(g_xwinsize, g_ywinsize);
    return true;
}
void rt_sleep ( int  msec)

Definition at line 42 of file pover_video.cpp.

Referenced by main(), main_init_parts(), PolygonsOverlap(), and rt_finalize().

                        {
    usleep(msec*1000);
}

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net