[Gameincubator-newsfr] Aout 2005 SDK
Brought to you by:
jchatelaine
From: Jeremy C. <ka...@gm...> - 2005-08-07 18:48:55
|
Le SDK d'aout 2005 est desormais disponible dans la section download: http://gi.kamron.net/ Alors, pour les nouveautes de ce SDK: * GIDisplay Les GISprite peuvent desormais tourner selon un angle en radian (de 0 a 2PI, soit 0.0f jusqu'a ~3.14*2) Les fonctions sont desormais: void Draw(float screenx, float screeny, float rotation); void DrawRegion(unsigned long index, float screenx, float screeny, float rotation); void DrawRegion(const GIREGION2D ®ion, float screenx, float screeny, float rotation); Le chargement des GIScene3D se fait desormais dans d'autres threads (c'est qu'une premiere version, ca sera ameliore plus tard mais les gains de chargement sont bel et bien la sur les multi processeur ou les pentium hyper threaded) * GIMemory Voici un nouveau module qui permet d'allouer et de desallouer la memoire. Tout le GI l'utilise (a l'exception des stl pour l'instant). Cela pause les fondations necessaire a des outils pour gerer la memoire. Vous saurez a la fin de vos programme si vous avez bien libere toute la memoire ou pas dans cette version et l'allocation est plus rapide que celle de visual studio (Car c'est un gros bloc de memoire). * Vue que le GIMemory gere desormais la memoire, la plupart des destructeurs d'objets sont desormais proteges. Il vous faudra appeler Destroy a la place de delete. Soit, appele GISAFE_DESTROY a la place des GISAFE_DELETE. Dans les cas omis, vous rencontrerez cette erreur: error C2248: 'GISPRITE::~GISPRITE' : cannot access protected member declared in class 'GISPRITE' Utilisez ca a la place: mysprite->Destroy(); ou GISAFE_DESTROY(mysprite) Bon code a tous! Jeremy |