From: | Rik Sweeney |
Date: | 13 Aug 2000 at 19:14:12 |
Subject: | Re: CGX and Bitmaps |
> > Hi, I was wondering if anyone can tell me what I'm doing wrong
here.
> > [...]
> > The screen it opens is a 15bit 640x480 screen. Does anyone know
where
> > I'm going wrong?
>
> Sorry, but what exactly did you expect should happen with the
bitmap?
> Btw: you may also want to set BMF_CLEAR.
>
Sorry for the delay, I've been away for the weekend.
Once the bitmap had been allocated I was attempting to draw to the
bitmap and see a result on the screen. Basically I want to do double
buffering on CGX but can't find any way to do it apart from make a
screen twice the height and scroll back and forth, which I don't
think
is very efficient.
InitRastPort(&rp);
bitmapA=AllocBitMap(640,480,15,BMF_MINPLANES,scr->RastPort.BitMap);
rp.BitMap=bitmapA;
This is the original code, and what I was hoping to do is to now draw
a line, or a pixel to this rastport to produce an image. Or is it
more
complicated than that?
Thanks