📄 ast3d.cpp
字号:
// Ast3D.cpp: implementation of the CAst3D class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "MyGame.h"
#include "Ast3D.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CAst3D::~CAst3D()
{
}
int CAst3D::Draw()
{
glPushMatrix();
glTranslate(p);
glRotatef(angle,0,0,1);
glScalef(size*3,size*3,size*3);
glColor3f((GLfloat).8,(GLfloat).8,(GLfloat).7);
int nt=M.Draw();
glPopMatrix();
return nt;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -