From 25af66a67f6968d29e5a4bed33a41406ff870085 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 5 Nov 2002 20:59:16 +0000 Subject: [PATCH] added some printfs to show current polygon mode and cull state --- progs/samples/logo.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/progs/samples/logo.c b/progs/samples/logo.c index cf0f90c531a..98a8e99aece 100644 --- a/progs/samples/logo.c +++ b/progs/samples/logo.c @@ -1,4 +1,4 @@ -/* $Id: logo.c,v 1.2 1999/12/15 13:02:09 brianp Exp $ */ +/* $Id: logo.c,v 1.3 2002/11/05 20:59:16 brianp Exp $ */ /* * Copyright (c) 1991, 1992, 1993 Silicon Graphics, Inc. @@ -1397,12 +1397,15 @@ static void Key(unsigned char key, int x, int y) switch (polyMode) { case GL_BACK: polyMode = GL_FRONT; + printf("PolygonMode GL_FRONT\n"); break; case GL_FRONT: polyMode = GL_FRONT_AND_BACK; + printf("PolygonMode GL_FRONT_AND_BACK\n"); break; case GL_FRONT_AND_BACK: polyMode = GL_BACK; + printf("PolygonMode GL_BACK\n"); break; default: break; @@ -1455,14 +1458,17 @@ static void Key(unsigned char key, int x, int y) case 'q': glDisable(GL_CULL_FACE); + printf("disable culling\n"); break; case 'w': glEnable(GL_CULL_FACE); glCullFace(GL_FRONT); + printf("enable front face culling\n"); break; case 'e': glEnable(GL_CULL_FACE); glCullFace(GL_BACK); + printf("enable back face culling\n"); break; case 'r': -- 2.30.2