ClanSoft logo
ClanSoft logo

    CL_Canvas::create

Syntax

static CL_Surface *create(
         int width,
        int height,
        int no_sprs = 1,
        int red_mask = 0xff000000,
        int green_mask = 0x00ff0000,
        int blue_mask = 0x0000ff00,
        int alpha_mask = 0x000000ff,
        bool use_transcol = false,
        unsigned int transcol = 0);

Parameters

width-the width of the surface to be created
height-the height of the surface to be created
no_sprs-the number of sprites the surface will have
red_mask-the bit mask for red
blue_mask-the bit mask for blue
green_mask-the bit mask for green
alpha_mask-the bit mask for the alpha
use_transcol-whether the surface should use source key transparancy
transcol-the (optional) source key color

Description

Creates the surface.

has to be blitted by the dynamic blitter at the moment


Back to index



This page was built using the Perceps documentation system.