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

📄 read3dsdoc.h

📁 这是书上的代码
💻 H
字号:
//********************************************
// Read3DSDoc.h
// The document, contain a SceneGraph
//********************************************
// Created : 12/12/97
// Modified
//********************************************
#if !defined(AFX_Read3DSDOC_H__06A35631_72E5_11D1_A6C2_00A0242C0A32__INCLUDED_)
#define AFX_Read3DSDOC_H__06A35631_72E5_11D1_A6C2_00A0242C0A32__INCLUDED_

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

#define MAX_VERTICE 40000  //define max vertice number of the mesh
#define MAX_VERTICE_PER_POLYGON 6
#define Object 1
#include "3dsload.h"
class CSeneGraph3d; 

class CRead3DSDoc : public CDocument
{
protected: // create from serialization only

// Attributes
private:
	//CSeneGraph3d m_SceneGraph;

// Functions
public:	
	// OpenGL
// Operations
public:
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRead3DSDoc)
	public:
	virtual void Serialize(CArchive& ar);
	virtual void OnCloseDocument();
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:
	CRead3DSDoc();
	virtual ~CRead3DSDoc();
	DECLARE_DYNCREATE(CRead3DSDoc)
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

public:
	M3DSObject *m_Real3DS;
protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CRead3DSDoc)
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_Read3DSDOC_H__06A35631_72E5_11D1_A6C2_00A0242C0A32__INCLUDED_)

⌨️ 快捷键说明

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