This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Allocate and deallocate Surfaces


Allocate and deallocate Surfaces

Postby Twelvegames » Sep 10, 2003 @ 2:27pm

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)
Twelvegames
pm Member
 
Posts: 47
Joined: Sep 5, 2003 @ 11:46pm
Location: Crotone Italy


Postby Twelvegames » Sep 10, 2003 @ 3:23pm

Twelvegames
pm Member
 
Posts: 47
Joined: Sep 5, 2003 @ 11:46pm
Location: Crotone Italy


Postby warmi » Sep 10, 2003 @ 3:38pm

warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby Johan » Sep 11, 2003 @ 8:32am

CreateSurface (0,0,0) should work...
Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby efortier » Sep 11, 2003 @ 9:58am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Guest » Sep 11, 2003 @ 9:20pm

Odd, I thought NULL was basically

#define NULL 0

so you would not need a basic type.
Guest
 


Postby warmi » Sep 11, 2003 @ 9:23pm

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.
warmi
pm Insider
 
Posts: 518
Joined: Aug 24, 2002 @ 8:07am
Location: Chicago USA


Postby Johan » Sep 15, 2003 @ 7:51pm

Johan Sanneblad, M.Sc, Ph.D
GapiDraw Systems Architect
[]
User avatar
Johan
pm Member
 
Posts: 1843
Joined: Jan 12, 2002 @ 12:38pm
Location: Sweden


Postby efortier » Sep 15, 2003 @ 9:26pm

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron