boo/include/CGLXContext.hpp

33 lines
663 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() {}
2015-04-18 23:12:22 +00:00
bool create();
void setMajorVersion(const int& maj) override;
void setMinVersion(const int& min) override;
2015-04-18 21:54:41 +00:00
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_majVersion;
2015-04-18 23:12:22 +00:00
int m_minVersion;
Display* m_display;
2015-04-18 21:54:41 +00:00
};
#endif // CGLXCONTEXT_HPP