Texture2DFactory Class Reference

#include <SceneBuilderFactories.h>

Inherits TextureFactory.

Inheritance diagram for Texture2DFactory:

Inheritance graph
[legend]
Collaboration diagram for Texture2DFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Texture2DFactory ()
virtual Texturecreate (const std::string &type, std::stringstream &line)

Detailed Description

2D texture parser

Author:
Alex Busenius

Definition at line 206 of file SceneBuilderFactories.h.


Constructor & Destructor Documentation

Texture2DFactory::Texture2DFactory (  )  [inline]

Constructor

Definition at line 211 of file SceneBuilderFactories.h.


Member Function Documentation

Texture * Texture2DFactory::create ( const std::string &  type,
std::stringstream &  line 
) [virtual]

Create a new texture based on type and data in the stream

Parameters:
type Statement type
line Line with data
Returns:
New texture

Implements TextureFactory.

Definition at line 142 of file SceneBuilderFactories.cpp.

References LINEAR, NEAREST, REPEAT, Texture::setInterpolationMode(), Texture::setWrapMode(), QuotedString::str(), and WRAP.

Referenced by SceneBuilder::addTexture().


The documentation for this class was generated from the following files:
Generated on Fri Feb 1 00:02:31 2008 for Grayfall by  doxygen 1.5.1