3dcamera.h
来自「由TIN生成DEM」· C头文件 代码 · 共 50 行
H
50 行
/////////////////////////////////////////////////////////////////////////////
// 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 + =
减小字号Ctrl + -
显示快捷键?