📄 initview.h
字号:
/*//////////////////////////////////////////////////////
//
// by 啊德
//
*//////////////////////////////////////////////////////
// initView.h : interface of the CInitView class
//
/////////////////////////////////////////////////////////////////////////////
//第二步,添加gl头文件
#include "gl\gl.h"
#include "gl\glu.h"
#include "gl\glaux.h"
#if !defined(AFX_INITVIEW_H__4975F5D6_8284_471E_982E_787061E17A37__INCLUDED_)
#define AFX_INITVIEW_H__4975F5D6_8284_471E_982E_787061E17A37__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CInitView : public CView
{
protected: // create from serialization only
CInitView();
DECLARE_DYNCREATE(CInitView)
// Attributes
public:
CInitDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CInitView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
int stat;
void myinit();
void draw_boat();
void draw_people();
HGLRC hglrc;
virtual ~CInitView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CInitView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnDrawBoat();
afx_msg void OnDrawPeople();
afx_msg void OnExit();
afx_msg void OnMoveLeft();
afx_msg void OnMoveRight();
afx_msg void OnMoveUp();
afx_msg void OnRotateX();
afx_msg void OnRotateY();
afx_msg void OnRotateZ();
afx_msg void OnRotateZ45();
afx_msg void OnZoomIn();
afx_msg void OnZoomOut();
afx_msg void OnMoveDown();
afx_msg void OnCut();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in initView.cpp
inline CInitDoc* CInitView::GetDocument()
{ return (CInitDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_INITVIEW_H__4975F5D6_8284_471E_982E_787061E17A37__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -