Panda3D
|
Specifies parameters that may be passed to the loader. More...
#include "loaderOptions.h"
Public Types | |
enum | LoaderFlags { LF_search = 0x0001, LF_report_errors = 0x0002, LF_convert_skeleton = 0x0004, LF_convert_channels = 0x0008, LF_convert_anim = 0x000c, LF_no_disk_cache = 0x0010, LF_no_ram_cache = 0x0020, LF_no_cache = 0x0030, LF_cache_only = 0x0040, LF_allow_instance = 0x0080 } |
enum | TextureFlags { TF_preload = 0x0004, TF_preload_simple = 0x0008, TF_allow_1d = 0x0010, TF_generate_mipmaps = 0x0020, TF_multiview = 0x0040 } |
Public Member Functions | |
LoaderOptions (int flags=LF_search|LF_report_errors) | |
LoaderOptions (int flags, int texture_flags) | |
LoaderOptions (const LoaderOptions ©) | |
AutoTextureScale | get_auto_texture_scale () const |
See set_auto_texture_scale(). | |
int | get_flags () const |
int | get_texture_flags () const |
int | get_texture_num_views () const |
See set_texture_num_views(). | |
void | operator= (const LoaderOptions ©) |
void | output (ostream &out) const |
void | set_auto_texture_scale (AutoTextureScale 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. | |
void | set_flags (int flags) |
void | set_texture_flags (int flags) |
void | set_texture_num_views (int num_views) |
Specifies the expected number of views to load for the texture. |
Specifies parameters that may be passed to the loader.
Definition at line 26 of file loaderOptions.h.
AutoTextureScale LoaderOptions::get_auto_texture_scale | ( | ) | const [inline] |
Definition at line 143 of file loaderOptions.I.
Referenced by Texture::do_read().
int LoaderOptions::get_texture_num_views | ( | ) | const [inline] |
Definition at line 120 of file loaderOptions.I.
Referenced by Texture::do_read(), and Texture::do_reconsider_z_size().
void LoaderOptions::set_auto_texture_scale | ( | AutoTextureScale | scale | ) | [inline] |
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.
Definition at line 133 of file loaderOptions.I.
Referenced by Texture::make_this_from_bam().
void LoaderOptions::set_texture_num_views | ( | int | texture_num_views | ) | [inline] |
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, 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.
Definition at line 110 of file loaderOptions.I.