Results 1 to 3 of 3

Thread: OpenGL or DirectDraw fo 2D?

  1. #1
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    196

    OpenGL or DirectDraw fo 2D?

    Hi,

    I don't know anything about DirectDraw, but I know OpenGL is designed for 3D graphics. My question is: it'll be faster to write a 2D program in OpenGL or DirectDraw? If there is somebody who knows DD I'll be grateful for an answer.

    yaro

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: OpenGL or DirectDraw fo 2D?

    Hi !

    DirectDraw might be faster for 2D graphics depending on what you want to do, in OpenGl you have to create textures and put them on quads to render them in 2D, this is fast when you have set it all up, but if you need to modify the textures on the fly or something like that might be slow.

    Also, textures in OpenGL has limitations on size (multiple of two and so on).

    If you are just interested in 2D and running on Windows you might have a go with DirectDraw, but if you have any plans to port to any other OS OpenGl is a much better choice.

    Mikael

  3. #3
    Senior Member Regular Contributor
    Join Date
    Sep 2002
    Location
    Poland
    Posts
    196

    Re: OpenGL or DirectDraw fo 2D?

    Thanks.
    If I make money on this 2D game I will start developing something in 3D OpenGL. I'm sure of that.

    cheers,
    yaro

Similar Threads

  1. Since When Does OpenGL link to DirectDraw?!
    By deadalive in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 04-24-2003, 08:38 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