X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fvideo.hh;h=1349b673e3bd9eeefac0f4322b21f51fa623902b;hp=9ec795f0f0ed1c4312f486e676f9d2703743990d;hb=62f3ceaff75a6b08cb1aec9a465773bb81a2d79d;hpb=44b3014bce798789e795242d1556cb7449e6386a diff --git a/src/moof/video.hh b/src/moof/video.hh index 9ec795f..1349b67 100644 --- a/src/moof/video.hh +++ b/src/moof/video.hh @@ -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_; }