boo/include/mac/CCGLContext.hpp

30 lines
699 B
C++
Raw Normal View History

2015-04-18 21:45:34 +00:00
#ifndef CCGLCONTEXT_HPP
#define CCGLCONTEXT_HPP
2015-04-19 00:37:52 +00:00
#ifdef __APPLE__
2015-04-19 00:09:24 +00:00
#include "IGraphicsContext.hpp"
2015-04-18 21:57:44 +00:00
#include <OpenGL/OpenGL.h>
2015-04-18 21:45:34 +00:00
2015-04-19 00:09:24 +00:00
class CCGLContext final : public IGraphicsContext
2015-04-18 21:45:34 +00:00
{
2015-04-18 23:36:57 +00:00
public:
CCGLContext();
2015-04-18 23:56:57 +00:00
virtual ~CCGLContext();
2015-04-18 21:45:34 +00:00
2015-04-18 23:56:57 +00:00
bool create();
void setMinVersion (const int& min) override;
void setMajorVersion(const int& maj) override;
2015-04-18 23:36:57 +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_minVersion;
int m_majVersion;
2015-04-18 21:45:34 +00:00
};
2015-04-19 00:37:52 +00:00
#endif // __APPLE__
2015-04-18 21:45:34 +00:00
#endif // CCGLCONTEXT_HPP