HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_MikkT.h
Go to the documentation of this file.
1 /** \file mikktspace/mikktspace.h
2  * \ingroup mikktspace
3  */
4 /**
5  * Copyright (C) 2011 by Morten S. Mikkelsen
6  *
7  * This software is provided 'as-is', without any express or implied
8  * warranty. In no event will the authors be held liable for any damages
9  * arising from the use of this software.
10  *
11  * Permission is granted to anyone to use this software for any purpose,
12  * including commercial applications, and to alter it and redistribute it
13  * freely, subject to the following restrictions:
14  *
15  * 1. The origin of this software must not be misrepresented; you must not
16  * claim that you wrote the original software. If you use this software
17  * in a product, an acknowledgment in the product documentation would be
18  * appreciated but is not required.
19  * 2. Altered source versions must be plainly marked as such, and must not be
20  * misrepresented as being the original software.
21  * 3. This notice may not be removed or altered from any source distribution.
22  */
23 
24 #ifndef __GT_MIKKTSPACE_H__
25 #define __GT_MIKKTSPACE_H__
26 
27 #include "GT_API.h"
28 #include "GT_Handles.h"
29 
30 class UT_StringRef;
31 
33 {
34 public:
35  //! Compute MikkT tangents
36  /// The result of the computation will be written out to per-vertex
37  /// attributes: tangents, bitangents, and signs. Not all output handles
38  /// need to be valid (null handles will be ignored).
39  static bool computeTangentsBasic(
40  const GT_PrimitiveHandle &prim,
41  const UT_StringRef &uvName,
42  const UT_StringRef &pName,
43  const UT_StringRef &nName,
44  const int segment,
45  GT_DataArrayHandle *tangents,
46  GT_DataArrayHandle *bitangents,
47  GT_DataArrayHandle *signs);
48 };
49 
50 #endif
#define GT_API
Definition: GT_API.h:13