Mail Archives: djgpp/1999/09/08/20:50:58
Woops... ..just found out that Allegro flips
a 320*240 24bpp virtscreen to the screen at
50fps... .which is about 1/6 of what I expected..
..so I'll drop allegro and keep on bombing this
newsgroup with nearptr questions.
Sorry if this message seems rude to Allegro..
..I'm sure it will do great with all the
hardware blits and stuff supported.
Anders David Skarin wrote:
>
> Since vesa programming using DJGPP+NASM seems to be such
> a struggle that even this newsgroup can answere my questions,
> I have decided to let my "do it all" attitude go and give in
> to the dark force... ALLEGRO.
>
> There is one small thing i can't get over though... blit will
> not (as the manual sas) convert between differnt colordepths.
>
> Since my VESA routines used 32bit internaly, this is what I
> wanted to do with ALLEGRO as well. But this code will produce
> a GREEN screen rather than an ORANGE.
>
> int main(void)
> {
> allegro_init();
>
> BITMAP *test = create_bitmap_ex(32,320,240);
>
> destroy_bitmap(test);
>
> set_color_depth(16);
> if(set_gfx_mode(GFX_VESA2L,320,240,0,0)!=0)printf("sorry\n");
>
> for(int y =0; y<240; y++)
> for(int x =0; x<320; x++)
> putpixel(test,x,y,0x00FF5500);
>
> blit(test,screen,0,0,0,0,320,240);
>
> getch();
>
> allegro_exit();
> return 0;
> };
>
> Any suggestions?
- Raw text -