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
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
#include "glad_wgl.h"
|
||||
|
||||
#include <Platform/PlatformDisplay.h>
|
||||
#include <Platform/PlatformWindow.h>
|
||||
#include <Spectre/System/Log.h>
|
||||
|
||||
#include "Win32Internal.h"
|
||||
|
|
@ -43,12 +43,12 @@ Win32GLContext::~Win32GLContext()
|
|||
destroy();
|
||||
}
|
||||
|
||||
bool Win32GLContext::create(const PlatformDisplay* display)
|
||||
bool Win32GLContext::create(const PlatformWindow* window)
|
||||
{
|
||||
// If created. destroy old handles.
|
||||
destroy();
|
||||
|
||||
m_wnd = (HWND) display->getHandle();
|
||||
m_wnd = (HWND) window->getHandle();
|
||||
|
||||
// Should have a valid handle here. trigger error.
|
||||
if (!m_wnd) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue