Results 1 to 7 of 7

Thread: well i ask again is directdraw and opengl usable together

  1. #1
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    well i ask again is directdraw and opengl usable together

    I want to run directdraw and opengl at the same time.
    I managed this with opengl and directinput but is directdraw also ok.
    I want to use ddraw for menus , maps, toolbars etc.
    Does anybody know a way of doing this
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  2. #2
    Guest

    Re: well i ask again is directdraw and opengl usable together

    Use MFC

  3. #3
    Member Contributor
    Join Date
    Nov 2000
    Location
    Vancouver
    Posts
    84

    Re: well i ask again is directdraw and opengl usable together

    Hullo,

    My understanding is that you can mix the two, but it isn't moral.

    If your only interest in DirectDraw is for 2D interfacing, then you should either:
    1) Use Win32 or MFC for 2D interface management and use OpenGL in a window

    or

    2) Render your 3D scene, then change to an orthographic projection and render your 2D elements.

    If standard 'windows' decorations are all you need, then the Win32/MFC solution is the way to go. If you need more 'artistic' decorations, then go with the OpenGL solution.

    Oh... and keep the two systems as seperate as possible either way so that you can use one or the other component in a seperate project without pain

    Have fun
    -- Jeff

  4. #4
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: well i ask again is directdraw and opengl usable together

    Thanks!
    Im want to use directdraw only for 2d but on top of the opengl window. Its not allowed to be a window since im making a game.
    now did i understand correctly that i must first draw the opnengl scene, then get rid of opengl initialize directdraw and use directdraw?
    Is there no way to use both at the same time simulatiosly?
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  5. #5
    Member Contributor
    Join Date
    Jan 2001
    Location
    Germany
    Posts
    55

    Re: well i ask again is directdraw and opengl usable together

    Oh and if i switch to ortho2d mode is Directdraw usable then?
    -http://starnut.9ug.com
    Programming in Directx and Opengl

  6. #6
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: well i ask again is directdraw and opengl usable together

    read the faq (link on the first page)

  7. #7
    Senior Member Regular Contributor
    Join Date
    Aug 2000
    Location
    Turin
    Posts
    258

    Re: well i ask again is directdraw and opengl usable together

    Why don't u simply render to a DIB (also without using MFC if you want) and just use the DIB data with CopyPixels (slow) or as a texture for billboarding ??

    Isn't it simplier and cleaner ??

    rIO
    [rIO^sPINNING kIDS] - rio@nospam.spinningkids.org

    -/- This is a signature virus. Add it to your signature. Help it spreading! -/-

Similar Threads

  1. OpenGL or DirectDraw fo 2D?
    By yaro_dup1 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-28-2003, 11:15 AM
  2. OpenGL and DirectDraw
    By in forum OpenGL: User Software
    Replies: 0
    Last Post: 05-02-2002, 01:23 PM
  3. opengl and directdraw
    By opengldev in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-22-2002, 07:22 AM
  4. DirectDraw vs OpenGL
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-12-2001, 02:49 AM
  5. DirectDraw and OpenGL
    By Punchey in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 11-17-2000, 10:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean