Path Tracer
postprocess.h
Go to the documentation of this file.
1 /*
2 Open Asset Import Library (assimp)
3 ----------------------------------------------------------------------
4 
5 Copyright (c) 2006-2020, assimp team
6 
7 
8 All rights reserved.
9 
10 Redistribution and use of this software in source and binary forms,
11 with or without modification, are permitted provided that the
12 following conditions are met:
13 
14 * Redistributions of source code must retain the above
15  copyright notice, this list of conditions and the
16  following disclaimer.
17 
18 * Redistributions in binary form must reproduce the above
19  copyright notice, this list of conditions and the
20  following disclaimer in the documentation and/or other
21  materials provided with the distribution.
22 
23 * Neither the name of the assimp team, nor the names of its
24  contributors may be used to endorse or promote products
25  derived from this software without specific prior
26  written permission of the assimp team.
27 
28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 
40 ----------------------------------------------------------------------
41 */
42 
46 #pragma once
47 #ifndef AI_POSTPROCESS_H_INC
48 #define AI_POSTPROCESS_H_INC
49 
50 #include <assimp/types.h>
51 
52 #ifdef __GNUC__
53 # pragma GCC system_header
54 #endif
55 
56 #ifdef __cplusplus
57 extern "C" {
58 #endif
59 
60 // -----------------------------------------------------------------------------------
71 // -----------------------------------------------------------------------------------
73 {
74 
75  // -------------------------------------------------------------------------
86 
87  // -------------------------------------------------------------------------
99 
100  // -------------------------------------------------------------------------
115 
116  // -------------------------------------------------------------------------
131 
132  // -------------------------------------------------------------------------
157 
158  // -------------------------------------------------------------------------
171 
172  // -------------------------------------------------------------------------
188 
189  // -------------------------------------------------------------------------
207 
208  // -------------------------------------------------------------------------
228 
229  // -------------------------------------------------------------------------
244 
245  // -------------------------------------------------------------------------
272 
273  // -------------------------------------------------------------------------
287 
288  // -------------------------------------------------------------------------
308 
309  // -------------------------------------------------------------------------
322 
323 
324 
325  // -------------------------------------------------------------------------
335 
336  // -------------------------------------------------------------------------
349 
350  // -------------------------------------------------------------------------
392 
393  // -------------------------------------------------------------------------
407 
408  // -------------------------------------------------------------------------
424 
425  // -------------------------------------------------------------------------
441 
442  // -------------------------------------------------------------------------
456 
457  // -------------------------------------------------------------------------
467 
468 
469  // -------------------------------------------------------------------------
496 
497  // -------------------------------------------------------------------------
515  aiProcess_FlipUVs = 0x800000,
516 
517  // -------------------------------------------------------------------------
531 
532  // -------------------------------------------------------------------------
537 
538  // -------------------------------------------------------------------------
551  aiProcess_Debone = 0x4000000,
552 
553 
554 
555  // -------------------------------------------------------------------------
566 
567  // -------------------------------------------------------------------------
577 
578  // aiProcess_GenEntityMeshes = 0x100000,
579  // aiProcess_OptimizeAnimations = 0x200000
580  // aiProcess_FixTexturePaths = 0x200000
581 
582 
583  aiProcess_ForceGenNormals = 0x20000000,
584 
585  // -------------------------------------------------------------------------
595  aiProcess_DropNormals = 0x40000000,
596 
597  // -------------------------------------------------------------------------
600  aiProcess_GenBoundingBoxes = 0x80000000
601 };
602 
603 
604 // ---------------------------------------------------------------------------------------
615 #define aiProcess_ConvertToLeftHanded ( \
616  aiProcess_MakeLeftHanded | \
617  aiProcess_FlipUVs | \
618  aiProcess_FlipWindingOrder | \
619  0 )
620 
621 
622 // ---------------------------------------------------------------------------------------
636 #define aiProcessPreset_TargetRealtime_Fast ( \
637  aiProcess_CalcTangentSpace | \
638  aiProcess_GenNormals | \
639  aiProcess_JoinIdenticalVertices | \
640  aiProcess_Triangulate | \
641  aiProcess_GenUVCoords | \
642  aiProcess_SortByPType | \
643  0 )
644 
645  // ---------------------------------------------------------------------------------------
661 #define aiProcessPreset_TargetRealtime_Quality ( \
662  aiProcess_CalcTangentSpace | \
663  aiProcess_GenSmoothNormals | \
664  aiProcess_JoinIdenticalVertices | \
665  aiProcess_ImproveCacheLocality | \
666  aiProcess_LimitBoneWeights | \
667  aiProcess_RemoveRedundantMaterials | \
668  aiProcess_SplitLargeMeshes | \
669  aiProcess_Triangulate | \
670  aiProcess_GenUVCoords | \
671  aiProcess_SortByPType | \
672  aiProcess_FindDegenerates | \
673  aiProcess_FindInvalidData | \
674  0 )
675 
676  // ---------------------------------------------------------------------------------------
691 #define aiProcessPreset_TargetRealtime_MaxQuality ( \
692  aiProcessPreset_TargetRealtime_Quality | \
693  aiProcess_FindInstances | \
694  aiProcess_ValidateDataStructure | \
695  aiProcess_OptimizeMeshes | \
696  0 )
697 
698 
699 #ifdef __cplusplus
700 } // end of extern "C"
701 #endif
702 
703 #endif // AI_POSTPROCESS_H_INC
aiProcess_FindInstances
@ aiProcess_FindInstances
Definition: postprocess.h:455
aiProcess_FixInfacingNormals
@ aiProcess_FixInfacingNormals
Definition: postprocess.h:321
types.h
aiProcess_OptimizeGraph
@ aiProcess_OptimizeGraph
Definition: postprocess.h:495
aiPostProcessSteps
aiPostProcessSteps
Defines the flags for all possible post processing steps.
Definition: postprocess.h:73
aiProcess_FindDegenerates
@ aiProcess_FindDegenerates
Definition: postprocess.h:391
aiProcess_FindInvalidData
@ aiProcess_FindInvalidData
Definition: postprocess.h:406
aiProcess_FlipWindingOrder
@ aiProcess_FlipWindingOrder
Definition: postprocess.h:530
aiProcess_PopulateArmatureData
@ aiProcess_PopulateArmatureData
Definition: postprocess.h:334
aiProcess_Triangulate
@ aiProcess_Triangulate
Definition: postprocess.h:130
aiProcess_DropNormals
@ aiProcess_DropNormals
Definition: postprocess.h:595
aiProcess_OptimizeMeshes
@ aiProcess_OptimizeMeshes
Definition: postprocess.h:466
aiProcess_ValidateDataStructure
@ aiProcess_ValidateDataStructure
Definition: postprocess.h:271
aiProcess_CalcTangentSpace
@ aiProcess_CalcTangentSpace
Definition: postprocess.h:85
aiProcess_GlobalScale
@ aiProcess_GlobalScale
Definition: postprocess.h:565
aiProcess_SortByPType
@ aiProcess_SortByPType
Definition: postprocess.h:348
aiProcess_Debone
@ aiProcess_Debone
Definition: postprocess.h:551
aiProcess_ImproveCacheLocality
@ aiProcess_ImproveCacheLocality
Definition: postprocess.h:286
aiProcess_PreTransformVertices
@ aiProcess_PreTransformVertices
Definition: postprocess.h:227
aiProcess_GenUVCoords
@ aiProcess_GenUVCoords
Definition: postprocess.h:423
aiProcess_GenNormals
@ aiProcess_GenNormals
Definition: postprocess.h:170
aiProcess_GenSmoothNormals
@ aiProcess_GenSmoothNormals
Definition: postprocess.h:187
aiProcess_RemoveRedundantMaterials
@ aiProcess_RemoveRedundantMaterials
Definition: postprocess.h:307
aiProcess_RemoveComponent
@ aiProcess_RemoveComponent
Definition: postprocess.h:156
aiProcess_EmbedTextures
@ aiProcess_EmbedTextures
Definition: postprocess.h:576
aiProcess_SplitLargeMeshes
@ aiProcess_SplitLargeMeshes
Definition: postprocess.h:206
aiProcess_SplitByBoneCount
@ aiProcess_SplitByBoneCount
Definition: postprocess.h:536
aiProcess_TransformUVCoords
@ aiProcess_TransformUVCoords
Definition: postprocess.h:440
aiProcess_MakeLeftHanded
@ aiProcess_MakeLeftHanded
Definition: postprocess.h:114
aiProcess_FlipUVs
@ aiProcess_FlipUVs
Definition: postprocess.h:515
aiProcess_LimitBoneWeights
@ aiProcess_LimitBoneWeights
Definition: postprocess.h:243
aiProcess_JoinIdenticalVertices
@ aiProcess_JoinIdenticalVertices
Definition: postprocess.h:98