文章分类 - OpenGL
摘要:基于OpenGL的三维机器人仿真#include#include#include using namespace std;GLfloat no_mat[] = { 0.0, 0.0, 0.0, 1.0 };GLfloat mat_ambient[] = { 0.8, 0.8, 0.8, 1.0 };GLfloat mat_ambient_color[] = { 0.8, 0.8, 0.2, 1.0 };GLfloat mat_diffuse[] = { 0.5, 0.8, 0.0, 1.0 };GLfloat mat_specular[] = { 1.0, 0.0, 0.5, 1.0 };GL
阅读全文
摘要:原创博文,转载请注明出处。常见几何图形绘制函数: glutSolidsphere,glutwiresphere--绘制实心球体和线框球体 glutsolidCube,glutwireCube--绘制实心立方体和线框立方体 glutsolidCone,glutwireCone--绘制实心圆锥体和线框圆锥体 glutsolidTorus,glutwireTorus--绘制实心圆环和线框圆环 glutSolidDOdeCahedroll,glLltwiFeDOdechedfotl--绘制实心十二面体和线框十二面体 glutSolidOctahedron,glutWireOctahedron--绘制买
阅读全文