Window Procedure work and Alt-Enter fullscreen toggle
This commit is contained in:
1 parent
5777478858
commit
8e4ed26755
8 files changed
+71
-101
No files matched your search
@@ -9,8 +9,11 @@ namespace nf {
|
||||
Application() = delete;
|
||||
Application(Application& other) = delete;
|
||||
|
||||
Config& getConfig();
|
||||
void setWindowIcon(HANDLE hIcon);
|
||||
void setWindowCursor(HCURSOR hCursor);
|
||||
void startLoop();
|
||||
void showWindow(bool show);
|
||||
Config& getConfig();
|
||||
|
||||
~Application();
|
||||
private:
|
||||
@@ -21,6 +24,7 @@ namespace nf {
|
||||
static LRESULT CALLBACK WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||
|
||||
Config m_currentConfig;
|
||||
bool m_running;
|
||||
HINSTANCE m_hInst;
|
||||
LPCWSTR m_wclassName;
|
||||
HWND m_window;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include <chrono>
|
||||
#include <thread>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
@@ -7,9 +8,12 @@ namespace nf {
|
||||
#ifdef _DEBUG
|
||||
#define __FILENAME__ strrchr(__FILE__, '\\') + 1
|
||||
#define DEBUGINIT std::chrono::steady_clock::time_point Debug::m_initTime = std::chrono::high_resolution_clock::now();
|
||||
#define SleepS(x) std::this_thread::sleep_for(std::chrono::seconds(x))
|
||||
#define SleepMS(x) std::this_thread::sleep_for(std::chrono::milliseconds(x))
|
||||
#define Log(x) Debug::LogImp(x)
|
||||
#define Error(x) Debug::ErrorImp(x,__FILENAME__, __LINE__);\
|
||||
DebugBreak();
|
||||
|
||||
class Debug {
|
||||
private:
|
||||
static std::chrono::steady_clock::time_point m_initTime;
|
||||
|
||||
Reference in new issue
Block a user