DirectDraw in Direct Graphics

This is a discussion on DirectDraw in Direct Graphics within the Game Programming forums, part of the General Programming Boards category; Well, just wondering if one can access DirectDraw under the Direct Graphics "cover", I mean, is there a way to ...

  1. #1
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228

    DirectDraw in Direct Graphics

    Well, just wondering if one can access DirectDraw under the Direct Graphics "cover", I mean, is there a way to do 2D graphics without going through texture mapping? (like I used to do with surfaces in DirectX 7...)
    Maybe they haven't suppressed it entirely from the DirectX SDK...

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    As far as I know, the DX SDK is backwards compatible, so you should still be able to DX7 direct draw types of things if you wanted to.
    My Website

    "Circular logic is good because it is."

  3. #3
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Yes, I know, COM is backward compatible as it keeps every components not matter how old they are.
    However, I was told that DirectX 9 uses a faster rendering engine... (well, maybe I am wrong, don't know well ^^)

  4. #4
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    Look up the sprite class in your directX documentation. That's the "faster rendering engine" you speak of. Usually, the fastest way to do 2D is using 3D.

  5. #5
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    I haven't done any 3d programming, but I would assume the reason that DX9 has faster rendering is because it uses the hardware to do stuff, and hardware isn't as likely to support much 2d stuff
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Look here for an example of 2D rendering using 3D. Basically you texture a pre-transformed quad.

    http://www.gamedev.net/reference/art...article935.asp

  7. #7
    lyx
    lyx is offline
    Amateur
    Join Date
    Sep 2003
    Posts
    228
    Well, I know how to make 2D with 3D in DirectX 9 but I just wanted to know if DDraw still exists somewhere...
    Seems like it does not; thanks for the replies.

  8. #8
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361
    Why can't Microsoft release it's DX7 help file? It would be
    sooooooooooooooooooooooooooo much easier.
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  9. #9
    Registered User Spleeneraclingy's Avatar
    Join Date
    May 2002
    Posts
    16

    DX7 Doc?

    Why can't Microsoft release it's DX7 help file? It would be
    sooooooooooooooooooooooooooo much easier.
    Are people looking for it? I have it, if anyone needs it.
    "Life's short and hard, like a bodybuilding elf."

  10. #10
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    No Jesus, No Peace.
    Know Jesus, Know Peace.
    Oh dear.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  11. #11
    I am he who is the man! Stan100's Avatar
    Join Date
    Sep 2002
    Posts
    361

    I want it!

    Will the dx7 sdk upload here or is it too big? I think it would be nice to have it, because when a question comes up while programming dd, I can look up a topic for it.

    HybridM, were you mocking me or agreeing?
    Stan The Man. Beatles fan

    When I was a child,
    I spoke as a child,
    I thought as a child,
    I reasoned as a child.
    When I became a man,
    I put childish ways behind me"
    (the holy bible, Paul, in his first letter to the Cor. 13:11)

  12. #12
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380

    Re: DirectDraw in Direct Graphics

    Originally posted by lyx
    Well, just wondering if one can access DirectDraw under the Direct Graphics "cover", I mean, is there a way to do 2D graphics without going through texture mapping? (like I used to do with surfaces in DirectX 7...)
    Maybe they haven't suppressed it entirely from the DirectX SDK...
    Unfortunately the DX9 SDK documentation does not cover it very well, but... you can do everything the same as you would have if you were working with the old DX7 SDK... just create a DDraw object and interface it to version 7, and go from there, same as before.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turtle Graphics, how does it work?
    By freddyvorhees in forum C++ Programming
    Replies: 15
    Last Post: 08-28-2009, 09:57 AM
  2. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  3. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  4. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 11:14 AM
  5. Microsoft Visual C++ ? graphics DIRECT X???
    By NNTB in forum C++ Programming
    Replies: 1
    Last Post: 11-21-2001, 01:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21