Initial commit
This commit is contained in:
commit
edfc5298e1
252 changed files with 93965 additions and 0 deletions
19
source/Display/GLContext.cpp
Normal file
19
source/Display/GLContext.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#include <Spectre/Display/GLContext.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Platform/Win32/Win32GLContext.h>
|
||||
typedef Win32GLContext ContextType;
|
||||
#else
|
||||
#error "No GLContext implementation exists"
|
||||
#endif
|
||||
|
||||
GLContext* GLContext::create()
|
||||
{
|
||||
return new ContextType();
|
||||
}
|
||||
|
||||
GLContext::~GLContext()
|
||||
{
|
||||
// Nothing to do.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue