added glutWireTeapot
authorJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 6 Aug 2020 22:47:39 +0000 (01:47 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Thu, 6 Aug 2020 22:47:39 +0000 (01:47 +0300)
miniglut.c

index 631aac4..0cac4a1 100644 (file)
@@ -2270,6 +2270,10 @@ void glutSolidTeapot(float size)
 
 void glutWireTeapot(float size)
 {
+       glPushAttrib(GL_POLYGON_BIT);
+       glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
+       glutSolidTeapot(size);
+       glPopAttrib();
 }