1
0
Fork 0

Spectre/Window/GLContext: remove static create() method.

This commit is contained in:
Henrik Hautakoski 2023-08-23 19:45:01 +02:00
parent f35658a971
commit ea763a9f38
2 changed files with 0 additions and 18 deletions

View file

@ -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.

View file

@ -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.