用户登录
用户注册

分享至

opengl 源代码

  • 作者: 大婊姐-
  • 来源: 51数据库
  • 2020-09-27
//Win32 Console Application

#include
#include
const int n = 60;
const GLfloat R = 0.2f;
const GLfloat Pi = 3.1415926536f;
void myDisplay(void)
{
int i;
glClear(GL_COLOR_BUFFER_BIT);

//点
glPointSize(2.0);
glBegin(GL_POINTS);
glVertex2f(0.0f, 0.0f);
glEnd();
//由闭合折线组成的圆
glBegin(GL_LINE_LOOP);
glColor3f(1.0,1.0,0.0);
for(i=0; i
软件
前端设计
程序设计
Java相关