OpenAmiga (59/964)

From:Andreas Kuessner
Date:5 Sep 2000 at 19:16:03
Subject:Re: AMIOPEN: Dev Questions

Hi,

> Daniel Adler wrote:
>>
>> Hi Pat,
>> here's an answer to question 8
>>
>>> -------------------------------------------------------------------
>>> 008
>>> -------------------------------------------------------------------
>>> Q: How can pixels be directly written to a pixmap frame buffer?
>>
>> 1. Allocate memory for the given size of the pixmap frame buffer.
>> 2. Open a specific pixmap instance and give it the pointer of your
>> allocated memory
>> 3. Write to the memory, and call update on the pixmap-object
>>
>> example:
>> qcall lib/malloc,(640*480*4:buf)
>> qcall ave/avo/pix/32bit/open,(buf,640,480,640*4:pix)
>>
>> cpy $FF000000,[buf]
>> ncall pix,update,(pix:-)

o.k., but what is if you opend a pixmap using an cnv loader? There
you can not specify your own buffer. How to access the pixmap-memory in this
cases?

Bye, Andreas.

.oO---------------------------------------------------------------Oo.
Andreas K�ssner E-Mail: ak@wk-artworks.de HP: www.wk-artworks.de
Wildfire and Taifun Project Manager
.oO---------------------------------------------------------------Oo.

Subscribe/Unsubscribe: open-request@amiga.com
Amiga FAQ: http://www.amiga.com/faq.html