diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 18:42:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 18:42:05 +0000 |
commit | 151a2ac2434f4b4c23c107d9c21e4a18dd1a3c68 (patch) | |
tree | 18154b52b44327de28d82ff187f25c8369ddc5d9 /src/client/video.h | |
parent | 09fb43f3d36847977ac202c10c5a11f34af03a43 (diff) |
converted client:: singleton classes to namespaces
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 |