15 #ifndef LOADEROPTIONS_H
16 #define LOADEROPTIONS_H
18 #include "pandabase.h"
19 #include "autoTextureScale.h"
31 LF_report_errors = 0x0002,
32 LF_convert_skeleton = 0x0004,
33 LF_convert_channels = 0x0008,
34 LF_convert_anim = 0x000c,
35 LF_no_disk_cache = 0x0010,
36 LF_no_ram_cache = 0x0020,
38 LF_cache_only = 0x0040,
39 LF_allow_instance = 0x0080,
45 TF_preload_simple = 0x0008,
47 TF_generate_mipmaps = 0x0020,
48 TF_multiview = 0x0040,
55 INLINE LoaderOptions(
const LoaderOptions ©);
56 INLINE
void operator = (
const LoaderOptions ©);
58 INLINE
void set_flags(
int flags);
59 INLINE
int get_flags()
const;
61 INLINE
void set_texture_flags(
int flags);
62 INLINE
int get_texture_flags()
const;
63 INLINE
void set_texture_num_views(
int num_views);
64 INLINE
int get_texture_num_views()
const;
66 INLINE
void set_auto_texture_scale(AutoTextureScale scale);
67 INLINE AutoTextureScale get_auto_texture_scale()
const;
69 void output(ostream &out)
const;
72 void write_flag(ostream &out,
string &sep,
73 const string &flag_name,
int flag)
const;
74 void write_texture_flag(ostream &out,
string &sep,
75 const string &flag_name,
int flag)
const;
78 int _texture_num_views;
79 AutoTextureScale _auto_texture_scale;
82 INLINE ostream &operator << (ostream &out,
const LoaderOptions &opts) {
87 #include "loaderOptions.I"
Specifies parameters that may be passed to the loader.