Program Listing for File Win32GLFWWindow.cpp¶
↰ Return to documentation for file (Source\Azura\RenderSystem\Src\Generic\Windows\Win32GLFWWindow.cpp
)
#include "Generic/Windows/Win32GLFWWindow.h"
#define GLFW_EXPOSE_NATIVE_WIN32
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
namespace Azura {
Win32GLFWWindow::Win32GLFWWindow(const String& title, U32 width, U32 height)
: GLFWWindow(title, width, height),
m_win32Window() {
}
const void* Win32GLFWWindow::GetHandle() const {
return &m_win32Window;
}
bool Win32GLFWWindow::Initialize() {
const auto result = GLFWWindow::Initialize();
m_win32Window = glfwGetWin32Window(GetGLFWHandle());
return result;
}
} // namespace Azura