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.

Classes

struct  sh_gcc_backend_wrap_clamp
struct  sh_gcc_backend_wrap_repeat

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 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 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 afterwards

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

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

Definition in file CcTextures.hpp.


Generated on Thu Feb 16 14:51:47 2006 for Sh by  doxygen 1.4.6