diff --git a/include/CCGLContext.hpp b/include/CCGLContext.hpp new file mode 100644 index 0000000..7cbdcd2 --- /dev/null +++ b/include/CCGLContext.hpp @@ -0,0 +1,12 @@ +#ifndef CCGLCONTEXT_HPP +#define CCGLCONTEXT_HPP + +#include "IContext.hpp" +#include + +class CCGLContext final : public IContext +{ + +}; + +#endif // CCGLCONTEXT_HPP diff --git a/include/IContext.hpp b/include/IContext.hpp index 27b032e..95e3568 100644 --- a/include/IContext.hpp +++ b/include/IContext.hpp @@ -7,7 +7,7 @@ class IContext { public: virtual ~IContext() {} - + virtual void setMinVersion (const int& min)=0; virtual void setMajorVersion(const int& maj)=0; virtual void create(); @@ -19,4 +19,4 @@ public: virtual int blueDepth() const=0; }; -#endif // ICONTEXT_HPP +#endif // ICONTEXT_HPP \ No newline at end of file diff --git a/include/ISurface.hpp b/include/ISurface.hpp new file mode 100644 index 0000000..c6f2319 --- /dev/null +++ b/include/ISurface.hpp @@ -0,0 +1,9 @@ +#ifndef ISURFACE_HPP +#define ISURFACE_HPP + +class ISurface +{ + +}; + +#endif // CSURFACE_HPP \ No newline at end of file diff --git a/include/boo.hpp b/include/boo.hpp new file mode 100644 index 0000000..10aa15a --- /dev/null +++ b/include/boo.hpp @@ -0,0 +1,16 @@ +#ifndef BOO_HPP +#define BOO_HPP + +#include "IContext.hpp" + +#if defined(_WIN32) +#error "No support for WGL" +#elif defined(__APPLE__) +#include "CCGLContext.hpp" +typedef CCGLContext CContext; +#elif __linux__ +#include "CGLXContext.hpp" +typedef CGLXContext CContext; +#endif + +#endif // BOO_HPP diff --git a/libBoo.pri b/libBoo.pri new file mode 100644 index 0000000..c553323 --- /dev/null +++ b/libBoo.pri @@ -0,0 +1,10 @@ +HEADERS += \ + $$PWD/include/boo.hpp \ + $$PWD/include/IContext.hpp \ + $$PWD/include/CCGLContext.hpp \ + $$PWD/include/ISurface.hpp + +SOURCES += \ + $$PWD/src/CCGLContext.cpp + +INCLUDEPATH += $$PWD/include diff --git a/libBoo.pro b/libBoo.pro index 70c6354..363cfe8 100644 --- a/libBoo.pro +++ b/libBoo.pro @@ -1,9 +1,5 @@ CONFIG -= Qt CONFIG += app c++11 -HEADERS += \ - include/IContext.hpp \ - include/CGLXContext.hpp - -SOURCES += \ - src/CGLXContext.cpp +include(libBoo.pri) +include(test/test.pri) diff --git a/src/CCGLContext.cpp b/src/CCGLContext.cpp new file mode 100644 index 0000000..e69de29 diff --git a/test/main.cpp b/test/main.cpp new file mode 100644 index 0000000..295761d --- /dev/null +++ b/test/main.cpp @@ -0,0 +1,8 @@ + +#include +#include + +int main(int argc, char** argv) +{ + return 0; +} diff --git a/test/test.pri b/test/test.pri new file mode 100644 index 0000000..bf76c86 --- /dev/null +++ b/test/test.pri @@ -0,0 +1,2 @@ +SOURCES += \ + $$PWD/main.cpp \ No newline at end of file