Basic HTML version of Foils prepared July 5 98

Foil 158 PPT Slide

From FMS: Forces Modeling and Simulation Handout JSU HPC Summer Institute for Undergraduates, Jackson MS -- June 15 1998. by Wojtek Furmanski, Subhash Nair, Tom Pulikal


SetBkColor( hdc, PALETTEINDEX(0) );
//Draw the other player at his new position
SetTextColor( hdc, RGB(255, 255, 255) );
TextOut(hdc,x1,y1,msg, strlen(msg));
//Draw myself at my new position
SetTextColor( hdc, RGB(196, 0, 38) );
TextOut(hdc,x,y,msg, strlen(msg));
//Send my new position to the other player
pMessage->x = x;
pMessage->y = y;
hr = lpDirectPlay1->Send(playerID, 0, DPSEND_GUARANTEE, pMessage, 8);
lpBackBuffer->ReleaseDC(hdc);
lpFrontBuffer->Flip(NULL,DDFLIP_WAIT); //Flip buffers
}
delete lpmsgFrom;
delete lpmsgTo;
delete pMessage;
}
Here, we draw at the
new positions



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998