Results 1 to 4 of 4

Thread: Simple question about Enumerating DD

  1. #1

    Thread Starter
    Lively Member ice & fire's Avatar
    Join Date
    Oct 2001
    Location
    Land of ice & fire
    Posts
    110

    Question Simple question about Enumerating DD

    Just a short and simple Question:

    You use:
    VB Code:
    1. 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:
    1. 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.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  3. #3

    Thread Starter
    Lively Member ice & fire's Avatar
    Join Date
    Oct 2001
    Location
    Land of ice & fire
    Posts
    110
    thx, did it!

  4. #4

    Thread Starter
    Lively Member ice & fire's Avatar
    Join Date
    Oct 2001
    Location
    Land of ice & fire
    Posts
    110
    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
  •  



Click Here to Expand Forum to Full Width