Main Page -
Class Hierarchy -
Class List -
File List -
Class Members -
Related Pages -

Information | Reference | SourceForge Project | Author
Muli3D

Reference: Muli3D: IMuli3DBaseTexture Class Reference

IMuli3DBaseTexture Class Reference

#include <m3dcore_basetexture.h>

Inheritance diagram for IMuli3DBaseTexture:

IBase CMuli3DCubeTexture CMuli3DTexture CMuli3DVolumeTexture List of all members.

Detailed Description

This is the texture base-class, which defines functions that are common to all different sorts of textures.


Public Member Functions

CMuli3DDevicepGetDevice ()

Protected Member Functions

virtual m3dtexsampleinput eGetTexSampleInput ()=0
 IMuli3DBaseTexture (class CMuli3DDevice *i_pParent)
virtual result SampleTexture (vector4 &o_vColor, float32 i_fU, float32 i_fV, float32 i_fW, const vector4 *i_pXGradient, const vector4 *i_pYGradient, const uint32 *i_pSamplerStates)=0
virtual ~IMuli3DBaseTexture ()

Protected Attributes

CMuli3DDevicem_pParent


Constructor & Destructor Documentation

IMuli3DBaseTexture::~IMuli3DBaseTexture  )  [protected, virtual]
 

Accessible by IBase. The destructor is called when the reference count reaches zero.

IMuli3DBaseTexture::IMuli3DBaseTexture class CMuli3DDevice i_pParent  )  [protected]
 

Texture constructor.

Parameters:
[in] i_pParent a pointer to the parent CMuli3DDevice-object.


Member Function Documentation

virtual m3dtexsampleinput IMuli3DBaseTexture::eGetTexSampleInput  )  [protected, pure virtual]
 

Returns a member of enum m3dtexsampleinput, which determines the type of input vector SampleTexture() will receive when sampling the texture.

Implemented in CMuli3DCubeTexture, CMuli3DTexture, and CMuli3DVolumeTexture.

CMuli3DDevice * IMuli3DBaseTexture::pGetDevice  ) 
 

Returns a pointer to the associated device. Calling this function will increase the internal reference count of the device. Failure to call Release() when finished using the pointer will result in a memory leak.

virtual result IMuli3DBaseTexture::SampleTexture vector4 &  o_vColor,
float32  i_fU,
float32  i_fV,
float32  i_fW,
const vector4 *  i_pXGradient,
const vector4 *  i_pYGradient,
const uint32 i_pSamplerStates
[protected, pure virtual]
 

Samples the texture and returns the looked-up color.

Parameters:
[out] o_vColor receives the color of the pixel to be looked up.
[in] i_fU u-component of the lookup-vector.
[in] i_fV v-component of the lookup-vector.
[in] i_fW w-component of the lookup-vector.
[in] i_pXGradient partial derivatives of the texture coordinates with respect to the screen-space x coordinate. If 0 the base mip-level will be chosen and the minification filter will be used for texture sampling.
[in] i_pYGradient partial derivatives of the texture coordinates with respect to the screen-space y coordinate. If 0 the base mip-level will be chosen and the minification filter will be used for texture sampling.
[in] i_pSamplerStates texture sampler states.
Returns:
s_ok if the function succeeds.

Implemented in CMuli3DCubeTexture, CMuli3DTexture, and CMuli3DVolumeTexture.


Member Data Documentation

class CMuli3DDevice* IMuli3DBaseTexture::m_pParent [protected]
 

Pointer to parent.

Documentation created with doxygen SourceForge.net Logo