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