14 #ifndef LOADEROPTIONS_H 15 #define LOADEROPTIONS_H 28 LF_report_errors = 0x0002,
29 LF_convert_skeleton = 0x0004,
30 LF_convert_channels = 0x0008,
31 LF_convert_anim = 0x000c,
32 LF_no_disk_cache = 0x0010,
33 LF_no_ram_cache = 0x0020,
35 LF_cache_only = 0x0040,
36 LF_allow_instance = 0x0080,
42 TF_preload_simple = 0x0008,
44 TF_generate_mipmaps = 0x0020,
45 TF_multiview = 0x0040,
48 TF_allow_compression = 0x0200,
54 INLINE
void set_flags(
int flags);
55 INLINE
int get_flags()
const;
56 MAKE_PROPERTY(flags, get_flags, set_flags);
58 INLINE
void set_texture_flags(
int flags);
59 INLINE
int get_texture_flags()
const;
60 INLINE
void set_texture_num_views(
int num_views);
61 INLINE
int get_texture_num_views()
const;
62 MAKE_PROPERTY(texture_flags, get_texture_flags, set_texture_flags);
63 MAKE_PROPERTY(texture_num_views, get_texture_num_views,
64 set_texture_num_views);
66 INLINE
void set_auto_texture_scale(AutoTextureScale scale);
67 INLINE AutoTextureScale get_auto_texture_scale()
const;
68 MAKE_PROPERTY(auto_texture_scale, get_auto_texture_scale,
69 set_auto_texture_scale);
71 void output(std::ostream &out)
const;
74 void write_flag(std::ostream &out, std::string &sep,
75 const std::string &flag_name,
int flag)
const;
76 void write_texture_flag(std::ostream &out, std::string &sep,
77 const std::string &flag_name,
int flag)
const;
80 int _texture_num_views;
81 AutoTextureScale _auto_texture_scale;
84 INLINE std::ostream &operator << (std::ostream &out,
const LoaderOptions &opts) {
Specifies parameters that may be passed to the loader.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.