Mail Archives: djgpp/2000/04/10/18:23:32
>WinAllegro uses Directx, and this can be used with DJGPP? How? Can I
>find a example that shows the Directx initalization / loading and
>displaying a bitmap and cleanup. The samples in the allegro/demo and
>allegro/examples dir. dont use direct x. or win32 calls..
They all use Allegro calls, because they are Allegro programs! If they used
any DirectX or win32 calls, they wouldn't be compilable under anything but
DirectX or win32, which would be odd considering Allegro also exists under
DOS, X and Linux console.
Anyway, Allegro when used with DJGPP doesn't use DirectX. It just uses
traditional mode 13h, VESA and stuff like that. There also used to be a
supported range of direct chipset drivers, but they sort of disappeared as
everything else about the library grew.
However, if you'd like to use the Allegro API in its DirectX variant, you
can still do this using GCC (the same compiler as in the DJGPP tool set),
via either MingW32 (http://www.mingw.org ), or if you're feeling like a
messed up bodge approach, you might like RSXNTDJ. Which I think is perfectly
horrible, but never the less can be found from wherever you found DJGPP.
Instructions for using Allegro with these compilers comes with the library
itself in its WIP variation.
Or if you're in the market for spending money, you could buy the Microsoft
compiler and use that. But I guess you're not.
-Thomas
- Raw text -