Re: [Plib-users] using triangles
Brought to you by:
sjbaker
|
From: Steve B. <sjb...@ai...> - 2002-03-26 00:33:12
|
sa...@sa... wrote: > > I tried to parse everything out, except that triangle. It still didn't > work. Here is code from that parsed version > http://www.saunalahti.fi/~saparti/samitest.cpp Well, let's look at the 'redraw' routine. I have a few comments: * No need to issue a scale command if the scales are all '1' glScalef(1,1,1); * You already cleared the screen once - no need to do it again! glClear( GL_COLOR_BUFFER_BIT ); I think the only problem is that we aren't looking in the direction of the triangle you are drawing - or perhaps the triangle is being backface culled. ----------------------------- Steve Baker ------------------------------- Mail : <sjb...@ai...> WorkMail: <sj...@li...> URLs : http://www.sjbaker.org http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net http://freeglut.sf.net http://toobular.sf.net http://lodestone.sf.net |