|
|
|
|
Reference: Muli3D: IMuli3DBaseTexture Class Reference
IMuli3DBaseTexture Class Reference#include <m3dcore_basetexture.h>
Inheritance diagram for IMuli3DBaseTexture:
List of all members.
Detailed Description
This is the texture base-class, which defines functions that are common to all different sorts of textures.
Constructor & Destructor Documentation
|
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 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
|
|