diff options
| author | auth12 <[email protected]> | 2020-08-06 15:33:18 +0100 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-08-06 15:33:18 +0100 |
| commit | d120e7b489adc42a4489c63305413dfe52ed8bbf (patch) | |
| tree | 6c114e3b0e8f22aa4c0210e2006a88ec63182b95 /client/src/ui/ui.h | |
| parent | More ui improvements. (diff) | |
| download | loader-d120e7b489adc42a4489c63305413dfe52ed8bbf.tar.xz loader-d120e7b489adc42a4489c63305413dfe52ed8bbf.zip | |
Improved CPU usage drastically.
Switched to directx9.
Reduced RAM usage by only remapping modules from a blacklist.
Diffstat (limited to 'client/src/ui/ui.h')
| -rw-r--r-- | client/src/ui/ui.h | 16 |
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 |