I'm new to graphics programming and I'm wondering why I would ever prefer GDI over the hardware accelerated graphics of DirectX/OpenGL?
Are there still good reasons to use GDI?
I'm new to graphics programming and I'm wondering why I would ever prefer GDI over the hardware accelerated graphics of DirectX/OpenGL?
Are there still good reasons to use GDI?
It ultimately comes down to what you need. If you just need non-real time 2D graphics, GDI will do exactly what you need.
On the other hand, DirectX and OpenGL take much more work to use and manage (and typically use more system resources), although they allow faster drawing, and 3D.
Remember, keep it simple, you don't need a full 3D system to draw a couple of circles!
If you need to render text; GDI is pretty much infinately a better choice. Unless you are ready to learn how to parse font files and draw fonts. SFML does some nice text drawing but uses 32 bits for each character.
© 2022 - 2024 — McMap. All rights reserved.