boo/include/CGLXContext.hpp

28 lines
519 B
C++
Raw Normal View History

2015-04-18 21:54:41 +00:00
#ifndef CGLXCONTEXT_HPP
#define CGLXCONTEXT_HPP
#include <GL/glx.h>
#include <IContext.hpp>
class CGLXContext final : public IContext
{
public:
CGLXContext();
virtual ~CGLXContext() {}
const std::string version() const override;
const std::string name() const override;
int depthSize() const override;
int redDepth() const override;
int greenDepth() const override;
int blueDepth() const override;
private:
int m_minVersion;
int m_majVersion;
};
#endif // CGLXCONTEXT_HPP