Mail Archives: djgpp/1996/06/15/12:53:18
In article <Pine DOT SGI DOT 3 DOT 91 DOT 960614152746 DOT 20838C-100000 AT tower DOT york DOT ac DOT uk>
slh100 AT york DOT ac DOT uk "Shawn Hargreaves" writes:
> On Fri, 14 Jun 1996, Ben Ashley wrote:
>
> > problems there. Does allegro use the wonderful DJGPP memory management?
> >
> > Rhide told me my memory situation was '8M / 6M'. Does this really
> > mean I can finally write a program which is graphic intensive and may
> > need to store megabytes of graphic/sound data? I do hope so...
>
> Memory management isn't something you have to use as such, it just _is_ :-)
> Forget about segments and 640k limits: however much RAM you have in your
> machine, that is how much you can use. And if you go on allocating RAM
> beyond that amount, no problems, virtual memory will be used instead.
>
> So yes, there is no problem loading up several megs of graphics. Sound data
> is a bit different becuase it gets locked and can't be swapped out to
> disk, thus samples can't use virtual memory, but you can fit a lot into 8
> megs of physical RAM in any case.
>
> Try malloc(1024*1024*64) sometime, it works great :-)
Great...
Actually, I was gonna Email you about something, but I didn't know if you
were still around :). Still, I may aswell ask my Email questions here:
I have looked at the docs for allegro. I am converting a huge set of classes
from VC++, to work in DJGPP, and your allegro system will come in major use
with these application classes... But I have a few questions:
1. In my picture boxes, I am going to create a bitmap, with the dimensions of
the client area of the picture boxes. Any drawing/writing to this
control willl therefore go to the bitmap. Hoe easy is it to copy this
memory bitmap to screen? Should I create A sub-bitmap or what? I only
want one copy of the picture boxes data, and then whenever the control
need redrawing, I copy the bitmap data from the bitmap I created in mem
to the screen.
2. If the picture box resized, how would I go about resizing the bitmap?
Do I just put it in a temporary location, delete the old, make a new one
with the new size, clear it and copy the stored bitmap to the new one?
--
Cheers,
Ben -=Look for "Moo-Juice" on the IRC=-
---------------------====### legal notice ###====--------------------------
Microsoft Network is prohibited from redistributing this work in any
form,in whole or in part. License to distribute this post is available to
Microsoft for $499. Posting without permission constitutes an agreement to
these terms.
- Raw text -