mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-13 23:26:16 +00:00
initial CGL stubs; directory layout
This commit is contained in:
11
include/CCGLContext.hpp
Normal file
11
include/CCGLContext.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef CCGLCONTEXT_HPP
|
||||
#define CCGLCONTEXT_HPP
|
||||
|
||||
#include "IContext.hpp"
|
||||
|
||||
class CCGLContext final : public IContext
|
||||
{
|
||||
|
||||
};
|
||||
|
||||
#endif // CCGLCONTEXT_HPP
|
||||
12
include/IContext.hpp
Normal file
12
include/IContext.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef ICONTEXT_HPP
|
||||
#define ICONTEXT_HPP
|
||||
|
||||
|
||||
class IContext
|
||||
{
|
||||
public:
|
||||
IContext();
|
||||
~IContext();
|
||||
};
|
||||
|
||||
#endif // ICONTEXT_HPP
|
||||
16
include/boo.hpp
Normal file
16
include/boo.hpp
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user