1
0
Fork 0
spectre/source/Window/GLContext.cpp
Henrik Hautakoski 24da7f45e0 Rename Display to Window.
It makes more sense to be consistent and always call it window.
2023-08-22 07:12:47 +02:00

26 lines
456 B
C++

#include <Spectre/Window/GLContext.h>
#ifdef SPECTRE_PLATFORM_WIN
#include <Platform/Win32/Win32GLContext.h>
typedef sp::Win32GLContext ContextType;
#elif SPECTRE_PLATFORM_UNIX
#include <Platform/Unix/GLXContext.h>
typedef sp::GLXContext ContextType;
#else
#error "No GLContext implementation exists"
#endif
namespace sp {
GLContext* GLContext::create()
{
return new ContextType();
}
GLContext::~GLContext()
{
// Nothing to do.
}
} // namespace sp