CVPSwizzle Struct Reference

#include <vertex_program_parse.h>


Detailed Description

Swizzle of an operand in a vertex program.

Definition at line 35 of file vertex_program_parse.h.

Public Types

enum  EComp { X = 0, Y = 1, Z = 2, W = 3 }

Public Member Functions

bool isIdentity () const
bool isScalar () const

Data Fields

EComp Comp [4]


Member Enumeration Documentation

enum CVPSwizzle::EComp
 

Enumeration values:
X 
Y 
Z 
W 

Definition at line 37 of file vertex_program_parse.h.

00037 { X = 0, Y = 1, Z = 2, W = 3};


Member Function Documentation

bool CVPSwizzle::isIdentity  )  const [inline]
 

Definition at line 47 of file vertex_program_parse.h.

References Comp, and W.

Referenced by dumpSwizzle(), and NL3D::CDriverGL::setupEXTVertexShader().

00048         {
00049                 return Comp[0] == X
00050                            && Comp[1] == Y
00051                            && Comp[2] == Z
00052                            && Comp[3] == W;
00053         }

bool CVPSwizzle::isScalar  )  const [inline]
 

Definition at line 40 of file vertex_program_parse.h.

References Comp.

Referenced by dumpSwizzle(), and CVPParser::parseInstruction().

00041         {
00042                 return    Comp[0] == Comp[1]
00043                            && Comp[0] == Comp[2]
00044                            && Comp[0] == Comp[3];
00045         }


Field Documentation

EComp CVPSwizzle::Comp[4]
 

Definition at line 38 of file vertex_program_parse.h.

Referenced by dumpSwizzle(), isIdentity(), isScalar(), CVPParser::parseOperand(), CVPParser::parseSwizzle(), and NL3D::CDriverGL::setupEXTVertexShader().


The documentation for this struct was generated from the following file:
Generated on Tue Mar 16 06:43:57 2004 for NeL by doxygen 1.3.6