Skip to content

Commit

Permalink
Add missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
krOoze committed Oct 8, 2019
1 parent 5b84d11 commit f128294
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WSI/Win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <functional>
#include <string>
#include <vector>
#include <cassert>

#include <Windows.h>
#include <vulkan/vulkan.h>
Expand All @@ -17,6 +18,9 @@
TODO( "Easier to use, but might prevent platform co-existence. Could be namespaced. Make all of this a class?" )
struct PlatformWindow{ HINSTANCE hInstance; HWND hWnd; };

const DWORD windowedStyle = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
const DWORD windowedExStyle = WS_EX_OVERLAPPEDWINDOW | WS_EX_NOREDIRECTIONBITMAP;

std::string getPlatformSurfaceExtensionName(){ return VK_KHR_WIN32_SURFACE_EXTENSION_NAME; };

int messageLoop( PlatformWindow window );
Expand Down Expand Up @@ -76,9 +80,6 @@ int messageLoop( PlatformWindow window ){
return static_cast<int>( msg.wParam );
}

DWORD windowedStyle = WS_OVERLAPPEDWINDOW | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
DWORD windowedExStyle = WS_EX_OVERLAPPEDWINDOW;

void toggleFullscreen( HWND hWnd ){
TODO( "All of this needs to be made a class... death to the static!" )
static bool isFullscreen = false;
Expand Down

0 comments on commit f128294

Please sign in to comment.