虚幻电灯胆

文章
5
资源
0
加入时间
3年1月10天

OpenGL绘制几个基本初等函数图像

OpenGL绘制x三次方和x三分之一次方#include <GL/glut.h>#include <math.h>void myDisplay(void){ int i; glClear(GL_COLOR_BUFFER_BIT); glClearColor(1.0f, 1.0f, 0.5f, 1.0f); glColor3f(0.5f, 0.1f, 1.0f); glBegin(GL_LINE_STRIP); for (i = 0; i &