Basic HTML version of Foils prepared July 5 98

Foil 154 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


1 //Initialize DirectX components
2 static BOOL DXInit()
3 {
4 HRESULT hr;
5 DDSURFACEDESC ddsd; // Structures needed for Surfaces
6 DDSCAPS ddscaps;
7 //-----------Set up Direct Play------------------
8 // Get the service provider you want to use
9 DirectPlayEnumerate(DirectPlayEnumerateCallback, hwndApp);
10 // Create the DirectPlay object
11 CreateDirectPlayInterface();
12 // If you want to join a session, find it
13 if(joinSession)
14 FindSession();
15 // Join/Create a session
16 OpenSession();
17 // Create a player
18 MakePlayer();
19 DXInit():
20 Initializes & sets up the DirectX
21 part of our application
22 Setting up
23 DirectPlay
24 Continued...

in Table To:


© 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