HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HdVec4f_2_10_10_10_REV Struct Reference

#include <types.h>

Public Member Functions

 HdVec4f_2_10_10_10_REV ()
 
template<typename Vec3Type >
 HdVec4f_2_10_10_10_REV (Vec3Type const &value)
 
 HdVec4f_2_10_10_10_REV (int const value)
 
template<typename Vec3Type >
Vec3Type GetAsVec () const
 
int GetAsInt () const
 
bool operator== (const HdVec4f_2_10_10_10_REV &other) const
 
bool operator!= (const HdVec4f_2_10_10_10_REV &other) const
 

Public Attributes

int x: 10
 
int y: 10
 
int z: 10
 
int w: 2
 

Detailed Description

HdVec4f_2_10_10_10_REV is a compact representation of a GfVec4f. It uses 10 bits for x, y, and z, and 2 bits for w.

XXX We expect this type to move again as we continue work on refactoring the GL dependencies.

Definition at line 183 of file types.h.

Constructor & Destructor Documentation

HdVec4f_2_10_10_10_REV::HdVec4f_2_10_10_10_REV ( )
inline

Definition at line 185 of file types.h.

template<typename Vec3Type >
HdVec4f_2_10_10_10_REV::HdVec4f_2_10_10_10_REV ( Vec3Type const value)
inline

Definition at line 188 of file types.h.

HdVec4f_2_10_10_10_REV::HdVec4f_2_10_10_10_REV ( int const  value)
inline

Definition at line 195 of file types.h.

Member Function Documentation

int HdVec4f_2_10_10_10_REV::GetAsInt ( ) const
inline

Definition at line 211 of file types.h.

template<typename Vec3Type >
Vec3Type HdVec4f_2_10_10_10_REV::GetAsVec ( ) const
inline

Definition at line 205 of file types.h.

Definition at line 222 of file types.h.

bool HdVec4f_2_10_10_10_REV::operator== ( const HdVec4f_2_10_10_10_REV other) const
inline

Definition at line 216 of file types.h.

Member Data Documentation

int HdVec4f_2_10_10_10_REV::w

Definition at line 229 of file types.h.

int HdVec4f_2_10_10_10_REV::x

Definition at line 226 of file types.h.

int HdVec4f_2_10_10_10_REV::y

Definition at line 227 of file types.h.

int HdVec4f_2_10_10_10_REV::z

Definition at line 228 of file types.h.


The documentation for this struct was generated from the following file: