Results 1 to 8 of 8

Thread: DirectX, GDI+, or OpenGL?

  1. #1
    Addicted Member
    Join Date
    May 05
    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
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 04
    Location
    Miami Beach, FL
    Posts
    4,836

    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
    Useful Forum Tips:

    - If you found any post that was useful, please consider rating their post

    - Give sensible thread titles, please!
    - Be sure to use [HIGHLIGHT=VB][/HIGHLIGHT] tags when posting code written in VB.
    - Write posts like a conversation, not like an email. That way you can avoid saying "Dear so and so" in every post.
    - When your problem is solved, go up to Thread Tools and click on Mark Thread Resolved

    My Contributions: Massive DirectX 2D Tutorials For VB5/VB6/VB.NET || 3D Engine In Pure VB || Friction Force ||DJ Turntable Simulation || Scratching Wavs || Time Based Movement || Newton Physics Simulation || Managed Game Loop || Rigid Body Collision Detection || World of Warcraft RGB Battle System || Bosskillers (World of Warcraft 2D Clone) || Street Fighter Controls (Flawless Simulation) || A* Pathfinding (VB6 & VB.NET) *UPDATED || *NEW* Nintendo Entertainment System Emulator

    Expert. Ask me anything NES!

    My Smilies:


  3. #3
    Addicted Member
    Join Date
    May 05
    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
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 04
    Location
    Miami Beach, FL
    Posts
    4,836

    Re: DirectX, GDI+, or OpenGL?

    Then use my module.
    Useful Forum Tips:

    - If you found any post that was useful, please consider rating their post

    - Give sensible thread titles, please!
    - Be sure to use [HIGHLIGHT=VB][/HIGHLIGHT] tags when posting code written in VB.
    - Write posts like a conversation, not like an email. That way you can avoid saying "Dear so and so" in every post.
    - When your problem is solved, go up to Thread Tools and click on Mark Thread Resolved

    My Contributions: Massive DirectX 2D Tutorials For VB5/VB6/VB.NET || 3D Engine In Pure VB || Friction Force ||DJ Turntable Simulation || Scratching Wavs || Time Based Movement || Newton Physics Simulation || Managed Game Loop || Rigid Body Collision Detection || World of Warcraft RGB Battle System || Bosskillers (World of Warcraft 2D Clone) || Street Fighter Controls (Flawless Simulation) || A* Pathfinding (VB6 & VB.NET) *UPDATED || *NEW* Nintendo Entertainment System Emulator

    Expert. Ask me anything NES!

    My Smilies:


  5. #5
    Addicted Member
    Join Date
    May 05
    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
    Addicted Member
    Join Date
    May 05
    Posts
    230

    Re: DirectX, GDI+, or OpenGL?

    Sounds like you would suggest going with DirectX9 anyways though.

  7. #7
    The DirectXpert Jacob Roman's Avatar
    Join Date
    Aug 04
    Location
    Miami Beach, FL
    Posts
    4,836

    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.
    Useful Forum Tips:

    - If you found any post that was useful, please consider rating their post

    - Give sensible thread titles, please!
    - Be sure to use [HIGHLIGHT=VB][/HIGHLIGHT] tags when posting code written in VB.
    - Write posts like a conversation, not like an email. That way you can avoid saying "Dear so and so" in every post.
    - When your problem is solved, go up to Thread Tools and click on Mark Thread Resolved

    My Contributions: Massive DirectX 2D Tutorials For VB5/VB6/VB.NET || 3D Engine In Pure VB || Friction Force ||DJ Turntable Simulation || Scratching Wavs || Time Based Movement || Newton Physics Simulation || Managed Game Loop || Rigid Body Collision Detection || World of Warcraft RGB Battle System || Bosskillers (World of Warcraft 2D Clone) || Street Fighter Controls (Flawless Simulation) || A* Pathfinding (VB6 & VB.NET) *UPDATED || *NEW* Nintendo Entertainment System Emulator

    Expert. Ask me anything NES!

    My Smilies:


  8. #8
    Super Moderator
    Join Date
    Dec 03
    Location
    Manchester, UK
    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
  •