mirror of
https://github.com/jhasse/poly2tri.git
synced 2025-01-31 04:33:30 +01:00
modified Authors file
This commit is contained in:
parent
c18dcd4eaa
commit
7cbc314b7b
@ -1,6 +1,6 @@
|
|||||||
Primary Contributors:
|
Primary Contributors:
|
||||||
|
|
||||||
Mason Green <mason.green@gmail.com> (C++)
|
Mason Green <mason.green@gmail.com> (C++, Python)
|
||||||
Thomas Åhlén <thahlen@gmail.com> (Java)
|
Thomas Åhlén <thahlen@gmail.com> (Java)
|
||||||
|
|
||||||
Other Contributors:
|
Other Contributors:
|
@ -135,6 +135,7 @@ int main(int argc, char* argv[])
|
|||||||
// Step 1 - Create CDT and add primary polyline
|
// Step 1 - Create CDT and add primary polyline
|
||||||
CDT* cdt = new CDT(points);
|
CDT* cdt = new CDT(points);
|
||||||
|
|
||||||
|
/*
|
||||||
// Step 2 - Add holes if necessary
|
// Step 2 - Add holes if necessary
|
||||||
string s(argv[1]);
|
string s(argv[1]);
|
||||||
if(s.find("dude.dat", 0) != string::npos) {
|
if(s.find("dude.dat", 0) != string::npos) {
|
||||||
@ -148,6 +149,7 @@ int main(int argc, char* argv[])
|
|||||||
polylines.push_back(head_hole);
|
polylines.push_back(head_hole);
|
||||||
polylines.push_back(chest_hole);
|
polylines.push_back(chest_hole);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// Step 3 - Triangulate!
|
// Step 3 - Triangulate!
|
||||||
cdt->Triangulate();
|
cdt->Triangulate();
|
||||||
@ -178,6 +180,7 @@ void Init()
|
|||||||
ShutDown(1);
|
ShutDown(1);
|
||||||
|
|
||||||
glfwSetWindowTitle("Poly2Tri - C++");
|
glfwSetWindowTitle("Poly2Tri - C++");
|
||||||
|
glfwSwapInterval(1);
|
||||||
|
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||||
|
Loading…
Reference in New Issue
Block a user