Rename Display to Window.
It makes more sense to be consistent and always call it window.
This commit is contained in:
parent
416a71f744
commit
24da7f45e0
33 changed files with 257 additions and 255 deletions
26
source/Window/GLContext.cpp
Normal file
26
source/Window/GLContext.cpp
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
|
||||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue