Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Marius

resubmiting vertexes

This topic is 5985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

let''s sa I have a mesh. I want to show the mesh in 2 positions. If I already submit the mesh to video card first time when I''m painting it, with current selected transformation matrix, then I change the tr matrix and I want to draw it again in new position why I have to resend all the vertexes again. Is there a technique to tell to open gl reuse alrady submited vertexex ? MCO

Share this post


Link to post
Share on other sites
Advertisement
Search around for "Display Lists"

------------
aud.vze.com - The Audacious Engine <-- Newbie alert, look at your own risk. Can induce severe laughing fits and other variations of hysterical outburst.

Share this post


Link to post
Share on other sites
Go to HEHE! or use this simple exmple!


  
Gluint Displaylist;
...
void MAKEDISPLAYLIST()
{
Displaylist=glGenLists(1); // Gets the memory ready

glNewList(Displaylist,GL_COMPILE); // kinda like glBegin() for Displaylists


DrawMyModel(); //draw your entire model inside glNewList and glEndList.


glEndList(); // kinda like glEnd() for Displaylists

...

void DrawMyDisplayList()
{
glCallList(Displaylist); // Draws Displaylist

}

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!