
2158.3. Text Class Details
transcolor, // Color key for transparency
&info, // Bitmap file info (from loaded file)
NULL, // Color palette
&texture ); // Destination texture
} catch(...)
{
throw(GameError(gameErrorNS::FATAL_ERROR,
"Error in Graphics::loadTexture"));
}
return result;
}
Listing 8.8. e loadTextureSystemMem function is used to load textures into system memory.
8.3.1 Initialize
e loadTextureSystemMem function is used to load the font texture into system
memory in our Text::initialize function. e Graphics *g parameter points to
our Graphics object and the char *file parameter is the name of the font texture le
(Listing 8.9). W