![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include "../../common/gui/video.h"#include "pover_global.h"
Include dependency graph for pover_video.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | pover_video |
Functions | |
| bool | g_last_frame () |
| bool | g_next_frame () |
| DEFINE int frame_skips | INIT (10) |
| DEFINE bool g_useGraphics | INIT (true) |
| DEFINE int maprXLoc | INIT (530) |
| DEFINE const char *g_windowTitle | INIT ("Polygon Overlay") |
| DEFINE int map2XLoc | INIT (270) |
| DEFINE int g_ywinsize | INIT (768) |
| DEFINE int g_xwinsize | INIT (1024) |
| DEFINE class video *gVideo | INIT (0) |
| bool | initializeVideo (int argc, char **argv) |
| void | rt_sleep (int msec) |
| 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;
}
| DEFINE bool g_useGraphics INIT | ( | true | ) |
| DEFINE const char* g_windowTitle INIT | ( | "Polygon Overlay" | ) |
| DEFINE int g_ywinsize INIT | ( | 768 | ) |
| DEFINE int g_xwinsize INIT | ( | 1024 | ) |
| 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.
{
usleep(msec*1000);
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.