(svn r4486) - NewGRF: Create and use a memory pool to manage sprite groups. This

reduces the amount of house keeping we do and the chance of memory 
leaks.
This commit is contained in:
peter1138
2006-04-20 20:51:57 +00:00
parent c8b1ff8654
commit 103a2aa116
7 changed files with 96 additions and 142 deletions

9
newgrf_spritegroup.h Normal file
View File

@@ -0,0 +1,9 @@
/* $Id$ */
#ifndef NEWGRF_SPRITEGROUP_H
#define NEWGRF_SPRITEGROUP_H
SpriteGroup *AllocateSpriteGroup(void);
void InitializeSpriteGroupPool(void);
#endif /* NEWGRF_SPRITEGROUP_H */