27 bufferSize.x = bufferSize.y = 0;
120 if (
sz<=0)
return pt;
155 if (
dims.rgbButtons[0]==0x80)
ret = 1;
156 else if (
dims.rgbButtons[1]==0x80)
ret = 2;
157 else if (
dims.rgbButtons[2]==0x80)
ret = 3;
196 angleX = angleY = angleZ = 0.0;
203 startTime = (double)timeGetTime();
205 D3DXMatrixIdentity(&matRotate);
206 D3DXMatrixIdentity(&matTrans);
207 D3DXMatrixIdentity(&matTemp);
263 if (
dims.rgbButtons[0]==0x80) {
265 if (
pt.x>=0 &&
pt.y>=0) {
309 else DEBUG_ERROR(
"CDxVTXBaseView::OnTimer(): ERROR: 表示可能なデータがありません\n");
349 HRESULT hr = lpD3DDevice->TestCooperativeLevel();
350 if (hr==D3D_OK)
return hr;
354 hr = lpD3DDevice->TestCooperativeLevel();
355 }
while (hr==D3DERR_DEVICELOST);
357 if (hr==D3DERR_DEVICENOTRESET) {
360 hr = lpD3DDevice->Reset(pd3dParam);
362 DEBUG_INFO(
"jbxwl::ResetDx9Device(): Reseted Dx9 Device.\n");
366 DEBUG_ERROR(
"jbxwl::ResetDx9Device(): Failed to Reset.\n");
virtual void ViewDestructor(CExView *vw)
virtual void OnActivateView(BOOL bActivate, CView *pActivateView, CView *pDeactiveView)
LPDIRECT3DDEVICE9 lpD3DDevice
LPDIRECTINPUTDEVICE8 lpDKeyBoard
LPDIRECTINPUTDEVICE8 lpDMouse
D3DPRESENT_PARAMETERS d3dParam
virtual int GetMouseButton()
LPDIRECT3DSURFACE9 lpBackBuffer
virtual void SetParameter(D3DPRESENT_PARAMETERS *d3dParam, int xsize, int ysize)
BOOL InitDevice(int xsize=0, int ysize=0, CWnd *cwnd=NULL)
POINT GetWindowDisplaySize(POINT pt)
virtual void ClearObject(void)
virtual void InitObject(void)
LPDIRECT3DSURFACE9 lpSurface
LPDIRECT3DTEXTURE9 lpTexture
virtual ~CDxVTXBaseView()
virtual void OnDraw(CDC *pDC)
virtual void ReleaseVB(void)
virtual void ExecRotation(void)
afx_msg void OnTimer(UINT_PTR nIDEvent)
virtual void SwitchRotation(void)
virtual void ExecRender(void)
virtual void ExRotationAngle(void)
virtual void ExMouseWheel(void)
virtual void OnActivateView(BOOL bActivate, CView *pActivateView, CView *pDeactiveView)
POINT ExecWindowReSize(int xs, int ys)
afx_msg void OnTimer(UINT_PTR nIDEvent)
LPDIRECTINPUTDEVICE8 GpDMouse
HRESULT ResetDx9Device(LPDIRECT3DDEVICE9, D3DPRESENT_PARAMETERS *, CDxBaseView *pviw=NULL)
LPDIRECTINPUTDEVICE8 GpDKeyBoard
LPDIRECT3DDEVICE9 Dx9CreateGraphic(LPDIRECT3D9, D3DPRESENT_PARAMETERS *, HWND)