Results 1 to 8 of 8

Thread: DirectX, GDI+, or OpenGL?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    230

    DirectX, GDI+, or OpenGL?

    I write all of my code in VB.NET these days. I am hoping to make a simple side scrolling game for fun. At one time I did some graphics using OpenGL in C++, but I'm not that familiar with it anymore. I tried doing some simple animations using GDI+, but I'm getting a lot of screen flicker even though I've tried to double buffer (I could be doing it wrong though). I figure maybe I should just learn DirectX in case I want to do something serious one day. I've heard that DirectX is harder than OpenGL to learn. Which one would be the best to learn?

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: DirectX, GDI+, or OpenGL?

    DirectX9, since it was made for .NET. They are both very good API's, but DX9 seems to have more features, and does more than just graphics. There is no support for referencing OpenGL in VB.NET yet, but you can add all the API's and constants by hand. Here's a VB6 module you can convert to VB.NET.
    Attached Files Attached Files

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    230

    Re: DirectX, GDI+, or OpenGL?

    I found an open source openGL wrapper class that allows it to be used with .NET, but I have already found that it has some oddities about it.

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: DirectX, GDI+, or OpenGL?

    Then use my module.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    230

    Re: DirectX, GDI+, or OpenGL?

    Woops, I must be blind. I didn't see your module. I see it now. I'll take a look, thanks.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Posts
    230

    Re: DirectX, GDI+, or OpenGL?

    Sounds like you would suggest going with DirectX9 anyways though.

  7. #7
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: DirectX, GDI+, or OpenGL?

    Might as well. Plus keep your eye out for DX10. It's coming real soon.

    Unfortunately it can be only run on Windows Vista.

  8. #8
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: DirectX, GDI+, or OpenGL?

    OpenGl in all honesty is fading out AFAIK I'ts not updated as much as DX.

    I'm currently writing a 2d drawing class which wraps bitblt and GDI+ for .Net It will be a dll when finished so can be used in all .Net languages so keep ya eyes pealed

    Pino

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