LoaderOptions¶
from acron.core import LoaderOptions
- class LoaderOptions¶
Bases:
Specifies parameters that may be passed to the loader.
Inheritance diagram
digraph inheritance5e73656435 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "LoaderOptions" [URL="acron.core.LoaderOptions.html#acron.core.LoaderOptions",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "LoaderOptions" [arrowsize=0.75,style=""]; }-
enum LoaderFlags¶
Flags for loading model files.
-
enumerator LF_search = 1¶
-
enumerator LF_report_errors = 2¶
-
enumerator LF_convert_skeleton = 4¶
-
enumerator LF_convert_channels = 8¶
-
enumerator LF_convert_anim = 12¶
skeleton + channels
-
enumerator LF_no_disk_cache = 16¶
disallow BamCache
-
enumerator LF_no_ram_cache = 32¶
disallow ModelPool
-
enumerator LF_no_cache = 48¶
no_disk + no_ram
-
enumerator LF_cache_only = 64¶
fail if not in cache
-
enumerator LF_allow_instance = 128¶
returned pointer might be shared
-
enumerator LF_search = 1¶
-
enum TextureFlags¶
Flags for loading texture files.
-
enumerator TF_preload = 4¶
Texture will have RAM image
-
enumerator TF_preload_simple = 8¶
Texture will have simple RAM image
-
enumerator TF_allow_1d = 16¶
If texture is Nx1, make a 1-d texture
-
enumerator TF_generate_mipmaps = 32¶
Consider generating mipmaps
-
enumerator TF_multiview = 64¶
Load a multiview texture in pages
-
enumerator TF_integer = 128¶
Load as an integer (RGB) texture
-
enumerator TF_float = 256¶
Load as a floating-point (depth) texture
-
enumerator TF_allow_compression = 512¶
Consider compressing RAM image
-
enumerator TF_no_filters = 1024¶
disallow using texture pool filters
-
enumerator TF_force_srgb = 2048¶
Force the texture to have an sRGB format
-
enumerator TF_preload = 4¶
- __init__()¶
- property auto_texture_scale AutoTextureScale¶
Set this flag to ATS_none, ATS_up, ATS_down, or ATS_pad to control how a texture is scaled from disk when it is subsequently loaded. Set it to ATS_unspecified to restore the default behavior.
- get_auto_texture_scale()¶
- get_flags()¶
- get_texture_compression()¶
Get the texture compression
- get_texture_flags()¶
- get_texture_format()¶
Get the texture format
- get_texture_num_views()¶
- get_texture_quality()¶
Get the texture quality
- output()¶
- set_auto_texture_scale()¶
Set this flag to ATS_none, ATS_up, ATS_down, or ATS_pad to control how a texture is scaled from disk when it is subsequently loaded. Set it to ATS_unspecified to restore the default behavior.
- set_flags()¶
- set_texture_compression()¶
Set the texture compression
- set_texture_flags()¶
- set_texture_format()¶
- set_texture_num_views()¶
Specifies the expected number of views to load for the texture. This is ignored unless TF_multiview is included in texture_flags. This must be specified when loading a 3-d multiview texture or 2-d texture array, in which case it is used to differentiate z levels from separate views; it may be zero in the case of 2-d textures or cube maps, in which case the number of views can be inferred from the number of images found on disk.
- set_texture_quality()¶
Set the texture quality
- property texture_num_views int¶
Specifies the expected number of views to load for the texture. This is ignored unless TF_multiview is included in texture_flags. This must be specified when loading a 3-d multiview texture or 2-d texture array, in which case it is used to differentiate z levels from separate views; it may be zero in the case of 2-d textures or cube maps, in which case the number of views can be inferred from the number of images found on disk.
-
enum LoaderFlags¶