Texture Class Reference

#include <Texture.h>

Inheritance diagram for Texture:

ESGObject Texture2D TexturePNG List of all members.

Public Types

enum  Mapping { UV_MAPPING = (1<<0), XYZ_MAPPING = (1<<1) }

Public Member Functions

 Texture (Mapping m)
virtual ~Texture ()
virtual bool mapUV (float u, float v, Color3f &c) const =0
virtual bool mapXYZ (float x, float y, float z, Color3f &c) const =0
Mapping mapping (void) const
bool mapUV (const Vector2 &uv, Color3f &c) const
bool mapXYZ (const Vector3 &v, Color3f &c) const

Protected Attributes

Mapping _mapping

Detailed Description

Definition at line 12 of file Texture.h.


Member Enumeration Documentation

enum Mapping
 

Enumerator:
UV_MAPPING 
XYZ_MAPPING 

Definition at line 14 of file Texture.h.


Constructor & Destructor Documentation

Texture Mapping  m  )  [inline]
 

Definition at line 23 of file Texture.h.

virtual ~Texture  )  [inline, virtual]
 

Definition at line 24 of file Texture.h.


Member Function Documentation

Mapping mapping void   )  const [inline]
 

Definition at line 29 of file Texture.h.

bool mapUV const Vector2 uv,
Color3f &  c
const [inline]
 

Definition at line 31 of file Texture.h.

virtual bool mapUV float  u,
float  v,
Color3f &  c
const [pure virtual]
 

Implemented in Texture2D.

bool mapXYZ const Vector3 v,
Color3f &  c
const [inline]
 

Definition at line 36 of file Texture.h.

virtual bool mapXYZ float  x,
float  y,
float  z,
Color3f &  c
const [pure virtual]
 

Implemented in Texture2D.


Member Data Documentation

Mapping _mapping [protected]
 

Definition at line 20 of file Texture.h.


The documentation for this class was generated from the following file:
Generated on Wed Jun 28 12:24:36 2006 for esg by  doxygen 1.4.6