Frame buffer allocator similar to calloc() or malloc()?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

Frame buffer allocator similar to calloc() or malloc()?

Post by Steve F »

Is there an equivalent malloc() but for the GS frame buffer?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

No, but gsKit does provide functionality similar to malloc(), I believe.
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

Post by Steve F »

I guess because it's ps2 hardware specific it wouldn't belong in the standard c libraries like the standard memory allocation functions. It does seem like a good utility to have in a graphic library. Does that mean it is up to the implementor of a graphic library to add it?
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Yup. Sony doesn't provide a standard allocation method so the programmer is free to implement whichever way works best in their situation.
Post Reply