GDI can't die!
Ok, screw directdraw, its making my map editor suck. I need to use old fashioned GDI, which is more practical in this case anyways. Anyone know of any GDI tutorials, or how I might use graphics in a windows application with GDI?
PSP or Photoshop do it, but they don''t use Directx.
Well, besides saying: "DirectDraw is screwing everything up!! It''s all there fault!", maybe you should post what your problem is. Chances are the problem is pretty easy to fix.
If you really insist on going with GDI then you should pick up Programming Windows 95. It basically covers everything you want to know about windows.
--TheGoop
If you really insist on going with GDI then you should pick up Programming Windows 95. It basically covers everything you want to know about windows.
--TheGoop
GDI is a good option for windowed stuff like map editors. You only need DDraw if you''re concerned with framerate and/or full-screen stuff.
Check out the GDI bitmap functions, specifically CreateCompatibleBitmap.
Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
Check out the GDI bitmap functions, specifically CreateCompatibleBitmap.
Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com
Founder, Cuttlefish Industries
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
The Cuttlefish Engine lets anyone develop great games for iPad, iPhone, Android, WP7, the web, and more!
Well, I didn't say it was anyones fault, and like your suggesting, Its mine? ITs nobody's, simply because nothing is screwed up. my code works 100%, I just don't like the way directdraw works with this kind of application. I'm no ddraw newbie.
Edited by - Int86x on 1/12/00 7:44:04 PM
Edited by - Int86x on 1/12/00 7:44:04 PM
January 12, 2000 09:23 PM
Sorry, I thought you meant it was actually causing a problem. My bad 
--TheGoop

--TheGoop
Opengl would work, but would really be a stupid API to use.
this editor will draw a bitmap on the screen. why go through the trouble of opengl just to do that? I'm stickin with ddraw, finally got it the way I like it so it works all good. Its not as good as GDI would be, but GDI isn't something thats easy to find info on without paying money for it.

You can see the black grid area. Thats where directdraw copies the grid picture surface every time the window updates, moves, or whatever. I got it to clip right to when its halfway off the screen. You'd think its GDI. I did figure out GDI, but its too late, I don't feel like going back. all I'd have to do is make a static window where that grid is, and then use SetDIBits to update that image, then just send a redraw message to the window if I change the picture.
Edited by - Int86x on 1/13/00 12:23:21 PM
this editor will draw a bitmap on the screen. why go through the trouble of opengl just to do that? I'm stickin with ddraw, finally got it the way I like it so it works all good. Its not as good as GDI would be, but GDI isn't something thats easy to find info on without paying money for it.

You can see the black grid area. Thats where directdraw copies the grid picture surface every time the window updates, moves, or whatever. I got it to clip right to when its halfway off the screen. You'd think its GDI. I did figure out GDI, but its too late, I don't feel like going back. all I'd have to do is make a static window where that grid is, and then use SetDIBits to update that image, then just send a redraw message to the window if I change the picture.
Edited by - Int86x on 1/13/00 12:23:21 PM
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement