Externals  Version: 0.1.4 Revision: 541 Platform: x86 Build: 14:26 02.05.2020
Решение для сборки сторонних библиотек
config.h
См. документацию.
1 /*
2 ---------------------------------------------------------------------------
3 Open Asset Import Library (assimp)
4 ---------------------------------------------------------------------------
5 
6 Copyright (c) 2006-2018, assimp team
7 
8 
9 All rights reserved.
10 
11 Redistribution and use of this software in source and binary forms,
12 with or without modification, are permitted provided that the following
13 conditions are met:
14 
15 * Redistributions of source code must retain the above
16  copyright notice, this list of conditions and the
17  following disclaimer.
18 
19 * Redistributions in binary form must reproduce the above
20  copyright notice, this list of conditions and the
21  following disclaimer in the documentation and/or other
22  materials provided with the distribution.
23 
24 * Neither the name of the assimp team, nor the names of its
25  contributors may be used to endorse or promote products
26  derived from this software without specific prior
27  written permission of the assimp team.
28 
29 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
33 OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
34 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
35 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
36 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
37 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
38 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
39 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 ---------------------------------------------------------------------------
41 */
42 
59 #pragma once
60 #ifndef AI_CONFIG_H_INC
61 #define AI_CONFIG_H_INC
62 
63 
64 // ###########################################################################
65 // LIBRARY SETTINGS
66 // General, global settings
67 // ###########################################################################
68 
69 // ---------------------------------------------------------------------------
79 #define AI_CONFIG_GLOB_MEASURE_TIME \
80  "GLOB_MEASURE_TIME"
81 
82 
83 // ---------------------------------------------------------------------------
90 // ---------------------------------------------------------------------------
91 #define AI_CONFIG_IMPORT_NO_SKELETON_MESHES \
92  "IMPORT_NO_SKELETON_MESHES"
93 
94 
95 
96 # if 0 // not implemented yet
97 // ---------------------------------------------------------------------------
112 #define AI_CONFIG_GLOB_MULTITHREADING \
113  "GLOB_MULTITHREADING"
114 #endif
115 
116 // ###########################################################################
117 // POST PROCESSING SETTINGS
118 // Various stuff to fine-tune the behavior of a specific post processing step.
119 // ###########################################################################
120 
121 
122 // ---------------------------------------------------------------------------
130 // ---------------------------------------------------------------------------
131 #define AI_CONFIG_PP_SBBC_MAX_BONES \
132  "PP_SBBC_MAX_BONES"
133 
134 
135 // default limit for bone count
136 #if (!defined AI_SBBC_DEFAULT_MAX_BONES)
137 # define AI_SBBC_DEFAULT_MAX_BONES 60
138 #endif
139 
140 
141 // ---------------------------------------------------------------------------
149 #define AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE \
150  "PP_CT_MAX_SMOOTHING_ANGLE"
151 
152 // ---------------------------------------------------------------------------
158 // ---------------------------------------------------------------------------
159 #define AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX \
160  "PP_CT_TEXTURE_CHANNEL_INDEX"
161 
162 // ---------------------------------------------------------------------------
174 #define AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE \
175  "PP_GSN_MAX_SMOOTHING_ANGLE"
176 
177 
178 // ---------------------------------------------------------------------------
188 #define AI_CONFIG_IMPORT_MDL_COLORMAP \
189  "IMPORT_MDL_COLORMAP"
190 
191 // ---------------------------------------------------------------------------
210 #define AI_CONFIG_PP_RRM_EXCLUDE_LIST \
211  "PP_RRM_EXCLUDE_LIST"
212 
213 // ---------------------------------------------------------------------------
225 #define AI_CONFIG_PP_PTV_KEEP_HIERARCHY \
226  "PP_PTV_KEEP_HIERARCHY"
227 
228 // ---------------------------------------------------------------------------
235 #define AI_CONFIG_PP_PTV_NORMALIZE \
236  "PP_PTV_NORMALIZE"
237 
238 // ---------------------------------------------------------------------------
244 #define AI_CONFIG_PP_PTV_ADD_ROOT_TRANSFORMATION \
245  "PP_PTV_ADD_ROOT_TRANSFORMATION"
246 
247 // ---------------------------------------------------------------------------
254 #define AI_CONFIG_PP_PTV_ROOT_TRANSFORMATION \
255  "PP_PTV_ROOT_TRANSFORMATION"
256 
257 // ---------------------------------------------------------------------------
267 #define AI_CONFIG_PP_FD_REMOVE \
268  "PP_FD_REMOVE"
269 
270 // ---------------------------------------------------------------------------
276 #define AI_CONFIG_PP_FD_CHECKAREA \
277  "PP_FD_CHECKAREA"
278 
279 // ---------------------------------------------------------------------------
297 #define AI_CONFIG_PP_OG_EXCLUDE_LIST \
298  "PP_OG_EXCLUDE_LIST"
299 
300 // ---------------------------------------------------------------------------
308 #define AI_CONFIG_PP_SLM_TRIANGLE_LIMIT \
309  "PP_SLM_TRIANGLE_LIMIT"
310 
311 // default value for AI_CONFIG_PP_SLM_TRIANGLE_LIMIT
312 #if (!defined AI_SLM_DEFAULT_MAX_TRIANGLES)
313 # define AI_SLM_DEFAULT_MAX_TRIANGLES 1000000
314 #endif
315 
316 // ---------------------------------------------------------------------------
324 #define AI_CONFIG_PP_SLM_VERTEX_LIMIT \
325  "PP_SLM_VERTEX_LIMIT"
326 
327 // default value for AI_CONFIG_PP_SLM_VERTEX_LIMIT
328 #if (!defined AI_SLM_DEFAULT_MAX_VERTICES)
329 # define AI_SLM_DEFAULT_MAX_VERTICES 1000000
330 #endif
331 
332 // ---------------------------------------------------------------------------
338 #define AI_CONFIG_PP_LBW_MAX_WEIGHTS \
339  "PP_LBW_MAX_WEIGHTS"
340 
341 // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
342 #if (!defined AI_LMW_MAX_WEIGHTS)
343 # define AI_LMW_MAX_WEIGHTS 0x4
344 #endif // !! AI_LMW_MAX_WEIGHTS
345 
346 // ---------------------------------------------------------------------------
352 #define AI_CONFIG_PP_DB_THRESHOLD \
353  "PP_DB_THRESHOLD"
354 
355 // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
356 #if (!defined AI_DEBONE_THRESHOLD)
357 # define AI_DEBONE_THRESHOLD 1.0f
358 #endif // !! AI_DEBONE_THRESHOLD
359 
360 // ---------------------------------------------------------------------------
366 #define AI_CONFIG_PP_DB_ALL_OR_NONE \
367  "PP_DB_ALL_OR_NONE"
368 
371 #ifndef PP_ICL_PTCACHE_SIZE
372 # define PP_ICL_PTCACHE_SIZE 12
373 #endif
374 
375 // ---------------------------------------------------------------------------
386 #define AI_CONFIG_PP_ICL_PTCACHE_SIZE "PP_ICL_PTCACHE_SIZE"
387 
388 // ---------------------------------------------------------------------------
395 {
397 #ifdef SWIG
398  aiComponent_NORMALS = 0x2,
399 #else
401 #endif
402 
404 #ifdef SWIG
406 #else
408 #endif
409 
413 
417 
422 
427 
430 
435 
440 
443 
447 
448 
451 #ifndef SWIG
452  _aiComponent_Force32Bit = 0x9fffffff
453 #endif
454 };
455 
456 // Remove a specific color channel 'n'
457 #define aiComponent_COLORSn(n) (1u << (n+20u))
458 
459 // Remove a specific UV channel 'n'
460 #define aiComponent_TEXCOORDSn(n) (1u << (n+25u))
461 
462 // ---------------------------------------------------------------------------
474 #define AI_CONFIG_PP_RVC_FLAGS \
475  "PP_RVC_FLAGS"
476 
477 // ---------------------------------------------------------------------------
486 #define AI_CONFIG_PP_SBP_REMOVE \
487  "PP_SBP_REMOVE"
488 
489 // ---------------------------------------------------------------------------
498 #define AI_CONFIG_PP_FID_ANIM_ACCURACY \
499  "PP_FID_ANIM_ACCURACY"
500 
501 // ---------------------------------------------------------------------------
506 #define AI_CONFIG_PP_FID_IGNORE_TEXTURECOORDS \
507  "PP_FID_IGNORE_TEXTURECOORDS"
508 
509 // TransformUVCoords evaluates UV scalings
510 #define AI_UVTRAFO_SCALING 0x1
511 
512 // TransformUVCoords evaluates UV rotations
513 #define AI_UVTRAFO_ROTATION 0x2
514 
515 // TransformUVCoords evaluates UV translation
516 #define AI_UVTRAFO_TRANSLATION 0x4
517 
518 // Everything baked together -> default value
519 #define AI_UVTRAFO_ALL (AI_UVTRAFO_SCALING | AI_UVTRAFO_ROTATION | AI_UVTRAFO_TRANSLATION)
520 
521 // ---------------------------------------------------------------------------
529 #define AI_CONFIG_PP_TUV_EVALUATE \
530  "PP_TUV_EVALUATE"
531 
532 // ---------------------------------------------------------------------------
541 #define AI_CONFIG_FAVOUR_SPEED \
542  "FAVOUR_SPEED"
543 
544 
545 // ###########################################################################
546 // IMPORTER SETTINGS
547 // Various stuff to fine-tune the behaviour of specific importer plugins.
548 // ###########################################################################
549 
550 
551 // ---------------------------------------------------------------------------
558 #define AI_CONFIG_IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS \
559  "IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS"
560 
561 // ---------------------------------------------------------------------------
570 #define AI_CONFIG_IMPORT_FBX_READ_ALL_MATERIALS \
571  "IMPORT_FBX_READ_ALL_MATERIALS"
572 
573 // ---------------------------------------------------------------------------
579 #define AI_CONFIG_IMPORT_FBX_READ_MATERIALS \
580  "IMPORT_FBX_READ_MATERIALS"
581 
582 // ---------------------------------------------------------------------------
588 #define AI_CONFIG_IMPORT_FBX_READ_TEXTURES \
589  "IMPORT_FBX_READ_TEXTURES"
590 
591 // ---------------------------------------------------------------------------
597 #define AI_CONFIG_IMPORT_FBX_READ_CAMERAS \
598  "IMPORT_FBX_READ_CAMERAS"
599 
600 // ---------------------------------------------------------------------------
606 #define AI_CONFIG_IMPORT_FBX_READ_LIGHTS \
607  "IMPORT_FBX_READ_LIGHTS"
608 
609 // ---------------------------------------------------------------------------
615 #define AI_CONFIG_IMPORT_FBX_READ_ANIMATIONS \
616  "IMPORT_FBX_READ_ANIMATIONS"
617 
618 // ---------------------------------------------------------------------------
627 #define AI_CONFIG_IMPORT_FBX_STRICT_MODE \
628  "IMPORT_FBX_STRICT_MODE"
629 
630 // ---------------------------------------------------------------------------
638 #define AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS \
639  "IMPORT_FBX_PRESERVE_PIVOTS"
640 
641 // ---------------------------------------------------------------------------
649 #define AI_CONFIG_IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES \
650  "IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES"
651 
652 // ---------------------------------------------------------------------------
658 #define AI_CONFIG_IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING \
659  "AI_CONFIG_IMPORT_FBX_EMBEDDED_TEXTURES_LEGACY_NAMING"
660 
661 // ---------------------------------------------------------------------------
666 #define AI_CONFIG_IMPORT_REMOVE_EMPTY_BONES \
667  "AI_CONFIG_IMPORT_REMOVE_EMPTY_BONES"
668 
669 
670 // ---------------------------------------------------------------------------
673 #define AI_CONFIG_FBX_CONVERT_TO_M \
674  "AI_CONFIG_FBX_CONVERT_TO_M"
675 
676 // ---------------------------------------------------------------------------
689 #define AI_CONFIG_IMPORT_GLOBAL_KEYFRAME "IMPORT_GLOBAL_KEYFRAME"
690 
691 #define AI_CONFIG_IMPORT_MD3_KEYFRAME "IMPORT_MD3_KEYFRAME"
692 #define AI_CONFIG_IMPORT_MD2_KEYFRAME "IMPORT_MD2_KEYFRAME"
693 #define AI_CONFIG_IMPORT_MDL_KEYFRAME "IMPORT_MDL_KEYFRAME"
694 #define AI_CONFIG_IMPORT_MDC_KEYFRAME "IMPORT_MDC_KEYFRAME"
695 #define AI_CONFIG_IMPORT_SMD_KEYFRAME "IMPORT_SMD_KEYFRAME"
696 #define AI_CONFIG_IMPORT_UNREAL_KEYFRAME "IMPORT_UNREAL_KEYFRAME"
697 
698 // ---------------------------------------------------------------------------
703 #define AI_CONFIG_IMPORT_SMD_LOAD_ANIMATION_LIST "IMPORT_SMD_LOAD_ANIMATION_LIST"
704 
705 // ---------------------------------------------------------------------------
711 #define AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL \
712  "IMPORT_AC_SEPARATE_BFCULL"
713 
714 // ---------------------------------------------------------------------------
722 #define AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION \
723  "IMPORT_AC_EVAL_SUBDIVISION"
724 
725 // ---------------------------------------------------------------------------
731 #define AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS \
732  "UNREAL_HANDLE_FLAGS"
733 
734 // ---------------------------------------------------------------------------
744 #define AI_CONFIG_IMPORT_TER_MAKE_UVS \
745  "IMPORT_TER_MAKE_UVS"
746 
747 // ---------------------------------------------------------------------------
754 #define AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS \
755  "IMPORT_ASE_RECONSTRUCT_NORMALS"
756 
757 // ---------------------------------------------------------------------------
766 #define AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART \
767  "IMPORT_MD3_HANDLE_MULTIPART"
768 
769 // ---------------------------------------------------------------------------
778 #define AI_CONFIG_IMPORT_MD3_SKIN_NAME \
779  "IMPORT_MD3_SKIN_NAME"
780 
781 // ---------------------------------------------------------------------------
796 #define AI_CONFIG_IMPORT_MD3_SHADER_SRC \
797  "IMPORT_MD3_SHADER_SRC"
798 
799 // ---------------------------------------------------------------------------
810 #define AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY \
811  "IMPORT_LWO_ONE_LAYER_ONLY"
812 
813 // ---------------------------------------------------------------------------
824 #define AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD \
825  "IMPORT_MD5_NO_ANIM_AUTOLOAD"
826 
827 // ---------------------------------------------------------------------------
843 #define AI_CONFIG_IMPORT_LWS_ANIM_START \
844  "IMPORT_LWS_ANIM_START"
845 #define AI_CONFIG_IMPORT_LWS_ANIM_END \
846  "IMPORT_LWS_ANIM_END"
847 
848 // ---------------------------------------------------------------------------
856 #define AI_CONFIG_IMPORT_IRR_ANIM_FPS \
857  "IMPORT_IRR_ANIM_FPS"
858 
859 // ---------------------------------------------------------------------------
869 #define AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE \
870  "IMPORT_OGRE_MATERIAL_FILE"
871 
872 // ---------------------------------------------------------------------------
889 #define AI_CONFIG_IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME \
890  "IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME"
891 
898  #define AI_CONFIG_ANDROID_JNI_ASSIMP_MANAGER_SUPPORT "AI_CONFIG_ANDROID_JNI_ASSIMP_MANAGER_SUPPORT"
899 
900 // ---------------------------------------------------------------------------
907 #define AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS "IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS"
908 
909 // ---------------------------------------------------------------------------
922 #define AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION "IMPORT_IFC_CUSTOM_TRIANGULATION"
923 
924 // ---------------------------------------------------------------------------
933 #define AI_CONFIG_IMPORT_IFC_SMOOTHING_ANGLE "IMPORT_IFC_SMOOTHING_ANGLE"
934 
935 // default value for AI_CONFIG_IMPORT_IFC_SMOOTHING_ANGLE
936 #if (!defined AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE)
937 # define AI_IMPORT_IFC_DEFAULT_SMOOTHING_ANGLE 10.0f
938 #endif
939 
940 // ---------------------------------------------------------------------------
949 #define AI_CONFIG_IMPORT_IFC_CYLINDRICAL_TESSELLATION "IMPORT_IFC_CYLINDRICAL_TESSELLATION"
950 
951 // default value for AI_CONFIG_IMPORT_IFC_CYLINDRICAL_TESSELLATION
952 #if (!defined AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION)
953 # define AI_IMPORT_IFC_DEFAULT_CYLINDRICAL_TESSELLATION 32
954 #endif
955 
956 // ---------------------------------------------------------------------------
963 #define AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION "IMPORT_COLLADA_IGNORE_UP_DIRECTION"
964 
965 // ---------------------------------------------------------------------------
973 #define AI_CONFIG_IMPORT_COLLADA_USE_COLLADA_NAMES "IMPORT_COLLADA_USE_COLLADA_NAMES"
974 
975 // ---------- All the Export defines ------------
976 
982 #define AI_CONFIG_EXPORT_XFILE_64BIT "EXPORT_XFILE_64BIT"
983 
991 #define AI_CONFIG_EXPORT_POINT_CLOUDS "EXPORT_POINT_CLOUDS"
992 
996 #define AI_CONFIG_GLOBAL_SCALE_FACTOR_KEY "GLOBAL_SCALE_FACTOR"
997 
998 #if (!defined AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT)
999 # define AI_CONFIG_GLOBAL_SCALE_FACTOR_DEFAULT 1.0f
1000 #endif // !! AI_DEBONE_THRESHOLD
1001 
1002 #define AI_CONFIG_APP_SCALE_KEY "APP_SCALE_FACTOR"
1003 
1004 #if (!defined AI_CONFIG_APP_SCALE_KEY)
1005 # define AI_CONFIG_APP_SCALE_KEY 1.0
1006 #endif // AI_CONFIG_APP_SCALE_KEY
1007 
1008 
1009 // ---------- All the Build/Compile-time defines ------------
1010 
1016 /* #undef ASSIMP_DOUBLE_PRECISION */
1017 
1018 #endif // !! AI_CONFIG_H_INC
aiComponent_TEXTURES
@ aiComponent_TEXTURES
Definition: config.h:429
aiComponent_NORMALS
@ aiComponent_NORMALS
Definition: config.h:400
aiComponent_CAMERAS
@ aiComponent_CAMERAS
Definition: config.h:439
aiComponent_TANGENTS_AND_BITANGENTS
@ aiComponent_TANGENTS_AND_BITANGENTS
Definition: config.h:407
aiComponent
aiComponent
Enumerates components of the aiScene and aiMesh data structures that can be excluded from the import ...
Definition: config.h:395
aiComponent_TEXCOORDS
@ aiComponent_TEXCOORDS
Definition: config.h:416
aiComponent_COLORS
@ aiComponent_COLORS
Definition: config.h:412
aiComponent_ANIMATIONS
@ aiComponent_ANIMATIONS
Definition: config.h:426
_aiComponent_Force32Bit
@ _aiComponent_Force32Bit
Definition: config.h:452
aiComponent_MATERIALS
@ aiComponent_MATERIALS
Definition: config.h:446
aiComponent_BONEWEIGHTS
@ aiComponent_BONEWEIGHTS
Definition: config.h:421
aiComponent_MESHES
@ aiComponent_MESHES
Definition: config.h:442
aiComponent_LIGHTS
@ aiComponent_LIGHTS
Definition: config.h:434