Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00027 #ifndef __CS_CSGFX_NORMALMAPTOOLS_H__
00028 #define __CS_CSGFX_NORMALMAPTOOLS_H__
00029
00030 #include "csextern.h"
00031
00032 struct csTriangle;
00033 class csVector3;
00034 class csVector2;
00035
00039 class CS_CRYSTALSPACE_EXPORT csNormalMappingTools
00040 {
00041 public:
00045 static void CalculateTangents (size_t numTriangles,
00046 const csTriangle* triangles, size_t numVertices, const csVector3* vertices,
00047 const csVector3* normals, const csVector2* texcoords,
00048 csVector3* outTangents, csVector3* outBitangents);
00049 };
00050
00053 #endif // __CS_CSGFX_NORMALMAPTOOLS_H__