diff options
Diffstat (limited to 'src/client/video.h')
-rw-r--r-- | src/client/video.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/src/client/video.h b/src/client/video.h index edf7823..314bdbe 100644 --- a/src/client/video.h +++ b/src/client/video.h @@ -7,30 +7,26 @@ namespace client { -class Video +/// the client video subsystem +namespace video { -public: - Video(); - ~Video(); - - /// initialize the video subsystem - void init(); - /// shutdown the video subsystem - void shutdown(); + /// initialize the client video subsystem + extern bool init(); + /// shutdown the client video subsystem + extern void shutdown(); /// draw the next client video frame - void frame(float seconds); + extern void frame(float seconds); /// reset and clear the viewport - void reset(); - - /// Width of the SDL window in pixels - int width; - /// Height of the SDL window in pixels - int height; - /// True if the video subsystem is initialized - bool initialized; + extern void reset(); + + /// width of the SDL window in pixels + extern int width; + /// height of the SDL window in pixels + extern int height; /// width/height ratio - float ratio; -}; + extern float aspect; + +} // namespace video } // namespace client |