X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fvideo.hh;h=1349b673e3bd9eeefac0f4322b21f51fa623902b;hp=6b4980e519fb48391f5249bb109cf3d979f8f1a5;hb=62f3ceaff75a6b08cb1aec9a465773bb81a2d79d;hpb=574af38ed616d1adfa5e6ce35f67cda1f707f89d diff --git a/src/moof/video.hh b/src/moof/video.hh index 6b4980e..1349b67 100644 --- a/src/moof/video.hh +++ b/src/moof/video.hh @@ -10,11 +10,6 @@ #ifndef _MOOF_VIDEO_HH_ #define _MOOF_VIDEO_HH_ -/** - * \file video.hh - * Classes for managing a video context. - */ - #include #include @@ -25,6 +20,11 @@ #include +/** + * \file video.hh + * Classes for managing a video context. + */ + namespace moof { @@ -47,8 +47,7 @@ public: int stencil_buffer; int accumulator_buffer[4]; // rgba bool is_stereo; - int multisample_buffers; - int multisample_samples; + int multisamples; bool is_swap_control; bool is_hardware_only; int mode[3]; // width, height, bpp @@ -118,7 +117,16 @@ public: /** * Get the current video context where draw commands are sent. */ - static video* current() + static video& current() + { + return *current_; + } + + /** + * Get whether or not a video context is in place and is ready to + * received drawing commands. + */ + static bool ready() { return current_; }