vclass CMBGLView
: public CView
v{
v…
v // Gestione trackball
v CITrackball m_tb;
v Matrix44f m_matRot;
v
bool m_bCaptured;
v…
v};
v
vvoid
CMBGLView::OnInitialUpdate()
v{
v…
v CRect
rc;
v GetClientRect(&rc);
v m_tb.Init(rc.right,rc.bottom);
v m_matRot.SetIdentity();
v}
vvoid
CMBGLView::OnSize(UINT nType, int cx, int cy)
v{
v…
v m_tb.Resize( cx,cy );
v…
v}
v
v