aboutsummaryrefslogtreecommitdiff
path: root/client/src/ui/ui.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/ui/ui.h')
-rw-r--r--client/src/ui/ui.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/client/src/ui/ui.h b/client/src/ui/ui.h
index 7fd3248..4ad7c76 100644
--- a/client/src/ui/ui.h
+++ b/client/src/ui/ui.h
@@ -2,23 +2,21 @@
#include "imgui/imgui.h"
+#include "imgui/imgui_impl_dx9.h"
#include "imgui/imgui_impl_win32.h"
-#include "imgui/imgui_impl_dx11.h"
#include "imgui/imgui_stdlib.h"
-#include <d3d11.h>
+
+#include <d3d9.h>
namespace ui {
- extern ID3D11Device* device;
- extern ID3D11DeviceContext* device_context;
- extern IDXGISwapChain* swap_chain;
- extern ID3D11RenderTargetView* main_render_target;
+ extern IDirect3D9* d3d;
+ extern IDirect3DDevice9* device;
+ extern D3DPRESENT_PARAMETERS present_params;
LRESULT 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 });
+ HWND create_window(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