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

SH::ShPosition< N, Binding, T, Swizzled > Class Template Reference

A vertex or fragment position. More...

#include <ShPosition.hpp>

Inheritance diagram for SH::ShPosition< N, Binding, T, Swizzled >:

Inheritance graph
[legend]
Collaboration diagram for SH::ShPosition< N, Binding, T, Swizzled >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T storage_type
typedef ShHostType< T >::type host_type
typedef ShMemType< T >::type mem_type
typedef ShPosition< N, SH_INPUT,
T > 
InputType
typedef ShPosition< N, SH_OUTPUT,
T > 
OutputType
typedef ShPosition< N, SH_INOUT,
T > 
InOutType
typedef ShPosition< N, SH_TEMP,
T > 
TempType
typedef ShPosition< N, SH_CONST,
T > 
ConstType

Public Member Functions

template<typename T2>
 ShPosition (const ShGeneric< N, T2 > &other)
 ShPosition (const ShPosition< N, Binding, T, Swizzled > &other)
template<typename T2>
 ShPosition (const ShPosition< N, Binding, T2, Swizzled > &other)
 ShPosition (const ShVariableNodePtr &node, const ShSwizzle &swizzle, bool neg)
 ShPosition (host_type data[N])
template<typename T2>
ShPositionoperator= (const ShGeneric< N, T2 > &other)
template<typename T2>
ShPositionoperator= (const ShPosition< N, Binding, T2, Swizzled > &other)
ShPositionoperator= (const ShPosition< N, Binding, T, Swizzled > &other)
ShPositionoperator= (const ShProgram &prg)
template<typename T2>
ShPositionoperator+= (const ShGeneric< N, T2 > &right)
template<typename T2>
ShPositionoperator-= (const ShGeneric< N, T2 > &right)
template<typename T2>
ShPositionoperator *= (const ShGeneric< N, T2 > &right)
template<typename T2>
ShPositionoperator/= (const ShGeneric< N, T2 > &right)
template<typename T2>
ShPositionoperator%= (const ShGeneric< N, T2 > &right)
ShPositionoperator *= (host_type)
ShPositionoperator/= (host_type)
ShPositionoperator%= (host_type)
ShPositionoperator+= (host_type)
ShPositionoperator-= (host_type)
template<typename T2>
ShPositionoperator+= (const ShGeneric< 1, T2 > &)
template<typename T2>
ShPositionoperator-= (const ShGeneric< 1, T2 > &)
template<typename T2>
ShPositionoperator *= (const ShGeneric< 1, T2 > &)
template<typename T2>
ShPositionoperator/= (const ShGeneric< 1, T2 > &)
template<typename T2>
ShPositionoperator%= (const ShGeneric< 1, T2 > &)
ShPosition< 1, Binding, T,
true > 
operator() (int) const
ShPosition< 2, Binding, T,
true > 
operator() (int, int) const
ShPosition< 3, Binding, T,
true > 
operator() (int, int, int) const
ShPosition< 4, Binding, T,
true > 
operator() (int, int, int, int) const
ShPosition< 1, Binding, T,
true > 
operator[] (int) const
template<int N2>
ShPosition< N2, Binding, T,
true > 
swiz (int indices[]) const
ShPosition operator- () const

Static Public Attributes

static const ShBindingType binding_type
static const ShSemanticType semantic_type

Detailed Description

template<int N, ShBindingType Binding, typename T = float, bool Swizzled = false>
class SH::ShPosition< N, Binding, T, Swizzled >

A vertex or fragment position.

This is semantically a point, but is bound preferentially to the position input and output of the rasterizer or to the vertex position when used in vertex and fragment shaders.

Definition at line 49 of file ShPosition.hpp.


The documentation for this class was generated from the following files:
Generated on Mon Jan 24 18:38:17 2005 for Sh by  doxygen 1.4.1