Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Res_Surface Class Reference

res_type: surfaceres_option: tga - Interpret this file as a targa image.res_option: pcx - Interpret this file as a pcx image.res_option: x=<val> - Specify the starting x coordinate in the image file.res_option: y=<val> - Specify the starting y coordinate in the image file.res_option: width=<val> - Specify the number of horizontal pixels to storeres_option: from the image.res_option: height=<val> - Specify the number of vertical pixels to store from the image.res_option: array=<xval>x<yval> - Creates a surface containing <xval> * <yval>res_option: sprites. This option requires the existance of x, y, width, heightres_option: option values in the resource definition; otherwise the option isres_option: ignored. The sprites are read from left to right, top to bottom,res_option: and are each saved with width, height equal to the width,res_option: height options specified.res_option: tcol=<val> - Specifies a given color as transparency color for thisres_option: surface. This option is only meaningful for palettisized inputres_option: image formats (PCX).res_option: tcol=(<val>, <val2>, ...) - Same as above, but specifies several transpareny colors. More...

#include <restype_surface.h>

Inheritance diagram for CL_Res_Surface:

Inheritance graph
[legend]
Collaboration diagram for CL_Res_Surface:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Res_Surface ()

Static Public Attributes

std::list<CL_ResourceSource_Surface*> surface_sources

Private Methods

virtual CL_Resourcecreate_from_location (std::string name, std::string location, CL_ResourceOptions *options, CL_ResourceManager *parent)
virtual CL_Resourcecreate_from_serialization (std::string name, CL_ResourceManager *parent)

Private Attributes

friend CL_ResourceManager

Detailed Description

res_type: surfaceres_option: tga - Interpret this file as a targa image.res_option: pcx - Interpret this file as a pcx image.res_option: x=<val> - Specify the starting x coordinate in the image file.res_option: y=<val> - Specify the starting y coordinate in the image file.res_option: width=<val> - Specify the number of horizontal pixels to storeres_option: from the image.res_option: height=<val> - Specify the number of vertical pixels to store from the image.res_option: array=<xval>x<yval> - Creates a surface containing <xval> * <yval>res_option: sprites. This option requires the existance of x, y, width, heightres_option: option values in the resource definition; otherwise the option isres_option: ignored. The sprites are read from left to right, top to bottom,res_option: and are each saved with width, height equal to the width,res_option: height options specified.res_option: tcol=<val> - Specifies a given color as transparency color for thisres_option: surface. This option is only meaningful for palettisized inputres_option: image formats (PCX).res_option: tcol=(<val>, <val2>, ...) - Same as above, but specifies several transpareny colors.

Definition at line 23 of file restype_surface.h.


Constructor & Destructor Documentation

CL_Res_Surface::CL_Res_Surface ( )
 


Member Function Documentation

virtual CL_Resource* CL_Res_Surface::create_from_location ( std::string name,
std::string location,
CL_ResourceOptions * options,
CL_ResourceManager * parent ) [private, virtual]
 

Reimplemented from CL_ResourceType.

virtual CL_Resource* CL_Res_Surface::create_from_serialization ( std::string name,
CL_ResourceManager * parent ) [private, virtual]
 

Reimplemented from CL_ResourceType.


Member Data Documentation

friend CL_Res_Surface::CL_ResourceManager [private]
 

Definition at line 59 of file restype_surface.h.

std::list<CL_ResourceSource_Surface*> CL_Res_Surface::surface_sources [static]
 

Definition at line 56 of file restype_surface.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:21 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001