ClanSoft logo
ClanSoft logo

    CL_TargaProvider::create

Syntax

static CL_Surface *create(
         std::string handle,
        CL_InputSourceProvider *provider,
        bool transparent=false,
        bool ignore_alphachannel=false,
        unsigned char trans_red=0,
        unsigned char trans_green=0,
        unsigned char trans_blue=0);

Description

Loads the targa file handle from the inputsource provider provider. Creates a CL_Surface using the targa image and returns it.If you just want to load a file, use handle' for filename, and set provider to NULLReturns the pitch of the image (bytes per line).


Back to index



This page was built using the Perceps documentation system.