📄 3dcamera.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 + -