---
name: "CL_ResourceSource_Surface"
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_ResourceSource_Surface"
---

# CL\_ResourceSource\_Surface(3)

Plugin interface for surface resources.

## NAME

CL\_ResourceSource\_Surface - Plugin interface for surface resources.

## DESCRIPTION

CL\_ResourceSource\_Surface is a plugin interface for the surface resource type.

Applications and libraries can inherit this class to add their own customized surface sources. Just as any other plugin in ClanLib, the application or library has to keep one global instance of each plugin - otherwise the resource manager will not be able to use the new resource source.

## CLASS MEMBERS

- **CL\_ResourceSource\_Surface**()

  - virtual **~CL\_ResourceSource\_Surface**()

  - virtual const char \***get\_name**()

  - virtual bool **can\_create**(

  ```
   std::string file_extension,
  CL_ResourceOptions *options)
  ```

- virtual CL\_SurfaceProvider \***create**(

  ```
   std::string filename,
  CL_ResourceOptions *options,
  CL_ResourceManager *parent)
  ```

## MEMBERS WITH DESCRIPTIONS

- **CL\_ResourceSource\_Surface**()

  ```
  Description:
  ```

- virtual **~CL\_ResourceSource\_Surface**()

  ```
  Description:
  ```

- virtual const char \***get\_name**()

  ```
  Description:
  ```

- virtual bool **can\_create**(

  ```
   std::string file_extension,
  CL_ResourceOptions *options)
  ```

  ```
  Description:
  ```

- virtual CL\_SurfaceProvider \***create**(

  ```
   std::string filename,
  CL_ResourceOptions *options,
  CL_ResourceManager *parent)
  ```

  ```
  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.
