#ifndef _MOOF_VIDEO_HH_
#define _MOOF_VIDEO_HH_
-/**
- * \file video.hh
- * Classes for managing a video context.
- */
-
#include <string>
#include <boost/shared_ptr.hpp>
#include <moof/timer.hh>
+/**
+ * \file video.hh
+ * Classes for managing a video context.
+ */
+
namespace moof {
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
/**
* 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_;
}