資源簡介
三維幾何零件圖形程序-OpenGL-VC 源代碼,識別幾何形狀程序,能識別出幾何圖形的形狀,如正方形、長方形、圓形等。
代碼片段和文件信息
//?opengl_1.cpp?:?Defines?the?entry?point?for?the?console?application.
//
#include?“stdafx.h“
#include?
#include?
#include?
#include?
#include?
//?Rotation?amounts
static?GLfloat?xRot?=?0.0f;
static?GLfloat?yRot?=?0.0f;
static?GLfloat?zoom?=?2.0f;
//畫圖
void?DrawScene(void)
{
glClearColor(0.0f0.0f0.0f1.0f);
glClear(GL_COLOR_BUFFER_BIT?|?GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glShadeModel(?GL_FLAT);
glPolygonMode(?GL_FRONT_AND_BACKGL_FILL);
///////////////////////////////////////////////////////////
GLUquadricObj*?quadObj;
?
//畫圓柱
????glNewList(3?GL_COMPILE);
glColor3f(0.0f0.7f0.7f);
quadObj=gluNewQuadric();
gluQuadricDrawstyle(quadObjGL
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????176206??2004-07-18?17:11??三維幾何零件圖形程序-OpenGL-VC++源代碼\Debug\opengl_1.exe
?????文件???????6509??2004-07-18?17:11??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.cpp
?????文件???????4560??2004-07-12?15:12??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.dsp
?????文件????????541??2004-07-12?18:45??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.dsw
?????文件??????66560??2004-07-18?17:17??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.ncb
?????文件??????52736??2004-07-18?17:17??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.opt
?????文件???????1329??2004-07-18?17:11??三維幾何零件圖形程序-OpenGL-VC++源代碼\opengl_1.plg
?????文件???????1220??2004-07-12?15:12??三維幾何零件圖形程序-OpenGL-VC++源代碼\ReadMe.txt
?????文件????????295??2004-07-12?15:12??三維幾何零件圖形程序-OpenGL-VC++源代碼\StdAfx.cpp
?????文件????????667??2004-07-12?15:12??三維幾何零件圖形程序-OpenGL-VC++源代碼\StdAfx.h
?????目錄??????????0??2010-05-25?09:03??三維幾何零件圖形程序-OpenGL-VC++源代碼\Debug
?????目錄??????????0??2010-05-25?09:03??三維幾何零件圖形程序-OpenGL-VC++源代碼
-----------?---------??----------?-----??----
???????????????310623????????????????????12
- 上一篇:檢測圖片中的簡單幾何圖形,如三角形、圓形、矩形等
- 下一篇:攝像頭操作人臉查找
評論
共有 條評論