Page 1 of 1

Allocate and deallocate Surfaces

PostPosted: Sep 10, 2003 @ 2:27pm
by Twelvegames
HI,
WIch is the best method to allocate an array of CGapiSurfaces, and after deallocate them?

Suppose to have an Array[n] of Surfaces.
First i fill this array with valid bitmap files.
What i should do when i want to clean up this Array?

(I mean deallocate them)

PostPosted: Sep 10, 2003 @ 3:23pm
by Twelvegames

PostPosted: Sep 10, 2003 @ 3:38pm
by warmi

PostPosted: Sep 11, 2003 @ 8:32am
by Johan
CreateSurface (0,0,0) should work...

PostPosted: Sep 11, 2003 @ 9:58am
by efortier

PostPosted: Sep 11, 2003 @ 9:20pm
by Guest
Odd, I thought NULL was basically

#define NULL 0

so you would not need a basic type.

PostPosted: Sep 11, 2003 @ 9:23pm
by warmi
Yeah, and that is why his compiler was confused ...
There is no way to figure out if the value was meant to be pointer style NULL or just int that happened to be 0.

PostPosted: Sep 15, 2003 @ 7:51pm
by Johan

PostPosted: Sep 15, 2003 @ 9:26pm
by efortier