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

ShNibbles.hpp File Reference

A set of nibbles that are functions that return ShPrograms for basic operations. More...

#include "ShBaseTexture.hpp"
#include "ShProgram.hpp"
#include "ShMatrix.hpp"
#include "ShNibblesImpl.hpp"

Include dependency graph for ShNibbles.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  SH
#define SHNIBBLE_BINARY_OP_DECL(opname)
 SH::SHNIBBLE_BINARY_OP_DECL (add)
 SH::SHNIBBLE_BINARY_OP_DECL (sub)
 SH::SHNIBBLE_BINARY_OP_DECL (mul)
 SH::SHNIBBLE_BINARY_OP_DECL (div)
 SH::SHNIBBLE_BINARY_OP_DECL (pow)
 SH::SHNIBBLE_BINARY_OP_DECL (slt)
 SH::SHNIBBLE_BINARY_OP_DECL (sle)
 SH::SHNIBBLE_BINARY_OP_DECL (sgt)
 SH::SHNIBBLE_BINARY_OP_DECL (sge)
 SH::SHNIBBLE_BINARY_OP_DECL (seq)
 SH::SHNIBBLE_BINARY_OP_DECL (sne)
 SH::SHNIBBLE_BINARY_OP_DECL (max)
 SH::SHNIBBLE_BINARY_OP_DECL (min)
template<typename T, typename T2>
ShProgram SH::fillcast (const std::string &name="result")
 Fill-Casting nibble Casts from tuple type T to type T2 If T::typesize < T2::typesize, pads with repeated last component at end.
template<typename T>
ShProgram SH::acos (const std::string &name="result")
template<typename T>
ShProgram SH::asin (const std::string &name="result")
template<typename T>
ShProgram SH::cos (const std::string &name="result")
template<typename T>
ShProgram SH::frac (const std::string &name="result")
template<typename T>
ShProgram SH::sin (const std::string &name="result")
template<typename T>
ShProgram SH::sqrt (const std::string &name="result")
template<typename T>
ShProgram SH::normalize (const std::string &name="result")
template<typename T>
ShProgram SH::pos (const std::string &name="result")
brief Nibbles for unary operators * SH::Inputs
 SH::SHNIBBLE_BINARY_OP_DECL (mod)
brief Nibble for dot product
operator *Inputs:IN(0) T a
*IN(1) T b *Outputs brief
Nibble for lerp 
SH::operator *Inputs:IN (0) T1 a *IN(1) T1 b *IN(2) T2 alpha(T2
template<typename T1>
ShProgram SH::lerp (const std::string &name="result")
brief Nibble for dot product
operator *Inputs:IN(0) T a
*IN(1) T b *Outputs brief
Nibble for lerp T2 ShProgram 
SH::lerp (const std::string &name="result")

Functions

template<typename T>
ShProgram SH::keep (const std::string &name="")
 Creates a keep nibble.
template<typename T>
ShProgram SH::dup (const std::string &name="var")
 Creates a dup nibble.
template<typename T>
ShProgram SH::lose (const std::string &name="")
 Creates a lose nibble.
template<typename T>
ShProgram SH::access (const ShBaseTexture1D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result")
 2D texture lookup nibble Inputs: IN(0) ShTexCoord1f texcoord Outputs: OUT(0) name = tex(tc)
template<typename T>
ShProgram SH::access (const ShBaseTexture2D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result")
 2D texture lookup nibble Inputs: IN(0) ShTexCoord2f texcoord Outputs: OUT(0) name = tex(tc)
template<typename T>
ShProgram SH::access (const ShBaseTextureRect< T > &tex, const std::string &tcname="texcoord", const std::string &name="result")
 Rect texture lookup nibble Inputs: IN(0) ShTexCoord2f texcoord Outputs: OUT(0) name = tex(tc).
template<typename T>
ShProgram SH::access (const ShBaseTexture3D< T > &tex, const std::string &tcname="texcoord", const std::string &name="result")
 3D texture lookup nibble Inputs: IN(0) ShTexCoord3f texcoord Outputs: OUT(0) name = tex(tc)
template<typename T>
ShProgram SH::access (const ShBaseTextureCube< T > &tex, const std::string &tcname="texcoord", const std::string &name="result")
 Cube texture lookup nibble Inputs: IN(0) ShTexCoord3f texcoord Outputs: OUT(0) name = tex(tc).
template<typename T, int Rows, int Cols, ShBindingType Binding, typename T2>
ShProgram SH::transform (const ShMatrix< Rows, Cols, Binding, T2 > &m, const std::string &name="result")
 transformation nibble Creates a nibble that transforms a variable of type T by a matrix of type ShMatrix<Rows, Cols, Binding, V> Inputs: IN(0) attrib Outputs: OUT(0) T name = m | attrib
template<typename T, typename T2>
ShProgram SH::cast (const std::string &name="result")
 Casting nibble Casts from tuple type T to type T2 If T::typesize < T2::typesize, pads with 0 components at end.


Detailed Description

A set of nibbles that are functions that return ShPrograms for basic operations.

Definition in file ShNibbles.hpp.


Generated on Wed Jun 15 18:13:55 2005 for Sh by  doxygen 1.4.3-20050530