BRE12
config.h
Go to the documentation of this file.
1 /*
2 ---------------------------------------------------------------------------
3 Open Asset Import Library (assimp)
4 ---------------------------------------------------------------------------
5 
6 Copyright (c) 2006-2012, assimp team
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 following
12 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 
58 #ifndef INCLUDED_AI_CONFIG_H
59 #define INCLUDED_AI_CONFIG_H
60 
61 
62 // ###########################################################################
63 // LIBRARY SETTINGS
64 // General, global settings
65 // ###########################################################################
66 
67 // ---------------------------------------------------------------------------
77 #define AI_CONFIG_GLOB_MEASURE_TIME \
78  "GLOB_MEASURE_TIME"
79 
80 
81 // ---------------------------------------------------------------------------
88 // ---------------------------------------------------------------------------
89 #define AI_CONFIG_IMPORT_NO_SKELETON_MESHES \
90  "IMPORT_NO_SKELETON_MESHES"
91 
92 
93 
94 # if 0 // not implemented yet
95 // ---------------------------------------------------------------------------
110 #define AI_CONFIG_GLOB_MULTITHREADING \
111  "GLOB_MULTITHREADING"
112 #endif
113 
114 // ###########################################################################
115 // POST PROCESSING SETTINGS
116 // Various stuff to fine-tune the behavior of a specific post processing step.
117 // ###########################################################################
118 
119 
120 // ---------------------------------------------------------------------------
128 // ---------------------------------------------------------------------------
129 #define AI_CONFIG_PP_SBBC_MAX_BONES \
130  "PP_SBBC_MAX_BONES"
131 
132 
133 // default limit for bone count
134 #if (!defined AI_SBBC_DEFAULT_MAX_BONES)
135 # define AI_SBBC_DEFAULT_MAX_BONES 60
136 #endif
137 
138 
139 // ---------------------------------------------------------------------------
147 #define AI_CONFIG_PP_CT_MAX_SMOOTHING_ANGLE \
148  "PP_CT_MAX_SMOOTHING_ANGLE"
149 
150 // ---------------------------------------------------------------------------
156 // ---------------------------------------------------------------------------
157 #define AI_CONFIG_PP_CT_TEXTURE_CHANNEL_INDEX \
158  "PP_CT_TEXTURE_CHANNEL_INDEX"
159 
160 // ---------------------------------------------------------------------------
172 #define AI_CONFIG_PP_GSN_MAX_SMOOTHING_ANGLE \
173  "PP_GSN_MAX_SMOOTHING_ANGLE"
174 
175 
176 // ---------------------------------------------------------------------------
186 #define AI_CONFIG_IMPORT_MDL_COLORMAP \
187  "IMPORT_MDL_COLORMAP"
188 
189 // ---------------------------------------------------------------------------
208 #define AI_CONFIG_PP_RRM_EXCLUDE_LIST \
209  "PP_RRM_EXCLUDE_LIST"
210 
211 // ---------------------------------------------------------------------------
223 #define AI_CONFIG_PP_PTV_KEEP_HIERARCHY \
224  "PP_PTV_KEEP_HIERARCHY"
225 
226 // ---------------------------------------------------------------------------
233 #define AI_CONFIG_PP_PTV_NORMALIZE \
234  "PP_PTV_NORMALIZE"
235 
236 // ---------------------------------------------------------------------------
242 #define AI_CONFIG_PP_PTV_ADD_ROOT_TRANSFORMATION \
243  "PP_PTV_ADD_ROOT_TRANSFORMATION"
244 
245 // ---------------------------------------------------------------------------
252 #define AI_CONFIG_PP_PTV_ROOT_TRANSFORMATION \
253  "PP_PTV_ROOT_TRANSFORMATION"
254 
255 // ---------------------------------------------------------------------------
265 #define AI_CONFIG_PP_FD_REMOVE \
266  "PP_FD_REMOVE"
267 
268 // ---------------------------------------------------------------------------
286 #define AI_CONFIG_PP_OG_EXCLUDE_LIST \
287  "PP_OG_EXCLUDE_LIST"
288 
289 // ---------------------------------------------------------------------------
297 #define AI_CONFIG_PP_SLM_TRIANGLE_LIMIT \
298  "PP_SLM_TRIANGLE_LIMIT"
299 
300 // default value for AI_CONFIG_PP_SLM_TRIANGLE_LIMIT
301 #if (!defined AI_SLM_DEFAULT_MAX_TRIANGLES)
302 # define AI_SLM_DEFAULT_MAX_TRIANGLES 1000000
303 #endif
304 
305 // ---------------------------------------------------------------------------
313 #define AI_CONFIG_PP_SLM_VERTEX_LIMIT \
314  "PP_SLM_VERTEX_LIMIT"
315 
316 // default value for AI_CONFIG_PP_SLM_VERTEX_LIMIT
317 #if (!defined AI_SLM_DEFAULT_MAX_VERTICES)
318 # define AI_SLM_DEFAULT_MAX_VERTICES 1000000
319 #endif
320 
321 // ---------------------------------------------------------------------------
327 #define AI_CONFIG_PP_LBW_MAX_WEIGHTS \
328  "PP_LBW_MAX_WEIGHTS"
329 
330 // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
331 #if (!defined AI_LMW_MAX_WEIGHTS)
332 # define AI_LMW_MAX_WEIGHTS 0x4
333 #endif // !! AI_LMW_MAX_WEIGHTS
334 
335 // ---------------------------------------------------------------------------
341 #define AI_CONFIG_PP_DB_THRESHOLD \
342  "PP_DB_THRESHOLD"
343 
344 // default value for AI_CONFIG_PP_LBW_MAX_WEIGHTS
345 #if (!defined AI_DEBONE_THRESHOLD)
346 # define AI_DEBONE_THRESHOLD 1.0f
347 #endif // !! AI_DEBONE_THRESHOLD
348 
349 // ---------------------------------------------------------------------------
355 #define AI_CONFIG_PP_DB_ALL_OR_NONE \
356  "PP_DB_ALL_OR_NONE"
357 
360 #ifndef PP_ICL_PTCACHE_SIZE
361 # define PP_ICL_PTCACHE_SIZE 12
362 #endif
363 
364 // ---------------------------------------------------------------------------
375 #define AI_CONFIG_PP_ICL_PTCACHE_SIZE "PP_ICL_PTCACHE_SIZE"
376 
377 // ---------------------------------------------------------------------------
384 {
386 #ifdef SWIG
387  aiComponent_NORMALS = 0x2,
388 #else
390 #endif
391 
393 #ifdef SWIG
395 #else
396  aiComponent_TANGENTS_AND_BITANGENTS = 0x4u,
397 #endif
398 
402 
406 
411 
416 
419 
424 
429 
432 
436 
437 
440 #ifndef SWIG
442 #endif
443 };
444 
445 // Remove a specific color channel 'n'
446 #define aiComponent_COLORSn(n) (1u << (n+20u))
447 
448 // Remove a specific UV channel 'n'
449 #define aiComponent_TEXCOORDSn(n) (1u << (n+25u))
450 
451 // ---------------------------------------------------------------------------
463 #define AI_CONFIG_PP_RVC_FLAGS \
464  "PP_RVC_FLAGS"
465 
466 // ---------------------------------------------------------------------------
475 #define AI_CONFIG_PP_SBP_REMOVE \
476  "PP_SBP_REMOVE"
477 
478 // ---------------------------------------------------------------------------
487 #define AI_CONFIG_PP_FID_ANIM_ACCURACY \
488  "PP_FID_ANIM_ACCURACY"
489 
490 
491 // TransformUVCoords evaluates UV scalings
492 #define AI_UVTRAFO_SCALING 0x1
493 
494 // TransformUVCoords evaluates UV rotations
495 #define AI_UVTRAFO_ROTATION 0x2
496 
497 // TransformUVCoords evaluates UV translation
498 #define AI_UVTRAFO_TRANSLATION 0x4
499 
500 // Everything baked together -> default value
501 #define AI_UVTRAFO_ALL (AI_UVTRAFO_SCALING | AI_UVTRAFO_ROTATION | AI_UVTRAFO_TRANSLATION)
502 
503 // ---------------------------------------------------------------------------
511 #define AI_CONFIG_PP_TUV_EVALUATE \
512  "PP_TUV_EVALUATE"
513 
514 // ---------------------------------------------------------------------------
523 #define AI_CONFIG_FAVOUR_SPEED \
524  "FAVOUR_SPEED"
525 
526 
527 // ###########################################################################
528 // IMPORTER SETTINGS
529 // Various stuff to fine-tune the behaviour of specific importer plugins.
530 // ###########################################################################
531 
532 
533 // ---------------------------------------------------------------------------
540 #define AI_CONFIG_IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS \
541  "IMPORT_FBX_READ_ALL_GEOMETRY_LAYERS"
542 
543 // ---------------------------------------------------------------------------
552 #define AI_CONFIG_IMPORT_FBX_READ_ALL_MATERIALS \
553  "IMPORT_FBX_READ_ALL_MATERIALS"
554 
555 // ---------------------------------------------------------------------------
561 #define AI_CONFIG_IMPORT_FBX_READ_MATERIALS \
562  "IMPORT_FBX_READ_MATERIALS"
563 
564 // ---------------------------------------------------------------------------
570 #define AI_CONFIG_IMPORT_FBX_READ_CAMERAS \
571  "IMPORT_FBX_READ_CAMERAS"
572 
573 // ---------------------------------------------------------------------------
579 #define AI_CONFIG_IMPORT_FBX_READ_LIGHTS \
580  "IMPORT_FBX_READ_LIGHTS"
581 
582 // ---------------------------------------------------------------------------
588 #define AI_CONFIG_IMPORT_FBX_READ_ANIMATIONS \
589  "IMPORT_FBX_READ_ANIMATIONS"
590 
591 // ---------------------------------------------------------------------------
600 #define AI_CONFIG_IMPORT_FBX_STRICT_MODE \
601  "IMPORT_FBX_STRICT_MODE"
602 
603 // ---------------------------------------------------------------------------
611 #define AI_CONFIG_IMPORT_FBX_PRESERVE_PIVOTS \
612  "IMPORT_FBX_PRESERVE_PIVOTS"
613 
614 // ---------------------------------------------------------------------------
622 #define AI_CONFIG_IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES \
623  "IMPORT_FBX_OPTIMIZE_EMPTY_ANIMATION_CURVES"
624 
625 
626 
627 // ---------------------------------------------------------------------------
640 #define AI_CONFIG_IMPORT_GLOBAL_KEYFRAME "IMPORT_GLOBAL_KEYFRAME"
641 
642 #define AI_CONFIG_IMPORT_MD3_KEYFRAME "IMPORT_MD3_KEYFRAME"
643 #define AI_CONFIG_IMPORT_MD2_KEYFRAME "IMPORT_MD2_KEYFRAME"
644 #define AI_CONFIG_IMPORT_MDL_KEYFRAME "IMPORT_MDL_KEYFRAME"
645 #define AI_CONFIG_IMPORT_MDC_KEYFRAME "IMPORT_MDC_KEYFRAME"
646 #define AI_CONFIG_IMPORT_SMD_KEYFRAME "IMPORT_SMD_KEYFRAME"
647 #define AI_CONFIG_IMPORT_UNREAL_KEYFRAME "IMPORT_UNREAL_KEYFRAME"
648 
649 
650 // ---------------------------------------------------------------------------
656 #define AI_CONFIG_IMPORT_AC_SEPARATE_BFCULL \
657  "IMPORT_AC_SEPARATE_BFCULL"
658 
659 // ---------------------------------------------------------------------------
667 #define AI_CONFIG_IMPORT_AC_EVAL_SUBDIVISION \
668  "IMPORT_AC_EVAL_SUBDIVISION"
669 
670 // ---------------------------------------------------------------------------
676 #define AI_CONFIG_IMPORT_UNREAL_HANDLE_FLAGS \
677  "UNREAL_HANDLE_FLAGS"
678 
679 // ---------------------------------------------------------------------------
689 #define AI_CONFIG_IMPORT_TER_MAKE_UVS \
690  "IMPORT_TER_MAKE_UVS"
691 
692 // ---------------------------------------------------------------------------
699 #define AI_CONFIG_IMPORT_ASE_RECONSTRUCT_NORMALS \
700  "IMPORT_ASE_RECONSTRUCT_NORMALS"
701 
702 // ---------------------------------------------------------------------------
711 #define AI_CONFIG_IMPORT_MD3_HANDLE_MULTIPART \
712  "IMPORT_MD3_HANDLE_MULTIPART"
713 
714 // ---------------------------------------------------------------------------
723 #define AI_CONFIG_IMPORT_MD3_SKIN_NAME \
724  "IMPORT_MD3_SKIN_NAME"
725 
726 // ---------------------------------------------------------------------------
741 #define AI_CONFIG_IMPORT_MD3_SHADER_SRC \
742  "IMPORT_MD3_SHADER_SRC"
743 
744 // ---------------------------------------------------------------------------
755 #define AI_CONFIG_IMPORT_LWO_ONE_LAYER_ONLY \
756  "IMPORT_LWO_ONE_LAYER_ONLY"
757 
758 // ---------------------------------------------------------------------------
769 #define AI_CONFIG_IMPORT_MD5_NO_ANIM_AUTOLOAD \
770  "IMPORT_MD5_NO_ANIM_AUTOLOAD"
771 
772 // ---------------------------------------------------------------------------
788 #define AI_CONFIG_IMPORT_LWS_ANIM_START \
789  "IMPORT_LWS_ANIM_START"
790 #define AI_CONFIG_IMPORT_LWS_ANIM_END \
791  "IMPORT_LWS_ANIM_END"
792 
793 // ---------------------------------------------------------------------------
801 #define AI_CONFIG_IMPORT_IRR_ANIM_FPS \
802  "IMPORT_IRR_ANIM_FPS"
803 
804 // ---------------------------------------------------------------------------
814 #define AI_CONFIG_IMPORT_OGRE_MATERIAL_FILE \
815  "IMPORT_OGRE_MATERIAL_FILE"
816 
817 // ---------------------------------------------------------------------------
833 #define AI_CONFIG_IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME \
834  "IMPORT_OGRE_TEXTURETYPE_FROM_FILENAME"
835 
842 #define AI_CONFIG_IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS "IMPORT_IFC_SKIP_SPACE_REPRESENTATIONS"
843 
844 
845 // ---------------------------------------------------------------------------
854 #define AI_CONFIG_IMPORT_IFC_SKIP_CURVE_REPRESENTATIONS "IMPORT_IFC_SKIP_CURVE_REPRESENTATIONS"
855 
856 // ---------------------------------------------------------------------------
869 #define AI_CONFIG_IMPORT_IFC_CUSTOM_TRIANGULATION "IMPORT_IFC_CUSTOM_TRIANGULATION"
870 
871 #define AI_CONFIG_IMPORT_COLLADA_IGNORE_UP_DIRECTION "IMPORT_COLLADA_IGNORE_UP_DIRECTION"
872 
873 #endif // !! AI_CONFIG_H_INC
Removes all meshes (aiScene::mMeshes).
Definition: config.h:431
Removes all node animations (aiScene::mAnimations).
Definition: config.h:415
Removes all materials.
Definition: config.h:435
Removes all cameras (aiScene::mCameras).
Definition: config.h:428
ALL texture UV sets aiComponent_TEXCOORDn(N) to specify the N&#39;th set.
Definition: config.h:405
Removes all light sources (aiScene::mLights).
Definition: config.h:423
This value is not used.
Definition: config.h:441
ALL color sets Use aiComponent_COLORn(N) to specify the N&#39;th set.
Definition: config.h:401
Removes all embedded textures (aiScene::mTextures)
Definition: config.h:418
aiComponent
Enumerates components of the aiScene and aiMesh data structures that can be excluded from the import ...
Definition: config.h:383
Normal vectors.
Definition: config.h:389
Tangents and bitangents go always together ...
Definition: config.h:396
Removes all bone weights from all meshes.
Definition: config.h:410