1
0
Fork 0

Rename Display to Window.

It makes more sense to be consistent and always call it window.
This commit is contained in:
Henrik Hautakoski 2023-08-22 07:12:47 +02:00
parent 416a71f744
commit 24da7f45e0
33 changed files with 257 additions and 255 deletions

View file

@ -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) {