mirror of https://github.com/AxioDL/boo.git
28 lines
519 B
C++
28 lines
519 B
C++
|
#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
|