diff options
| author | auth12 <[email protected]> | 2020-08-03 21:08:06 +0100 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-08-03 21:08:06 +0100 |
| commit | ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b (patch) | |
| tree | f376bc6ce8b7ababd4bcc67bee748c6e1d672b0c /client/src/ui/ui.h | |
| parent | Started security. (diff) | |
| download | loader-ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b.tar.xz loader-ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b.zip | |
Added ui.
Diffstat (limited to 'client/src/ui/ui.h')
| -rw-r--r-- | client/src/ui/ui.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/client/src/ui/ui.h b/client/src/ui/ui.h new file mode 100644 index 0000000..3383c25 --- /dev/null +++ b/client/src/ui/ui.h @@ -0,0 +1,24 @@ +#pragma once + +#include "imgui/imgui.h" + +#include "imgui/imgui_impl_win32.h" +#include "imgui/imgui_impl_dx11.h" +#include <d3d11.h> + +namespace ui { + extern ID3D11Device* device; + extern ID3D11DeviceContext* device_context; + extern IDXGISwapChain* swap_chain; + extern ID3D11RenderTargetView* main_render_target; + + LRESULT WINAPI wnd_proc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam); + + HWND create(HINSTANCE instance, const std::pair<int, int> size, const std::pair<int, int> pos = { 400, 400 }); + + + bool create_device(HWND hwnd); + void create_target(); + void cleanup_target(); + void cleanup_device(); +};
\ No newline at end of file |