mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
0b7ac384ca
new file: projects/freedesktop.org/mesa-glu/test.cpp
18 lines
No EOL
349 B
C++
18 lines
No EOL
349 B
C++
#include <GL/glu.h>
|
|
|
|
int main(int argc, char* argv[]) {
|
|
static GLUtriangulatorObj *tobj;
|
|
GLdouble vertex[3], dx, dy, len;
|
|
int i = 0;
|
|
int count = 5;
|
|
tobj = gluNewTess();
|
|
gluBeginPolygon(tobj);
|
|
for (i = 0; i < count; i++) {
|
|
vertex[0] = 1;
|
|
vertex[1] = 2;
|
|
vertex[2] = 0;
|
|
gluTessVertex(tobj, vertex, 0);
|
|
}
|
|
gluEndPolygon(tobj);
|
|
return 0;
|
|
} |