Spectre/Window/GLContext: remove static create() method.
This commit is contained in:
parent
f35658a971
commit
ea763a9f38
2 changed files with 0 additions and 18 deletions
|
|
@ -13,8 +13,6 @@ class PlatformWindow;
|
||||||
class GLContext
|
class GLContext
|
||||||
{
|
{
|
||||||
public :
|
public :
|
||||||
static GLContext* create();
|
|
||||||
|
|
||||||
virtual ~GLContext();
|
virtual ~GLContext();
|
||||||
|
|
||||||
// Create a GLContext for this perticular window.
|
// Create a GLContext for this perticular window.
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,7 @@
|
||||||
|
|
||||||
#include <Spectre/Window/GLContext.h>
|
#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 {
|
namespace sp {
|
||||||
|
|
||||||
GLContext* GLContext::create()
|
|
||||||
{
|
|
||||||
return new ContextType();
|
|
||||||
}
|
|
||||||
|
|
||||||
GLContext::~GLContext()
|
GLContext::~GLContext()
|
||||||
{
|
{
|
||||||
// Nothing to do.
|
// Nothing to do.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue