From 1fc179609e1392285e7f3fd01289895c6e5de66c Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 16:01:44 +1300 Subject: oopsie >w< it appears i've made a fucky wucky ;w;www --- loader/window.hpp | 59 ------------------------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 loader/window.hpp (limited to 'loader/window.hpp') diff --git a/loader/window.hpp b/loader/window.hpp deleted file mode 100644 index e1efc86..0000000 --- a/loader/window.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#pragma once -#include -#include - -#pragma comment(lib, "d3d9.lib") -#pragma comment(lib, "d3dx9.lib") - -#include -#include - -#include -#pragma comment(lib, "dwmapi.lib") -#pragma comment(lib, "winmm.lib") - -#include - -#include "input_system.hpp" - -namespace d3d -{ - typedef void( *on_frame_fn )( ); - - class c_window { - public: - c_window( ); - ~c_window( ); - - bool create( ); - void on_frame( ); - void add_on_frame( on_frame_fn fn ) { - m_onframe_vec.push_back( fn ); - } - - HWND get_hwnd( ) { return m_hwnd; } - - private: - bool init_d3d( ); - - public: - static LRESULT __stdcall window_procedure( HWND, UINT, WPARAM, LPARAM ); - - private: - HWND m_hwnd{ }; - int m_size[ 2 ]{ }; - - WNDCLASSEX m_wc{ }; - MSG m_msg{ }; - - public: - LPDIRECT3DDEVICE9 m_d3d_device{ }; - D3DPRESENT_PARAMETERS m_present_params{ }; - LPDIRECT3D9 m_d3d{ }; - - private: - std::vector< on_frame_fn > m_onframe_vec; - }; -} - -extern d3d::c_window g_window; \ No newline at end of file -- cgit v1.2.3