公式:
运行结果:
代码:
#include <GL/glut.h>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include<math.h>
#include<algorithm>
using namespace std;
struct Point{
int x, y;
};
vector<Point> v;
void Reshape(int w, int h) //两个参数:窗口被移动后大小
{
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D(0, w,

本文介绍了使用OpenGL绘制三次Bezier曲线的过程,通过公式解析和代码展示,详细解释了如何在图形学中实现曲线的渲染。
4243

被折叠的 条评论
为什么被折叠?



