資源簡介
OpenGl 機器人可以通過方向鍵實現自由移動
代碼片段和文件信息
//?Robot.cpp:?implementation?of?the?CRobot?class.
//
//////////////////////////////////////////////////////////////////////
#include?“Robot.h“
//////////////////////////////////////////////////////////////////////
//?Construction/Destruction
//////////////////////////////////////////////////////////////////////
//int?CRobot::shoulder=0;
//int?CRobot::leg=0;
CRobot::CRobot()
{
flagS=1;
flagL=1;
shoulder=0;
leg=0;
}
CRobot::~CRobot()
{
}
void?CRobot::DrawRobot()
{
glColor3f(0.01.00.0);
glPushMatrix();
glRotatef(90.00.01.00.0);
glPushMatrix();
glScalef(16.0?20.0?10.0);
glutWireCube(1.0);
glPopMatrix();
glPushMatrix();
glTranslatef(0.012.00.0);
glScalef(3.04.03.0);
glutWireCube(1.0);
glPopMatrix();
glPushMatrix();
glTranslatef(0.018.00.0);
glScalef(8.08.08.0);
glutWireCube(1.0);
glPopMatrix();
glPushMatrix();
glTranslatef(10.010.00);
glPushMatrix();
glTranslatef(0.0-5.00);
glScale
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2009-06-09?09:28??glutRobotInScene\
?????目錄???????????0??2009-06-09?09:29??glutRobotInScene\glutRobotInScene\
?????目錄???????????0??2009-06-09?09:29??glutRobotInScene\glutRobotInScene\Debug\
?????文件??????237568??2005-07-15?14:48??glutRobotInScene\glutRobotInScene\Debug\glut32.dll
?????文件??????217167??2008-04-30?23:53??glutRobotInScene\glutRobotInScene\Debug\RobotInScene.exe
?????文件????????5612??2008-04-30?23:51??glutRobotInScene\glutRobotInScene\Robot.cpp
?????文件?????????638??2008-04-28?16:12??glutRobotInScene\glutRobotInScene\Robot.h
?????文件????????4578??2008-04-30?23:47??glutRobotInScene\glutRobotInScene\RobotInScene.cpp
?????文件????????3837??2008-04-29?21:06??glutRobotInScene\glutRobotInScene\RobotInScene.dsp
?????文件?????????549??2008-04-28?17:11??glutRobotInScene\glutRobotInScene\RobotInScene.dsw
?????文件????????3683??2008-04-30?23:50??glutRobotInScene\glutRobotInScene\Scene.cpp
?????文件?????????673??2008-04-28?16:11??glutRobotInScene\glutRobotInScene\Scene.h
?????文件????????2295??2008-04-30?11:10??glutRobotInScene\glutRobotInScene\Text.cpp
?????文件?????????756??2008-04-29?21:55??glutRobotInScene\glutRobotInScene\Text.h
?????文件?????????196??2008-06-17?12:13??機器人天空.url
?????文件????????2362??2006-03-16?12:01??機器人天空歡迎您.txt
- 上一篇:數據挖掘中的聚類算法研究.doc
- 下一篇:buck電路 以及 驅動mos管
評論
共有 條評論