2#include <Cyrus/Classes/CoreObject.h>
3#include <Cyrus/Classes/Window.h>
6#pragma comment(lib, "d3d9.lib")
8static HWND window =
nullptr;
10static HMODULE hModule;
20typedef HRESULT(APIENTRY *DrawIndexedPrimitive)(LPDIRECT3DDEVICE9,
21 D3DPRIMITIVETYPE, INT, UINT,
23HRESULT APIENTRY DrawIndexedPrimitive_hook(LPDIRECT3DDEVICE9, D3DPRIMITIVETYPE,
24 INT, UINT, UINT, UINT, UINT);
25static DrawIndexedPrimitive DrawIndexedPrimitive_orig = 0;
27typedef HRESULT(APIENTRY *EndScene)(LPDIRECT3DDEVICE9);
28HRESULT APIENTRY EndScene_hook(LPDIRECT3DDEVICE9);
29static EndScene EndScene_orig = 0;
31typedef HRESULT(APIENTRY *Reset)(LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS *);
32HRESULT APIENTRY Reset_hook(LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS *);
33static Reset Reset_orig = 0;
35typedef LRESULT(CALLBACK *WNDPROC)(HWND, UINT, WPARAM, LPARAM);
37static WNDPROC oWndProc;
39extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg,
40 WPARAM wParam, LPARAM lParam);
Definition CoreObject.h:29
Represents a Wizard101 Window, think anything you see on screen that is not a 3D model.
Definition Window.h:45
float scaling
Definition ui.cpp:24
CoreObject * rootObject
Definition ui.cpp:23
Window * rootWindow
Definition ui.cpp:22