mirror of https://github.com/AxioDL/boo.git
renamed IContext -> IGraphicsContext
This commit is contained in:
parent
41ae47c14a
commit
f358c092aa
|
@ -1,10 +1,10 @@
|
|||
#ifndef CCGLCONTEXT_HPP
|
||||
#define CCGLCONTEXT_HPP
|
||||
|
||||
#include "IContext.hpp"
|
||||
#include "IGraphicsContext.hpp"
|
||||
#include <OpenGL/OpenGL.h>
|
||||
|
||||
class CCGLContext final : public IContext
|
||||
class CCGLContext final : public IGraphicsContext
|
||||
{
|
||||
public:
|
||||
CCGLContext();
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
#ifndef ICONTEXT_HPP
|
||||
#define ICONTEXT_HPP
|
||||
#ifndef IGRAPHICSCONTEXT_HPP
|
||||
#define IGRAPHICSCONTEXT_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
class IContext
|
||||
class IGraphicsContext
|
||||
{
|
||||
public:
|
||||
virtual ~IContext() {}
|
||||
virtual ~IGraphicsContext() {}
|
||||
|
||||
virtual void setMinVersion (const int& min)=0;
|
||||
virtual void setMajorVersion(const int& maj)=0;
|
||||
|
@ -19,4 +19,4 @@ public:
|
|||
virtual int blueDepth() const=0;
|
||||
};
|
||||
|
||||
#endif // ICONTEXT_HPP
|
||||
#endif // IGRAPHICSCONTEXT_HPP
|
|
@ -1,16 +1,16 @@
|
|||
#ifndef BOO_HPP
|
||||
#define BOO_HPP
|
||||
|
||||
#include "IContext.hpp"
|
||||
#include "IGraphicsContext.hpp"
|
||||
|
||||
#if defined(_WIN32)
|
||||
#error "No support for WGL"
|
||||
#elif defined(__APPLE__)
|
||||
#include "CCGLContext.hpp"
|
||||
typedef CCGLContext CContext;
|
||||
typedef CCGLContext CGraphicsContext;
|
||||
#elif __linux__
|
||||
#include "CGLXContext.hpp"
|
||||
typedef CGLXContext CContext;
|
||||
typedef CGLXContext CGraphicsContext;
|
||||
#endif
|
||||
|
||||
#endif // BOO_HPP
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
HEADERS += \
|
||||
$$PWD/include/boo.hpp \
|
||||
$$PWD/include/IContext.hpp \
|
||||
$$PWD/include/IGraphicsContext.hpp \
|
||||
$$PWD/include/ISurface.hpp \
|
||||
$$PWD/include/IRetraceWaiter.hpp
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
IContext* ctx = new CContext;
|
||||
IGraphicsContext* ctx = new CGraphicsContext;
|
||||
|
||||
if (ctx->create())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue