renamed IContext -> IGraphicsContext

This commit is contained in:
Jack Andersen 2015-04-18 14:09:24 -10:00
parent 41ae47c14a
commit f358c092aa
5 changed files with 12 additions and 12 deletions

View File

@ -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();

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -4,7 +4,7 @@
int main(int argc, char** argv)
{
IContext* ctx = new CContext;
IGraphicsContext* ctx = new CGraphicsContext;
if (ctx->create())
{