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

CcTextures.hpp File Reference

This implements 1D, 2D, and 3D texture lookup functions, clamps texture coordinates, but. More...

Go to the source code of this file.

Functions

template<typename T>
int sh_cc_backend_nearest (T value)
template<int TexDims, int TexSize, int TexWidth, int TexHeight, int TexDepth, typename TexType, typename SrcWrap, typename DestClamp, typename IndexType, typename MemoryType>
void sh_cc_backend_lookupi (const void *texture, IndexType *src, MemoryType *dest)
template<int TexDims, int TexSize, int TexWidth, int TexHeight, int TexDepth, typename TexType, typename SrcWrap, typename DestClamp, typename IndexType, typename MemoryType>
void sh_cc_backend_lookup (const void *texture, IndexType *src, MemoryType *dest)


Detailed Description

This implements 1D, 2D, and 3D texture lookup functions, clamps texture coordinates, but.

Assume interpolation/mipmapping and clamping afterwards

src indices are assumed to be integers, even if the int allows floating point values.

All of the parameters such as tuple-size, clamp mode, etc. will be known statically at time of code emission, so they are all template parameters.

Definition in file CcTextures.hpp.


Generated on Mon Jan 24 18:36:40 2005 for Sh by  doxygen 1.4.1