|
-
Nov 15th, 2001, 09:12 AM
#1
Thread Starter
Lively Member
Simple question about Enumerating DD
Just a short and simple Question:
You use:
VB Code:
Set dd = dx.DirectDrawCreate("") 'Init with Standard Adapter
to init DirectDraw, right?
I now want to fill a listbox with all the possible Graphics Adapters. (Primary Graphics Device, Voodoo 5 5500 3DfX, .....)
Well, it should then look like:
VB Code:
Set dd = dx.DirectDrawCreate("MyBloodyAdapter")
How do I do that? 
Please help me..
Last edited by ice & fire; Nov 15th, 2001 at 09:19 AM.
-
Nov 16th, 2001, 08:31 AM
#2
Good Ol' Platypus
You can use an instance of Direct3D to help you with that enumeration. Use the GetAdapterName function somewhere in D3D and then find out all the capabilities of the cards, etc. in it, and then you can just pass that GUID to DirectDraw. If you want, I can send you over a class module that I made that enumerates adapters and picks the best one (checks FSAA, highest resolution, and T&L acceleration). I'm planning on adding True Alpha, Z-Buffer support, and simple framerate tests to factor into the selection.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Nov 17th, 2001, 04:00 AM
#3
Thread Starter
Lively Member
thx, did it!
-
Nov 17th, 2001, 06:27 AM
#4
Thread Starter
Lively Member
I´ve written one just now.
It´s easy! It does the following:
Look, whether DirectX is installed. Install 8.1 if necessary, load list of possible adapters in a combo and all their abillities in some array. Then it uses EnumDirectX to find out, which is best.
Then it lets th user choose (Z-Buffer, Triple Buffer, Resolution,.....) and passes the params to my game. 
Based on these two progs:
http://64.23.12.52//Downloads/DirectX7/dld_dx_Enum.zip
http://64.23.12.52//Downloads/DirectX7/dld_dd_Enum.zip
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|