]> Dogcows Code - chaz/yoink/blobdiff - src/moof/video.hh
compression functions; fixed texture seams
[chaz/yoink] / src / moof / video.hh
index 9ec795f0f0ed1c4312f486e676f9d2703743990d..1349b673e3bd9eeefac0f4322b21f51fa623902b 100644 (file)
@@ -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_;
        }
This page took 0.019891 seconds and 4 git commands to generate.