22 #define designedWidthC 1680.0f 23 #define designedHeightC 1050.0f 35 Resource(
const char* prmName, _D3DPOOL prmPool)
37 strcpy_s(
name, 32, prmName);
45 BOOL
IsDepthFormatOk(D3DFORMAT DepthFormat, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat)
const;
71 static bool CALLBACK
IsDeviceAcceptable(D3DCAPS9* pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat,
bool bWindowed,
void* pUserContext);
72 static bool CALLBACK
ModifyDeviceSettings(DXUTDeviceSettings* pDeviceSettings,
void* pUserContext);
73 static HRESULT CALLBACK
OnCreateDevice(IDirect3DDevice9* pd3dDevice,
const D3DSURFACE_DESC* pBackBufferSurfaceDesc,
void* pUserContext);
74 static HRESULT CALLBACK
OnResetDevice(IDirect3DDevice9* pd3dDevice,
const D3DSURFACE_DESC* pBackBufferSurfaceDesc,
void* pUserContext);
75 static void CALLBACK
OnFrameMove(
double fTime,
float fElapsedTime,
void* pUserContext);
76 static void CALLBACK
OnFrameRender(IDirect3DDevice9* pd3dDevice,
double fTime,
float fElapsedTime,
void* pUserContext);
77 static LRESULT CALLBACK
MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam,
bool* pbNoFurtherProcessing,
void* pUserContext);
78 static void CALLBACK
KeyboardProc(UINT nChar,
bool bKeyDown,
bool bAltDown,
void* pUserContext);
82 void LoadTexture(LPDIRECT3DTEXTURE9* resource,
const std::string& pointerName,
const WCHAR* file, D3DFORMAT format = D3DFMT_A8R8G8B8);
static void CALLBACK OnLostDevice(void *pUserContext)
static void CALLBACK KeyboardProc(UINT nChar, bool bKeyDown, bool bAltDown, void *pUserContext)
std::vector< Resource > trackedResources
static void CALLBACK OnDestroyDevice(void *pUserContext)
BOOL IsDepthFormatOk(D3DFORMAT DepthFormat, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat) const
static LRESULT CALLBACK MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, bool *pbNoFurtherProcessing, void *pUserContext)
void AutopilotDisconnect() const
static HRESULT CALLBACK OnResetDevice(IDirect3DDevice9 *pd3dDevice, const D3DSURFACE_DESC *pBackBufferSurfaceDesc, void *pUserContext)
static void CALLBACK OnFrameRender(IDirect3DDevice9 *pd3dDevice, double fTime, float fElapsedTime, void *pUserContext)
static float GetCpuSpeedMhz()
std::vector< Module * > modules
void ToggleFullScreen(bool goFullScreen)
static HRESULT CALLBACK OnCreateDevice(IDirect3DDevice9 *pd3dDevice, const D3DSURFACE_DESC *pBackBufferSurfaceDesc, void *pUserContext)
static bool CALLBACK IsDeviceAcceptable(D3DCAPS9 *pCaps, D3DFORMAT AdapterFormat, D3DFORMAT BackBufferFormat, bool bWindowed, void *pUserContext)
void LostScannerTarget(const char *msg) const
void RequestScannerData() const
void RequestClose() const
void GetProgramVersion(int &major, int &minor, int &build, int &revision) const
void UseOrDisuseInventoryItemType(int itemtype, int itemId, int vehicleId) const
void RepairVehicle() const
void KillScannerData() const
HRESULT InitDirectInput(HWND hDlg) const
void LoadTexture(LPDIRECT3DTEXTURE9 *resource, const std::string &pointerName, const WCHAR *file, D3DFORMAT format=D3DFMT_A8R8G8B8)
void ScreenCapture() const
bool lastDeviceChangedInput
void FlightDirectorOn() const
void SendScreenShot(HBITMAP hbitmap) const
static void CALLBACK OnFrameMove(double fTime, float fElapsedTime, void *pUserContext)
bool lastDeviceChangedSound
Resource(const char *prmName, _D3DPOOL prmPool)
void AddTrackedResource(const char *name, _D3DPOOL pool=D3DPOOL_MANAGED)
void LostVerticalTarget() const
void UpdateTrackedResource(const char *name, int status)
void GearDownShift() const
static void TouchFile(const WCHAR *str)
static bool CALLBACK ModifyDeviceSettings(DXUTDeviceSettings *pDeviceSettings, void *pUserContext)