www.pudn.com > 3DShow-v.rar > 3DShowView.h, change:2007-04-28,size:2672b
// 3DShowView.h : interface of the CMy3DShowView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_3DSHOWVIEW_H__816D01EF_AFFA_4EDA_BE8E_2E9EC98124E0__INCLUDED_)
#define AFX_3DSHOWVIEW_H__816D01EF_AFFA_4EDA_BE8E_2E9EC98124E0__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include"gl\gl.h"
#include"gl\glu.h"
#include"gl\glaux.h"
class CMy3DShowView : public CView
{
protected: // create from serialization only
CMy3DShowView();
DECLARE_DYNCREATE(CMy3DShowView)
// Attributes
public:
CMy3DShowDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMy3DShowView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void light();
void myinit();
void Draw();
GLfloat m_zRotation;
GLfloat m_yRotation;
GLfloat m_xRotation;
GLfloat m_zTranslation;
GLfloat m_yTranslation;
GLfloat m_xTranslation;
GLfloat m_xScaling,
m_yScaling,
m_zScaling;
BOOL bLight;
BOOL bXYZ;
HGLRC hglrc;
CClientDC * m_pDC;
CPoint m_RightDownPos;
CPoint m_LeftDownPos;
BOOL m_RightButtonDown;
BOOL m_LeftButtonDown;
virtual ~CMy3DShowView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CMy3DShowView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDisplayXyz();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in 3DShowView.cpp
inline CMy3DShowDoc* CMy3DShowView::GetDocument()
{ return (CMy3DShowDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_3DSHOWVIEW_H__816D01EF_AFFA_4EDA_BE8E_2E9EC98124E0__INCLUDED_)