---
name: "CL_DynamicProvider"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_DynamicProvider"
---

# CL\_DynamicProvider(3)

## NAME

CL\_DynamicProvider

## CLASS MEMBERS

- static CL\_Surface \***create**(

  ```
  int width,
  int height,
  int no_sprs,
  EPixelFormat type = PAL8,
  int transcol = -1)
  ```

- static CL\_Surface \***create**(

  ```
  int width,
  int height,
  int no_sprs,
  int red_mask,
  int green_mask,
  int blue_mask,
  int alpha_mask,
  int transcol = -1)
  ```

- **CL\_DynamicProvider**(

  ```
  int width,
  int height,
  int no_sprs,
  EPixelFormat type = PAL8,
  int trans_col = -1)
  ```

- **CL\_DynamicProvider**(

  ```
  int width,
  int height,
  int no_sprs,
  int red_mask,
  int green_mask,
  int blue_mask,
  int alpha_mask,
  int transcol = -1)
  ```

- virtual **~CL\_DynamicProvider**()

  - virtual int **get\_width**()

  - virtual int **get\_height**()

  - virtual int **get\_no\_sprs**()

  - virtual EPixelFormat **get\_pixel\_format**()

  - virtual CL\_Palette \***get\_palette**()

  - virtual int **get\_transcol**()

  - virtual void \***get\_data**()

  - virtual void **perform\_lock**()

  - virtual void **perform\_unlock**()

  ## MEMBERS WITH DESCRIPTIONS

- static CL\_Surface \***create**(

  ```
  int width,
  int height,
  int no_sprs,
  EPixelFormat type = PAL8,
  int transcol = -1)
  ```

  ```
  Description:
  ```

- static CL\_Surface \***create**(

  ```
  int width,
  int height,
  int no_sprs,
  int red_mask,
  int green_mask,
  int blue_mask,
  int alpha_mask,
  int transcol = -1)
  ```

  ```
  Description:
  ```

- **CL\_DynamicProvider**(

  ```
  int width,
  int height,
  int no_sprs,
  EPixelFormat type = PAL8,
  int trans_col = -1)
  ```

  ```
  Description:
  ```

  has to be blitted by the dynamic blitter at the moment

- **CL\_DynamicProvider**(

  ```
  int width,
  int height,
  int no_sprs,
  int red_mask,
  int green_mask,
  int blue_mask,
  int alpha_mask,
  int transcol = -1)
  ```

  ```
  Description:
  ```

- virtual **~CL\_DynamicProvider**()

  ```
  Description:
  ```

  Deletes the DynamicProvider and deletes the datawhich was allocated in the constructor

- virtual int **get\_width**()

  ```
  Description:
  ```

- virtual int **get\_height**()

  ```
  Description:
  ```

- virtual int **get\_no\_sprs**()

  ```
  Description:
  ```

- virtual EPixelFormat **get\_pixel\_format**()

  ```
  Description:
  ```

  Returns the pixelformat of the DynamicProvider as it was set in the constructor

- virtual CL\_Palette \***get\_palette**()

  ```
  Description:
  ```

  Returns NULL, because PAL8 isn't supported

- virtual int **get\_transcol**()

  ```
  Description:
  ```

  Returns the transparent color, which was set in the constructor

- virtual void \***get\_data**()

  ```
  Description:
  ```

  Returns the pointer to the surface data, where youcan copy your data to. It should beonly called between lock() and unlock().

- virtual void **perform\_lock**()

  ```
  Description:
  ```

- virtual void **perform\_unlock**()

  ```
  Description:
  ```

## SEE ALSO

All ClanLib API classes can be found in **clanlib (3)**.

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at **http://somewhere.in.the.world.org**).

See **clanlib (3)** to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.
