How to get high resolution in BGI

Started by
2 comments, last by rockslave 23 years, 10 months ago
Isn''t the BGI capable of doin'' anything betta than 640x420x16 colors? Thanks, Arthur(rockslave)
import money.*;#include "cas.h"uses bucks;
Advertisement
Actually, BGI can do better, but you might not want to. BGI is so slow...

Learn DirectDraw, you''ll be much better off.

(and btw, it''s 480 not 420)



-----------------------------
Jean-Sébastien Guay
-----------------------------
-----------------------------Skylark-----------------------------
Thanks, Skylark

BUT, does DirectDraw works on DOS? I''m still learning Windows programming...

Thanks, Arthur(rockslave)
import money.*;#include "cas.h"uses bucks;
Nope, DX doesn''t work in DOS. If you want hi-res graphics in DOS using Borland C, there are 2 possible ways.

1) Use BGI which is slow
2) Write your own VESA routines which may be faster(in terms of execution speed) but will cost more (in terms of the number of aspirins you need to take after writing all that code to handle bank switching and such).

So the best thing would be to use DirectX. You can tell I''m "lazy"

========================================================
If something sounds stupid but works, it's not stupid
==========================================In a team, you either lead, follow or GET OUT OF THE WAY.

This topic is closed to new replies.

Advertisement