🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Direct Draw 7 question on the "donuts" example

Started by
0 comments, last by Owie 24 years, 3 months ago
I am trying to figure this program out. and I was wondering if someone could tell me what this does: void linkObject( LPDBLNODE new ) { new->next = DL.next; new->prev = &DL DL.next->prev = new; DL.next = new; } void linkLastObject( LPDBLNODE new ) { new->prev = DL.prev; new->next = &DL DL.prev->next = new; DL.prev = new; } Thnx
Advertisement
those functions add a new item into a linked-list of similar items.

you should do a search on linked-lists to know more.

I''m pretty sure each of the donuts on screen is an object of that list and the game cycles through the list and updates them each frame.
___________________________Freeware development:ruinedsoft.com

This topic is closed to new replies.

Advertisement