14#ifndef OSGUTIL_TANGENTSPACEGENERATOR_
15#define OSGUTIL_TANGENTSPACEGENERATOR_
68 int iA,
int iB,
int iC);
TemplateArray< Vec4, Array::Vec4ArrayType, 4, GL_FLOAT > Vec4Array
Definition Array:450
The osgUtil library provides general purpose utility classes such as update, cull and draw traverses,...
Definition NodeVisitor:25
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Definition PrimitiveSet:125
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
Base class for providing reference counted objects.
Definition Referenced:44
osg::ref_ptr< osg::Vec4Array > T_
Definition TangentSpaceGenerator:70
osg::Vec4Array * getTangentArray()
Definition TangentSpaceGenerator:45
void generate(osg::Geometry *geo, int normal_map_tex_unit=0)
osg::ref_ptr< osg::UIntArray > indices_
Definition TangentSpaceGenerator:73
const osg::Vec4Array * getBinormalArray() const
Definition TangentSpaceGenerator:54
osg::Vec4Array * getBinormalArray()
Definition TangentSpaceGenerator:53
virtual ~TangentSpaceGenerator()
Definition TangentSpaceGenerator:61
osg::IndexArray * getIndices()
Definition TangentSpaceGenerator:57
void setNormalArray(osg::Vec4Array *array)
Definition TangentSpaceGenerator:51
osg::Vec4Array * getNormalArray()
Definition TangentSpaceGenerator:49
osg::ref_ptr< osg::Vec4Array > N_
Definition TangentSpaceGenerator:72
void compute(osg::PrimitiveSet *pset, const osg::Array *vx, const osg::Array *nx, const osg::Array *tx, int iA, int iB, int iC)
TangentSpaceGenerator(const TangentSpaceGenerator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
void setTangentArray(osg::Vec4Array *array)
Definition TangentSpaceGenerator:47
void setBinormalArray(osg::Vec4Array *array)
Definition TangentSpaceGenerator:55
const osg::Vec4Array * getTangentArray() const
Definition TangentSpaceGenerator:46
osg::ref_ptr< osg::Vec4Array > B_
Definition TangentSpaceGenerator:71
const osg::Vec4Array * getNormalArray() const
Definition TangentSpaceGenerator:50
TangentSpaceGenerator & operator=(const TangentSpaceGenerator &)
Definition TangentSpaceGenerator:62
#define OSGUTIL_EXPORT
Definition Export:40