CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csBaseTextureFactory Class Reference

Base class for texture factories, with support for common parameters. More...

#include <cstool/basetexfact.h>

Inheritance diagram for csBaseTextureFactory:

iTextureFactory iBase List of all members.

Public Member Functions

virtual void SetSize (int w, int h)
 Set the size of the texture to be created.
virtual void GetSize (int &w, int &h)
 Get the size of the texture to be created.
virtual iTextureTypeGetTextureType () const
 Get the TextureType for this texture factory.

Protected Attributes

iObjectRegistryobject_reg
 object registry
int width
 Width parameter.
int height
 Height parameter.
iTextureTypetexture_type
 Texture Type.

Detailed Description

Base class for texture factories, with support for common parameters.

Remarks:
Descendants must at least implement Generate(). Adding more parameters should be done via additional interfaces.

Definition at line 38 of file basetexfact.h.


Member Function Documentation

virtual void csBaseTextureFactory::GetSize int &  w,
int &  h
[virtual]
 

Get the size of the texture to be created.

Implements iTextureFactory.

virtual iTextureType* csBaseTextureFactory::GetTextureType  )  const [virtual]
 

Get the TextureType for this texture factory.

Implements iTextureFactory.

virtual void csBaseTextureFactory::SetSize int  w,
int  h
[virtual]
 

Set the size of the texture to be created.

Implements iTextureFactory.


Member Data Documentation

int csBaseTextureFactory::height [protected]
 

Height parameter.

Definition at line 46 of file basetexfact.h.

iObjectRegistry* csBaseTextureFactory::object_reg [protected]
 

object registry

Definition at line 42 of file basetexfact.h.

iTextureType* csBaseTextureFactory::texture_type [protected]
 

Texture Type.

Definition at line 48 of file basetexfact.h.

int csBaseTextureFactory::width [protected]
 

Width parameter.

Definition at line 44 of file basetexfact.h.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1