Direct Draw 7 question on the "donuts" example
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
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.
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
Popular Topics
Advertisement