Advertisement

Multiple Quads

Started by September 04, 2000 04:31 PM
2 comments, last by Saqib 24 years, 2 months ago
Well this is kinda stupid but how can you build multiple quads(more than 2 or 3) such that each has its unique shape. I don''t wanna use glBegin-glEnd again n again. so plz tell me another way!
um, you could use triangles, triangle strips, I''m not really sure what you''re wanting, but not using glBegin and glEnd seems a bit drastic.

JoeMont001@aol.com www.polarisoft.n3.net
My HomepageSome shoot to kill, others shoot to mame. I say clear the chamber and let the lord decide. - Reno 911
Advertisement
Why don't you use glBegin(GL_QUADS) and just draw your quads??


glBegin(GL_QUADS);

for(i=0;i < NumberOfQuads;i++)
{
glVertex3f(quad.v0.x,quad.v0.y,quad.v0.z);<br>glVertex3f(quad.v1.x,quad.v1.y,quad.v1.z);<br>glVertex3f(quad.v2.x,quad.v2.y,quad.v2.z);<br>glVertex3f(quad.v3.x,quad.v3.y,quad.v3.z);<br>}<br><br>glEnd();<br></code><br><br>GA<br><br>Edited by - ga on September 5, 2000 7:01:33 AM
Visit our homepage: www.rarebyte.de.stGA
look into vertex arrays and display lists if you''re worried about all the function calls.

This topic is closed to new replies.

Advertisement