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

📄 3dcamera.h

📁 由TIN生成DEM
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////
// C3dCamera
#pragma once

#include <gl\gl.h>			
#include <gl\glu.h>


class C3dCamera : public CObject
{
	DECLARE_DYNAMIC(C3dCamera);

//Construction
public:
    C3dCamera();
    virtual ~C3dCamera();

//Implimentation
public:
	void GetOrigin(GLfloat *x, GLfloat *y, GLfloat *z);
	void GetRotation(GLfloat *x, GLfloat *y, GLfloat *z);
	void SetOrigin(GLfloat x, GLfloat y, GLfloat z);
	void SetRotation(GLfloat x, GLfloat y, GLfloat z);
	void ResetView(int w, int h);
	void PositionCamera();

//Attributes
protected:

public:
	int				m_bPerspective;

	GLsizei			m_iScreenWidth;
	GLsizei			m_iScreenHeight;

	GLfloat			m_fFovY;		// Y-Axis field of view
	GLfloat			m_fAspect;		// width(x) to height(y) aspect
	GLfloat			m_fLeft;
	GLfloat			m_fRight;
	GLfloat			m_fBottom;
	GLfloat			m_fTop;
	GLfloat			m_fNear;
	GLfloat			m_fFar;
	GLfloat			m_fOrigin[3];
	GLfloat			m_fRotation[3];

protected:

};

⌨️ 快捷键说明

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