Windows Graphics Library?

This is a discussion on Windows Graphics Library? within the C++ Programming forums, part of the General Programming Boards category; Well, I should be getting petzolds book in a few days now. Um... I saw a chapter in it on ...

  1. #1
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    Windows Graphics Library?

    Well, I should be getting petzolds book in a few days now. Um... I saw a chapter in it on graphics, bitmaps and such. So is their a built in graphics library for win32 api?

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Yes, it's called the GDI (Graphics Device Interface). It's not really fast, but it's great for your first graphic library if you're already familiar with or at least learning the Window's API. It's really simple and you can do some neat things with it. Good to cut your teeth on.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    The Windows API does include simple to use functions for drawing rectangles and circles, etc. And it has to be able to display bit maps, since windows uses them fo icons etc. Thats all I know, so I'm not sure about more advanced stuff like 3D & texturing.

  4. #4
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    No you can't do any 3d or texturing. Just search MSDN for GDI, you'll get all you need to know about it. Basically it provides text output, blitting/stretching of bitmaps, drawing of your basic shapes (lines, rectangles, ellipses, etc.), floodfills with different brush types, etc.

  5. #5
    Student drdroid's Avatar
    Join Date
    Feb 2002
    Location
    Montreal, Quebec
    Posts
    669

    so..

    so you suggest to use gdi as a good starters. then should i try something simple like allegro, well I heard it was simple... any other suggestions?

  6. #6
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Well, simple is relative. DirectX is extremely simple. OpenGL is even easier. You just have to be willing to read the doc's and tutorials and apply it. Be willing to do some reading before you jump head first into code.

    I can't speak for Allegro or SDL as I haven't tried either of them yet, but there are some guys here who have some experience with them, like TechWins, frenchfry and Alphabird32, who've made some cool games and demos with those API's. Maybe PM one of them if you're looking to go with one of those.

    But, yes, you can learn a lot from starting out with the Window's GDI. Hunter2 made a really cool top down shooter with it (search for his post and you can download it).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows GDI vs. Java Graphics
    By Perspective in forum Windows Programming
    Replies: 7
    Last Post: 05-07-2007, 10:05 AM
  2. Graphics Library
    By Emotions in forum Game Programming
    Replies: 4
    Last Post: 12-23-2004, 05:08 AM
  3. Console graphics library (again)
    By harryP in forum C++ Programming
    Replies: 4
    Last Post: 08-23-2003, 10:24 AM
  4. Graphics in a window in windows
    By Korn1699 in forum C++ Programming
    Replies: 2
    Last Post: 06-16-2002, 12:59 AM
  5. Windows Graphics
    By Neandrake in forum Windows Programming
    Replies: 3
    Last Post: 01-16-2002, 04:25 PM

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