Spectre/Window/Window: refactor out GLContext specific code to its own class (GLWindow)
This commit is contained in:
parent
2de3bd93f7
commit
b1ccea1397
7 changed files with 120 additions and 55 deletions
|
|
@ -10,7 +10,7 @@ Graphics::Graphics(PlatformApplication *platform)
|
|||
m_width = 800;
|
||||
m_height = 600;
|
||||
|
||||
m_window = new Window();
|
||||
m_window = new GLWindow();
|
||||
|
||||
// Only have OpenGL atm.
|
||||
m_gfxdrv = new OpenGLDrv();
|
||||
|
|
@ -84,7 +84,7 @@ GfxDriver* Graphics::getDriver()
|
|||
return m_gfxdrv;
|
||||
}
|
||||
|
||||
Window* Graphics::getWindow()
|
||||
GLWindow* Graphics::getWindow()
|
||||
{
|
||||
return m_window;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue