mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
#ifndef GX_D3D9_H
|
|
#define GX_D3D9_H
|
|
|
|
#include "gx/device.h"
|
|
|
|
#include "external/d3d9/device.h"
|
|
|
|
#include "storm/array.h"
|
|
|
|
DECLARE_STRUCT(CGxDeviceD3d);
|
|
DECLARE_STRUCT(CGxDeviceD3d__GxVertexDecl);
|
|
|
|
struct CGxDeviceD3d__GxVertexDecl {
|
|
uint32_t m_unk00;
|
|
};
|
|
STORM_TS_GROWABLE_ARRAY(CGxDeviceD3d__GxVertexDecl);
|
|
|
|
struct CGxDeviceD3d {
|
|
CGxDevice b_base;
|
|
void* m_hwnd;
|
|
uint16_t m_hwndClass;
|
|
uint16_t unk396E;
|
|
int32_t m_ownhwnd;
|
|
void* m_d3dLib;
|
|
IDirect3D9* m_d3d;
|
|
IDirect3DDevice9* m_d3dDevice;
|
|
D3DCAPS9 m_d3dCaps;
|
|
int32_t m_d3dIsHwDevice;
|
|
int32_t m_d3dNVAPI;
|
|
uint32_t m_d3dStereoEnabled; // UC
|
|
uint32_t unk3ABC;
|
|
uint32_t m_d3dStereoHandle; // UC
|
|
float m_d3dStereoConvergence; // UC
|
|
float m_d3dStereoSeparation; // UC
|
|
int32_t unk3ACC;
|
|
TSGrowableArray_CGxDeviceD3d__GxVertexDecl m_vertexDecl;
|
|
IDirect3DVertexDeclaration9* m_d3dVertexDecl[14];
|
|
D3DDISPLAYMODE m_desktopDisplayMode;
|
|
int32_t m_inScene;
|
|
uint32_t unk3B2C;
|
|
D3DFORMAT m_devDepthFormat;
|
|
D3DFORMAT m_devAdapterFormat;
|
|
uint32_t unk3B38;
|
|
IDirect3DSurface9* m_defColorSurface;
|
|
IDirect3DSurface9* m_defDepthSurface;
|
|
uint32_t unk3B44;
|
|
uint32_t unk3B48;
|
|
int32_t m_hwCursorNeedsUpdate;
|
|
IDirect3DTexture9* m_hwCursorTexture;
|
|
IDirect3DSurface9* m_hwCursorBitmap;
|
|
uint32_t unk3B58;
|
|
IDirect3DVertexDeclaration9* m_d3dCurrentVertexDecl;
|
|
IDirect3DIndexBuffer9* m_d3dCurrentIndexBuf;
|
|
IDirect3DVertexBuffer9* m_d3dVertexStreamBuf[8];
|
|
uint32_t m_d3dVertexStreamOfs[8];
|
|
uint32_t m_d3dVertexStreamStride[8];
|
|
uint32_t m_deviceStates[182];
|
|
bool m_texEnabled[8];
|
|
};
|
|
|
|
#endif
|