|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re:
I'm not familiar with Patrick Scribe's typelib, but if you're getting a compile error, try going to Tools>Options, and point your library and include file paths to the appropriate directories in your sdk - and it's essential that you make sure to move these paths up to before VC++'s paths for the corresponding directories. Patrick. > >Where can I find a direct3drm fullscreen sample for Visual Basic 5?. I've >got a sample writen for Visual C++.Here is a part of this code: > >//create d3d retained mode interface > Direct3DRMCreate(&d3drm); > //create directdraw interface > DirectDrawCreate(0,&ddraw,0); > ddraw->SetCooperativeLevel( hwnd, DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN ); > ddraw->SetDisplayMode( modewidth, modeheight, modedepth ); > //create the primary surface(with attached back surface) > DDSURFACEDESC desc; > desc.dwSize = sizeof(desc); > desc.dwFlags = DDSD_BACKBUFFERCOUNT | DDSD_CAPS; > desc.dwBackBufferCount = 1; > desc.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE | DDSCAPS_3DDEVICE | >DDSCAPS_FLIP | DDSCAPS_COMPLEX; > ddraw->CreateSurface(&desc,&primsurf,0); > //create the attached back surface > DDSCAPS ddscaps; > ddscaps.dwCaps = DDSCAPS_BACKBUFFER; > primsurf->GetAttachedSurface(&ddscaps,&backsurf); > //create the zbuffer > memset(&desc,0,sizeof(desc)); > desc.dwSize = sizeof(DDSURFACEDESC); > desc.dwFlags = DDSD_WIDTH | DDSD_HEIGHT |DDSD_CAPS | DDSD_ZBUFFERBITDEPTH; > desc.dwWidth = modewidth; > desc.dwHeight = modeheight; > desc.dwZBufferBitDepth = modedepth; > desc.ddsCaps.dwCaps = DDSCAPS_ZBUFFER | DDSCAPS_SYSTEMMEMORY; > ddraw->CreateSurface(&desc,&zbufsurf,0); > backsurf->AddAttachedSurface(zbufsurf); > //create d3d device from directdraw surface > d3drm->CreateDeviceFromSurface(0,ddraw,backsurf,&device); > device->SetQuality(D3DRMRENDER_GOURAUD); > >My problem is that I'm using the Directx5 typelib by Patrick >Scribe and there is no member "dwZBufferBitDepth" in the DDSURFACEDESC >structure. Maybe I must change the typelib. > > > > > > > >================================================================= >To SUBSCRIBE or UNSUBSCRIBE please visit >http://gameprogrammer.com/mailinglist.html ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com ================================================================= To SUBSCRIBE or UNSUBSCRIBE please visit http://gameprogrammer.com/mailinglist.html
|
|