⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gxb_3041222098view.h

📁 zuoye j kjaflk jlka jlk j
💻 H
字号:
// gxb_3041222098View.h : interface of the CGxb_3041222098View class
//
/////////////////////////////////////////////////////////////////////////////
#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glut.h"


#include "math.h"
typedef GLfloat point3[3];
#if !defined(AFX_HGXB_3041222098VIEW_H__3566F7F2_22F6_4BA2_B003_F33DC39C6630__INCLUDED_)
#define AFX_GXB_3041222098VIEW_H__3566F7F2_22F6_4BA2_B003_F33DC39C6630__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


class CGxb_3041222098View : public CView
{
protected: // create from serialization only
	CGxb_3041222098View();
	DECLARE_DYNCREATE(CGxb_3041222098View)

// Attributes
public:
	CGxb_3041222098Doc* GetDocument();
protected:
	CDC *m_pDC;
	HGLRC m_hRC;
	UINT m_timer;
	float m_theta[3];
    int m_axis;
	float viewer[3];
	void DrawScene();
	int id;
	int abc;
	GLfloat m_vertices[8][3],m_colors[8][3];
	GLubyte m_image[64][64][3];
	BOOL SetupPixelFormat(PIXELFORMATDESCRIPTOR *pPFD=0);


// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHxw2_3041222099View)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void chahu9();
	void chahu8();
	void Dump(CDumpContext& dc) const;
	void chahu7();
	void chahu6();
	void chahu5();
	void chahu4();
	void chahu3();
	void chahu1();
	void chahu();
	void LoadTexture();
	void DrawQuad(int a, int b, int c, int d);
	void zft();
	virtual ~CGxb_3041222098View();
#ifdef _DEBUG
	virtual void AssertValid() const;
#endif

protected:

// Generated message map functions
protected:
//	BOOL SetupPixelFormat(PIXELFORMATDESCRIPTOR *pPFD);
	//void DrawScene();
	//{{AFX_MSG(CHxw2_3041222099View)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnDestroy();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void Onchch1();
	afx_msg void Onchch2();
	afx_msg void Onchch3();
	afx_msg void Onchch4();
	afx_msg void Onchch5();
	afx_msg void Onchch6();
	afx_msg void Onchch7();
	afx_msg void Onzftzft();
	afx_msg void Onchch8();
	afx_msg void Onchch9();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
};

#ifndef _DEBUG  // debug version in hxw2_3041222099View.cpp
inline CGxb_3041222098Doc* CHxw2_3041222099View::GetDocument()
   { return (CGxb_3041222098Doc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_HXW2_3041222099VIEW_H__3566F7F2_22F6_4BA2_B003_F33DC39C6630__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -