JunkBox_Win_Lib 1.5.3
|
#include <DxBaseClass.h>
Public Member Functions | |
CDxBaseView () | |
virtual | ~CDxBaseView () |
virtual void | OnInitialUpdate (void) |
virtual void | SetState (void) |
virtual void | ExecRender (void) |
virtual void | ClearObject (void) |
virtual void | InitObject (void) |
virtual void | SetParameter (D3DPRESENT_PARAMETERS *d3dParam, int xsize, int ysize) |
POINT | GetWindowDisplaySize (POINT pt) |
BOOL | InitDevice (int xsize=0, int ysize=0, CWnd *cwnd=NULL) |
virtual int | GetMouseButton () |
![]() | |
POINT | GetMousePos () |
POINT | SetWindowSize (int xs, int ys, BOOL first=TRUE) |
POINT | GetWindowSize (POINT pt) |
POINT | GetClientSize (POINT pt) |
POINT | GetWindowReSize (POINT pt) |
POINT | ExecWindowReSize (int xs, int ys) |
void | SetTitle (LPCTSTR title) |
virtual BOOL | SetNewSurface (int ovsbpos=0) |
virtual void | TimerStart (int tm=40) |
virtual void | TimerStop () |
virtual void | OnDraw (CDC *pDC) |
virtual | ~CExView () |
afx_msg BOOL | OnEraseBkgnd (CDC *pDC) |
afx_msg void | OnTimer (UINT_PTR nIDEvent) |
Protected Member Functions | |
virtual void | OnActivateView (BOOL bActivate, CView *pActivateView, CView *pDeactiveView) |
![]() | |
CExView () | |
virtual void | AssertValid () const |
virtual void | Dump (CDumpContext &dc) const |
afx_msg void | OnSize (UINT nType, int cx, int cy) |
afx_msg void | OnVScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
afx_msg BOOL | OnMouseWheel (UINT nFlags, short zDelta, CPoint pt) |
Additional Inherited Members | |
![]() | |
int | timerID |
bool | ctrlMouse |
bool | activeWin |
Definition at line 124 of file DxBaseClass.h.
CDxBaseView | ( | ) |
Definition at line 15 of file DxBaseClass.cpp.
|
virtual |
Definition at line 32 of file DxBaseClass.cpp.
References CExView::cMin, DXRELEASE, CDxBaseView::lpBackBuffer, CDxBaseView::lpD3DDevice, CDxBaseView::lpSurface, CDxBaseView::lpTexture, CExView::pApp, and CAppCallBack::ViewDestructor().
Reimplemented in CDxSRenderView.
Definition at line 70 of file DxBaseClass.cpp.
References CExView::cMin, DXRELEASE, CExView::hasViewData, CDxBaseView::lpBackBuffer, CDxBaseView::lpSurface, and CDxBaseView::lpTexture.
Referenced by jbxwl::ResetDx9Device().
Reimplemented from CExView.
Reimplemented in CDx2DView, CDxSRenderView, CDxVScrollView, CDxVTXBaseView, CDxDirectView, and CDxMGRView.
Definition at line 150 of file DxBaseClass.h.
|
virtual |
マウスボタンチェック マウスの押されたボタンをチェック.
戻り値 0 : ボタンは押されていない. 1 : 左ボタン 2 : 右ボタン 3 : 中ボタン
実装に DirectInput を使用.(~~;
Reimplemented from CExView.
Definition at line 146 of file DxBaseClass.cpp.
References CExView::activeWin, CExView::cMin, and CDxBaseView::lpDMouse.
Reimplemented from CExView.
Definition at line 112 of file DxBaseClass.cpp.
References CExView::cMin, and CDxBaseView::lpD3D.
機能: DirectX9のデバイスを作る. 引数: int cxs, cys ウィンドウの初期サイズ,省略した場合は画像データ(cmnHead)に合わせられる. 戻値: 成功:TRUE, 失敗:FALSE 説明:
Definition at line 52 of file DxBaseClass.cpp.
References CExView::cMin, CDxBaseView::d3dParam, jbxwl::Dx9CreateGraphic(), jbxwl::GpD3D, jbxwl::GpDKeyBoard, jbxwl::GpDMouse, CDxBaseView::lpD3D, CDxBaseView::lpD3DDevice, CDxBaseView::lpDKeyBoard, CDxBaseView::lpDMouse, CDxBaseView::SetParameter(), CExView::xsize, and CExView::ysize.
Referenced by CDx2DView::OnInitialUpdate(), CDxDirectView::OnInitialUpdate(), CDxMGRView::OnInitialUpdate(), CDxSRenderView::OnInitialUpdate(), and CDxVScrollView::OnInitialUpdate().
Reimplemented in CDxSRenderView, CDxVTXBaseView, CDx2DView, CDxDirectView, CDxMGRView, and CDxVScrollView.
Definition at line 152 of file DxBaseClass.h.
References CDxBaseView::SetState().
Referenced by jbxwl::ResetDx9Device().
|
protectedvirtual |
Reimplemented from CExView.
Definition at line 165 of file DxBaseClass.cpp.
References CExView::cMin, CDxBaseView::lpDMouse, and CExView::OnActivateView().
Reimplemented from CExView.
Reimplemented in CDx2DView, CDxDirectView, CDxMGRView, CDxSRenderView, CDxVScrollView, CDx3DDirectView, and CDxVTXBaseView.
Definition at line 148 of file DxBaseClass.h.
|
virtual |
Definition at line 82 of file DxBaseClass.cpp.
References CExView::cMin, CDxBaseView::d3dParam, CExView::xsize, and CExView::ysize.
Referenced by CDxBaseView::InitDevice().
Reimplemented in CDxSRenderView, and CDxVTXBaseView.
Definition at line 149 of file DxBaseClass.h.
Referenced by CDxBaseView::InitObject().
POINT bufferSize |
Definition at line 138 of file DxBaseClass.h.
Referenced by CDxVScrollView::ExecRender(), CDxDirectView::InitObject(), CDxMGRView::InitObject(), CDxVScrollView::InitObject(), CDx2DView::OnInitialUpdate(), CDxDirectView::OnInitialUpdate(), CDxMGRView::OnInitialUpdate(), and CDxVScrollView::OnInitialUpdate().
D3DPRESENT_PARAMETERS d3dParam |
Definition at line 132 of file DxBaseClass.h.
Referenced by CDx2DView::ExecRender(), CDxSRenderView::ExecRender(), CDxVScrollView::ExecRender(), CDxDirectView::ExecRender(), CDxMGRView::ExecRender(), CDxBaseView::InitDevice(), and CDxBaseView::SetParameter().
LPDIRECT3DSURFACE9 lpBackBuffer |
Definition at line 129 of file DxBaseClass.h.
Referenced by CDxBaseView::ClearObject(), CDx2DView::ExecRender(), CDxVScrollView::ExecRender(), CDxDirectView::ExecRender(), CDxMGRView::ExecRender(), CDx2DView::InitObject(), CDxDirectView::InitObject(), CDxMGRView::InitObject(), CDxVScrollView::InitObject(), CDx2DView::OnInitialUpdate(), CDxDirectView::OnInitialUpdate(), CDxMGRView::OnInitialUpdate(), CDxVScrollView::OnInitialUpdate(), and CDxBaseView::~CDxBaseView().
LPDIRECT3D9 lpD3D |
Definition at line 127 of file DxBaseClass.h.
Referenced by CDxBaseView::GetWindowDisplaySize(), and CDxBaseView::InitDevice().
LPDIRECT3DDEVICE9 lpD3DDevice |
Definition at line 128 of file DxBaseClass.h.
Referenced by CDx2DView::ExecRender(), CDxSRenderView::ExecRender(), CDxVScrollView::ExecRender(), CDxDirectView::ExecRender(), CDxMGRView::ExecRender(), CDxVTXBaseView::ExecRotation(), CDxSRenderView::ExMouseWheel(), CDxBaseView::InitDevice(), CDx2DView::InitObject(), CDxDirectView::InitObject(), CDxMGRView::InitObject(), CDxVScrollView::InitObject(), CDx2DView::OnInitialUpdate(), CDxDirectView::OnInitialUpdate(), CDxMGRView::OnInitialUpdate(), CDxVScrollView::OnInitialUpdate(), CDxVScrollView::OnSize(), CDxSRenderView::PrepareVB(), CDxSRenderView::SetState(), and CDxBaseView::~CDxBaseView().
LPDIRECTINPUT8 lpDInput |
Definition at line 134 of file DxBaseClass.h.
LPDIRECTINPUTDEVICE8 lpDKeyBoard |
Definition at line 136 of file DxBaseClass.h.
Referenced by CDxBaseView::InitDevice().
LPDIRECTINPUTDEVICE8 lpDMouse |
Definition at line 135 of file DxBaseClass.h.
Referenced by CDxVTXBaseView::ExecRotation(), CDxBaseView::GetMouseButton(), CDxBaseView::InitDevice(), and CDxBaseView::OnActivateView().
LPDIRECT3DSURFACE9 lpSurface |
Definition at line 130 of file DxBaseClass.h.
Referenced by CDxBaseView::ClearObject(), CDx2DView::ExecRender(), CDxVScrollView::ExecRender(), CDxDirectView::ExecRender(), CDxMGRView::ExecRender(), CDx2DView::InitObject(), CDxDirectView::InitObject(), CDxMGRView::InitObject(), CDxVScrollView::InitObject(), CDx2DView::OnInitialUpdate(), CDxDirectView::OnInitialUpdate(), CDxMGRView::OnInitialUpdate(), CDxVScrollView::OnSize(), CDxVScrollView::SetNewSurface(), CDxDirectView::SetNewSurface(), CDxMGRView::SetNewSurface(), and CDxBaseView::~CDxBaseView().
LPDIRECT3DTEXTURE9 lpTexture |
Definition at line 131 of file DxBaseClass.h.
Referenced by CDxBaseView::ClearObject(), and CDxBaseView::~CDxBaseView().