gooofy / aqb

A BASIC Compiler and IDE for Amiga Computers
MIT License
74 stars 7 forks source link

accessing memory #20

Open RetroNick2020 opened 2 years ago

RetroNick2020 commented 2 years ago

I am trying to understand how to change the memory contents of a bitmap_t variable without using the graphic commands.

is the bitmap_t variable something i can use with memset/peek/poke ?

DualBrain commented 2 years ago

Wow, I completely wrote a wall of text and then realized that there may actually already be an answer to this...

I was going down a path of offering a set of suggestions but as I was walking through it and referring to the WIKI, I realized that (I believe) it has already been thought through.

@RetroNick2020, take a look at the following:

DIM AS BITMAP_t PTR b1 = BITMAP (64, 64, 2)
BITMAP OUTPUT b1
PSET(x, y), c
WINDOW OUTPUT '?????????

@gooofy I think the above will do what @RetroNick2020 is trying to accomplish, but I'm not seeing how to redirect drawing output back to the regular screen. Is it WINDOW OUTPUT?

RetroNick2020 commented 2 years ago

not exactly. I need to be able to access the structure directly. I am outputting bitplanes for amigabasic, I need to be able to take the same data and store it in the BITMAP_t

On Mon, 1 Aug 2022 at 16:19, Cory Smith @.***> wrote:

Wow, I completely wrote a wall of text and then realized that there may actually already be an answer to this...

I was going down a path of offering a set of suggestions but as I was walking through it and referring to the WIKI, I realized that (I believe) it has already been thought through.

@RetroNick2020 https://github.com/RetroNick2020, take a look at the following:

DIM AS BITMAP_t PTR b1 = BITMAP (64, 64, 2) BITMAP OUTPUT b1 PSET(x, y), c WINDOW OUTPUT '?????????

@gooofy https://github.com/gooofy I think the above will do what @RetroNick2020 https://github.com/RetroNick2020 is trying to accomplish, but I'm not seeing how to redirect drawing output back to the regular screen. Is it WINDOW OUTPUT?

— Reply to this email directly, view it on GitHub https://github.com/gooofy/aqb/issues/20#issuecomment-1201670665, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANSAEFKTQXLS7JLMG6LYY43VXAWMTANCNFSM5RO6XNUQ . You are receiving this because you were mentioned.Message ID: @.***>