hgeResourceManager::GetResource

Returns pointer to a named raw resource.

void *GetResource(
  const char *name
);

Parameters

name
Raw resource name.

Return value

If successful, returns pointer to the raw resource in memory. Otherwise returns 0.

Remarks

You could use the name defined in the resource script or just a plain file name, either absolute or relative to the application folder or resource package root.

If the resource hasn't been loaded yet, it will be loaded. Otherwise pointer to the existing object will be returned.

Requirements

Header: hgeresource.h
Import library: hgehelp.lib