Page 1 of 1

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

Posted: Sun Jun 19, 2005 12:53 pm
by Steve F
Is there an equivalent malloc() but for the GS frame buffer?

Posted: Sun Jun 19, 2005 1:05 pm
by ooPo
No, but gsKit does provide functionality similar to malloc(), I believe.

Posted: Sun Jun 19, 2005 1:29 pm
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?

Posted: Sun Jun 19, 2005 1:36 pm
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.