From 151a2ac2434f4b4c23c107d9c21e4a18dd1a3c68 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Feb 2008 18:42:05 +0000 Subject: converted client:: singleton classes to namespaces --- src/client/video.h | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) (limited to 'src/client/video.h') 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 -- cgit v1.2.3