- 66
- 0
- 约1.9万字
- 约 10页
- 2018-05-30 发布于福建
- 举报
行走机器人___计算机图形学代码
#include stdafx.h
#include glut.h
void reshape(int w,int h);
void init();
void display();
void mytime(int value);
float thera=0;
int flag=1;
float t=0;
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
char *argv[] = {hello , };
int argc = 2; // must/should match the number of strings in argv
glutInit(argc, argv); //初始化GLUT库;
//设置深度检测下的显示模式;(缓冲,颜色类型,深度值)
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB|GLUT_DEPTH);
glutInitWin
原创力文档

文档评论(0)