hgeResourceManager::GetSprite

Returns pointer to a named sprite.

hgeSprite *GetSprite(
  const char *name
);

Parameters

name
Sprite name.

Return value

If successful, returns pointer to the hgeSprite object. Otherwise returns 0.

Remarks

To use a sprite with hgeResourceManager you must define it in the resource script.

If the sprite hasn't been created yet, it will be created. Otherwise pointer to the existing sprite will be returned.

Requirements

Header: hgeresource.h
Import library: hgehelp.lib