diff --git a/include/CCGLContext.hpp b/include/CCGLContext.hpp index 7690e1e..28b874b 100644 --- a/include/CCGLContext.hpp +++ b/include/CCGLContext.hpp @@ -1,10 +1,10 @@ #ifndef CCGLCONTEXT_HPP #define CCGLCONTEXT_HPP -#include "IContext.hpp" +#include "IGraphicsContext.hpp" #include -class CCGLContext final : public IContext +class CCGLContext final : public IGraphicsContext { public: CCGLContext(); diff --git a/include/IContext.hpp b/include/IGraphicsContext.hpp similarity index 73% rename from include/IContext.hpp rename to include/IGraphicsContext.hpp index fcc633c..7ca8d60 100644 --- a/include/IContext.hpp +++ b/include/IGraphicsContext.hpp @@ -1,12 +1,12 @@ -#ifndef ICONTEXT_HPP -#define ICONTEXT_HPP +#ifndef IGRAPHICSCONTEXT_HPP +#define IGRAPHICSCONTEXT_HPP #include -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 diff --git a/include/boo.hpp b/include/boo.hpp index 10aa15a..5654fbc 100644 --- a/include/boo.hpp +++ b/include/boo.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 diff --git a/libBoo.pri b/libBoo.pri index 97e9074..7d22e0e 100644 --- a/libBoo.pri +++ b/libBoo.pri @@ -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 diff --git a/test/main.cpp b/test/main.cpp index 544d17f..f31a297 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -4,7 +4,7 @@ int main(int argc, char** argv) { - IContext* ctx = new CContext; + IGraphicsContext* ctx = new CGraphicsContext; if (ctx->create()) {