opengl, or gdi?

This is a discussion on opengl, or gdi? within the Game Programming forums, part of the General Programming Boards category; These days, GDI practically uses the same hardware interface as DirectX when available, so you don't suffer much in the ...

  1. #16
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    These days, GDI practically uses the same hardware interface as DirectX when available, so you don't suffer much in the way of slowdown as far as 2D graphics is concerned. Of course, it don't do no 3D.
    Since when have DC's and selecting objects into DC's come close to anything done in DirectX or OpenGL. DOS is closer to actual game programming than GDI is.

    GDI is a waste of time in it's current state.

  2. #17
    Banned SniperSAS's Avatar
    Join Date
    Aug 2005
    Posts
    175
    this thread makes me sad and happy at the same time

    happy because now i know to stop using gdi

    sad because i was halfway done programming an isometric game engine using gdi, what a waste of time

  3. #18
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,262
    Quote Originally Posted by Bubba
    Since when have DC's and selecting objects into DC's come close to anything done in DirectX or OpenGL. DOS is closer to actual game programming than GDI is.

    GDI is a waste of time in it's current state.
    That's the methodology. I'm talking about how the API interacts with hardware, specifically management of bitmaps. I'm sure I read somewhere that it uses some hardware acceleration features when available, otherwise it sticks to its software engine.

    But yeah, in terms of actually using the thing, it's tricky and not worth the hassle for games when there are a host of better alternatives.

  4. #19
    n3v
    n3v is offline
    irregularly symmetrical n3v's Avatar
    Join Date
    Mar 2006
    Location
    Finland
    Posts
    67
    er, well right as I'm about to get started on something, I still have a question. what's the difference between directx and opengl? i know opengl is portable, but does directx handle some things better?
    If you make a man a fire,
    he will be warm for a day.
    If you set a man on fire,
    he will be warm for the rest of his life.

  5. #20
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Well, one of the main differences between OpenGL and DirectX is that OpenGL is open-source, and therfore can run on many operating systems, not just Windows. DirectX on the other hand, can only run on Windows and Xbox. Other than that, there isn't that much difference. They're both free, and both can be compiled with the free Dev-C++ (except that DirectX requires a little bit more setup on dev).

  6. #21
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    OpenGL is open-source
    For the last time people, the 'Open' in 'OpenGL', does NOT mean open source; it means open standard.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  7. #22
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Oh darn. I always thought it meant "Open-Source" . I guess being kind of a Microsoft-hater, I imagine that non-Microsoft products are open-source sometimes.

  8. #23
    Registered User
    Join Date
    May 2006
    Posts
    903
    One of the biggest difference would be the interface and how you have to code with each library. DX will force you to use COM objects (which means a lot of pure virtual or virtual classes and inheritance) whereas OGL will make you use more functions than anything. Don't flame me because -- yes I know -- OGL uses classes and structs just like DX but you must admit that it's still much more procedural. Also, you need to use more maths in OGL.

  9. #24
    n3v
    n3v is offline
    irregularly symmetrical n3v's Avatar
    Join Date
    Mar 2006
    Location
    Finland
    Posts
    67
    They're both free, and both can be compiled with the free Dev-C++
    i know this probably isn't the right forum for this, but could you explain how to do that? devc++ forums are quite ill-organized and confusing, and i don't know how to use opengl or directx on dev c++, nor can i locate any interface manager: some means of adjusting standard objects on windows windows and stuff, like text boxes.
    If you make a man a fire,
    he will be warm for a day.
    If you set a man on fire,
    he will be warm for the rest of his life.

  10. #25
    Registered User
    Join Date
    Aug 2003
    Posts
    1,198
    Here is my guide to using opengl with devcpp: Enable OpenGL with DevC++

  11. #26
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    498
    Found this for DirectX 8.1 on Dev: http://www.gamedev.net/reference/art...rticle2067.asp
    This isn't the current version of DirectX, but it's probably very similar.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking OpenGL in Dev-C++
    By linkofazeroth in forum Game Programming
    Replies: 4
    Last Post: 09-13-2005, 10:17 AM
  2. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  3. OpenGL .dll vs video card dll
    By Silvercord in forum Game Programming
    Replies: 14
    Last Post: 02-12-2003, 06:57 PM
  4. OpenGL and Windows
    By sean345 in forum Game Programming
    Replies: 5
    Last Post: 06-24-2002, 10:14 PM
  5. opengl code not working
    By Unregistered in forum Windows Programming
    Replies: 4
    Last Post: 02-14-2002, 09:01 PM

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