#include #include #include voidsolidCylinder(GLdoubleradius-opengl切削仿真-图形图像 - IMDN开发者社群-imdn.cn" /> #include#include#includevoidsolidCylinder(GLdoubleradius,GLdoubleheight,GLintslices,GLintstacks)//»­Ò»¸öÔ²ÖùÌ壬ÓÃDiskÀ´¸ÇסÉÏϵ×Ãæ{   GLUquadricObj*qobj=gluNewQuadric();  gluCylinder(qobj,radius,radius,height,slices,stacks);  //slicesÀàËÆÓÚ¾­¶È£¬stacksÀàËÆÓÚγ¶È  glScalef(-1.0,1.0,-1.0);-IMDN开发者社群-imdn.cn"> #include#include#includevoidsolidCylinder(GLdoubleradius,GLdoubleheight,GLintslices,GLintstacks)//»­Ò»¸öÔ²ÖùÌ壬ÓÃDiskÀ´¸ÇסÉÏϵ×Ãæ{   GLUquadricObj*qobj=gluNewQuadric();  gluCylinder(qobj,radius,radius,height,slices,stacks);  //slicesÀàËÆÓÚ¾­¶È£¬stacksÀàËÆÓÚγ¶È  glScalef(-1.0,1.0,-1.0); - IMDN开发者社群-imdn.cn">
登录
首页 » 图形图像 » opengl切削仿真

opengl切削仿真

于 2022-02-03 发布 文件大小:955.99 kB
0 161
下载积分: 2 下载次数: 1

代码说明:

#include "stdafx.h" #include #include #include #include void solidCylinder(GLdouble radius, GLdouble height, GLint slices, GLint stacks) //»­Ò»¸öÔ²ÖùÌ壬ÓÃDiskÀ´¸ÇסÉÏϵ×Ãæ {      GLUquadricObj* qobj = gluNewQuadric();     gluCylinder(qobj, radius, radius, height, slices, stacks);    //slicesÀàËÆÓÚ¾­¶È£¬stacksÀàËÆÓÚγ¶È     glScalef(-1.0, 1.0, -1.0);

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildVie...
    这是用MFC编写的使用openGL的视口代码。 CChildView::CChildView() 构造函数 CChildView::~CChildView() 析构函数 BEGIN_MESSAGE_MAP(CChildView,CWnd ) 消息映射 BOOL CChildView::PreCreateWindow(CREATESTRUCT& cs)创建窗口重新设置窗口参数 BOOL CChildView::PreTranslateMessage( MSG* pMsg ) 翻译消息 int CChildView::OnCreate( LPCREATESTRUCT lpCreateStruct ) 窗口创建好后进入此函数 完成openGL的初始化 void CChildView::OnSize( UINT nType, int cx, int cy ) 当窗口大小发生改变时重新设置OPenGL的视口参数。 void CChildView::OnDestroy() 销毁窗口 -It is written in MFC to use openGL viewport code. CChildView:: CChildView () constructor CChildView:: ~ CChildView () destructor BEGIN_MESSAGE_MAP (CChildView, CWnd) message map BOOL CChildView:: PreCreateWindow (CREATESTRUCT & cs) to create a window to reset the window parameters BOOL CChildView:: PreTranslateMessage (MSG* pMsg ) translation of the message int CChildView:: OnCreate (LPCREATESTRUCT lpCreateStruct) window is created and entered this function to complete openGL initialization void CChildView:: OnSize (UINT nType, int
    2022-03-16 00:49:44下载
    积分:1
  • huffman象编码解码源程序
    huffman图象编码解码源程序-huffman image coding decoding source program
    2022-08-06 00:59:50下载
    积分:1
  • direct 9 shader关于顶点和素的着色器编程书籍。
    direct 9 shader关于顶点和像素的着色器编程书籍。-direct 9 shader on the vertex and pixel shader programming books.
    2022-11-02 20:15:08下载
    积分:1
  • delphi 处理
    delphi 图像处理-Image Processing
    2022-12-01 00:45:03下载
    积分:1
  • OpenGL high
    OpenGL高级编程与可视化系统开发(高级编程篇)的随书源码-4,学习OpenGL的好东西-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL -OpenGL high-level programming and visualization systems development (high-level programming chapter)-4 of the source with the book, learning OpenGL good things-OpenGL Programming and Advanced Visualization System (Advanced Programming Part 1) the source-4 with books, learning the good stuff OpenGL
    2022-09-16 18:30:08下载
    积分:1
  • 基于碰撞物理学的偶人动画,展示了一个可怜的角色被抛到空中的碰撞过程。碰撞到物体后根据自身的质点弹簧系统计算运动状态。...
    基于碰撞物理学的偶人动画,展示了一个可怜的角色被抛到空中的碰撞过程。碰撞到物体后根据自身的质点弹簧系统计算运动状态。-on collision physics program is animation, displaying a poor role was thrown into the air collision course. After the collision of objects based on their mass spring system to calculate the movement.
    2022-05-22 09:25:17下载
    积分:1
  • network
    IE7,一个新的浏览器。很实用,非常方便。是上网浏览的好工具。-network
    2022-02-06 03:55:00下载
    积分:1
  • one can directly use the compression type, tested
    一个可以直接使用的压缩类,测试过-one can directly use the compression type, tested
    2022-01-26 03:57:03下载
    积分:1
  • 这是一个人脸检测系统,对人脸进行识别以及检测
    这是一个人脸检测系统,对人脸进行识别以及检测-This is a face detection system for human face identification and detection
    2022-11-26 18:00:04下载
    积分:1
  • 用java编写的处理
    用java编写的图像处理-process graghics with java
    2022-03-15 08:17:29下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载