mirror of https://github.com/AxioDL/boo.git
fixed conflicting macx qmake rules
This commit is contained in:
parent
6e766bfe5e
commit
41ae47c14a
|
@ -8,8 +8,11 @@ class CCGLContext final : public IContext
|
|||
{
|
||||
public:
|
||||
CCGLContext();
|
||||
virtual ~CCGLContext() {}
|
||||
virtual ~CCGLContext();
|
||||
|
||||
bool create();
|
||||
void setMinVersion (const int& min) override;
|
||||
void setMajorVersion(const int& maj) override;
|
||||
const std::string version() const override;
|
||||
const std::string name() const override;
|
||||
int depthSize() const override;
|
||||
|
|
19
libBoo.pri
19
libBoo.pri
|
@ -6,26 +6,27 @@ HEADERS += \
|
|||
$$PWD/include/ISurface.hpp \
|
||||
$$PWD/include/IRetraceWaiter.hpp
|
||||
|
||||
unix:HEADERS += \
|
||||
$$PWD/include/CGLXContext.hpp \
|
||||
|
||||
mac:HEADERS -= \
|
||||
unix:!macx:HEADERS += \
|
||||
$$PWD/include/CGLXContext.hpp
|
||||
|
||||
mac:HEADERS += \
|
||||
$$PWD/include/CCGLContext.hpp
|
||||
|
||||
win32:HEADERS += \
|
||||
$$PWD/include/CWGLContext.hpp \
|
||||
$$PWD/include/CWGLContext.hpp
|
||||
|
||||
unix:SOURCES += \
|
||||
$$PWD/src/CGLXContext.cpp \
|
||||
SOURCES += \
|
||||
$$PWD/src/CSurface.cpp \
|
||||
$$PWD/src/CCGLContext.cpp \
|
||||
$$PWD/src/CRetraceWaiter.cpp
|
||||
|
||||
mac:SOURCES -= \
|
||||
unix:!macx:SOURCES += \
|
||||
$$PWD/src/CGLXContext.cpp
|
||||
|
||||
mac:OBJECTIVE_SOURCES += \
|
||||
$$PWD/src/CCGLCocoaView.mm
|
||||
|
||||
win32:SOURCES += \
|
||||
$$PWD/src/CWGLContext.cpp \
|
||||
$$PWD/src/CWGLContext.cpp
|
||||
|
||||
INCLUDEPATH += $$PWD/include
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
CONFIG -= Qt
|
||||
CONFIG += app c++11
|
||||
|
||||
unix:CONFIG += link_pkgconfig
|
||||
unix:PKGCONFIG += x11
|
||||
unix:!macx:CONFIG += link_pkgconfig
|
||||
unix:!macx:PKGCONFIG += x11
|
||||
|
||||
include(libBoo.pri)
|
||||
include(test/test.pri)
|
||||
|
|
|
@ -2,10 +2,32 @@
|
|||
#include <iostream>
|
||||
|
||||
CCGLContext::CCGLContext()
|
||||
: m_majVersion(3),
|
||||
m_minVersion(3)
|
||||
{
|
||||
std::cout << "Hello from CGL" << std::endl;
|
||||
}
|
||||
|
||||
CCGLContext::~CCGLContext()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
bool CCGLContext::create()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void CCGLContext::setMinVersion(const int& min)
|
||||
{
|
||||
m_minVersion = min;
|
||||
}
|
||||
|
||||
void CCGLContext::setMajorVersion(const int& maj)
|
||||
{
|
||||
m_majVersion = maj;
|
||||
}
|
||||
|
||||
const std::string CCGLContext::version() const
|
||||
{
|
||||
return "Invalid version";
|
||||
|
|
Loading…
Reference in New Issue