Open GL in normal applications
I was wondering why OpenGL is rarely used for 2d applications, such as file managers, web browsers etc.
Is it the wrong sort of API to use?
Almost my entire experience with programming in GUIs (i mean not Text/console apps) has been with openGL.
I was just wondering if it was the wrong sort of API to use for an easily portable application, such as a web browser or filemanager etc?
If it is, can anyone suggest another API which is as easy to use?
Thanks in advance
Well, the main reason why people don''t use OpenGL for 2D is because it''s a 3D engine. It doesn''t allow you to draw directly to the screen, (Except with glDrawPixels, which is very slow). If you''re looking to do stuff in 2d in windows, try using the GDI or even DirectX. If you''re looking for portability, check out SDL (www.libsdl.org). With SDL you can write completely portable code, so I highly recomend it.
NickW
NickW
But its probably not used for stuff like file managers because then you''d need a 3D card to use that file manager. How many people out there using a file manager or a web browser (many millions) also have a 3D card? I know you can run OGL in software but then whats the point of even using OGL? Just use GDI or DDraw.
------------
- outRider -
------------
- outRider -
GDI is used for normal applications because it''s almost guaranteed to work the same on all video cards and computers.
quote:
Allegro is a lot better than SDL.
Allegro is geared more towards beginners. I don''t mind using it, but I''d never make a game or demo with it. it''s too restrictive.
How many Microsoft employees does it take to screw in a light bulb?
None, they just declare drakness as a new standard.
quote:Original post by Julio
Allegro is a lot better than SDL.
Allegro is geared more towards beginners. I don''t mind using it, but I''d never make a game or demo with it. it''s too restrictive.
What can''t you do with it? There''s also tons of addons.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement