Handmade Hero » Forums » Code » win32 and GDI
C_Worm
18 posts
#21205 win32 and GDI
3 weeks, 1 day ago Edited by C_Worm on June 30, 2019, 9:02 p.m. Reason: Initial post

Is there any reason to ever use the GDI functions like:

SetPixel();
Rectangle();
FillRect();
RoundRect();
Polygon();
Ellipse();

Please tell in what situations they would be good for game programing or any other application?

Or are they just deprecated in some sence?
ratchetfreak
452 posts
#21208 win32 and GDI
3 weeks, 1 day ago

They are nice when you don't want to deal with opengl/D3D and the hassle those things bring.

Especially because those are focused on drawing triangles, when you want to touch pixels directly it's a bit of a hassle.