[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Sv: [CPROG] 320x200 mode i Linux?



>Jeg ville lige høre om der er nogen der kender til grafik mode i Linux,
>da jeg er igang med at konvertere en lille 3dengine jeg engang legede
>med,
>fra dos til Linux. I den oprindelige version brugte jeg INT 10 til at
>sætte
>den i 320x200 grafik mode, hvordan gøres det samme under Linux?
>En anden ting, hvordan skriver man inline asm kode i en c-fil under
>Linux?
>
>    På forhånd tak!


1) Download & installer djgpp
2) Download & compile allegro

Så skulle...

include <stdio.h>
include <allegro.h>

int main()
{
   set_gfx_mode(GFX_VGA, 320, 200, 0, 0)
}

...være nok




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:07 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *