Specifies parameters that may be passed to the loader.
More...
#include "loaderOptions.h"
|
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
, TF_integer = 0x0080
, TF_float = 0x0100
, TF_allow_compression = 0x0200
} |
|
|
constexpr | LoaderOptions (int flags, int texture_flags) |
|
| LoaderOptions (int flags=LF_search|LF_report_errors) |
|
AutoTextureScale | get_auto_texture_scale () const |
|
int | get_flags () const |
|
int | get_texture_flags () const |
|
int | get_texture_num_views () const |
|
void | output (std::ostream &out) const |
|
void | set_auto_texture_scale (AutoTextureScale scale) |
|
void | set_flags (int flags) |
|
void | set_texture_flags (int flags) |
|
void | set_texture_num_views (int num_views) |
|
Specifies parameters that may be passed to the loader.
Definition at line 23 of file loaderOptions.h.
◆ LoaderFlags
enum LoaderOptions::LoaderFlags |
◆ TextureFlags
enum LoaderOptions::TextureFlags |
◆ LoaderOptions() [1/2]
LoaderOptions::LoaderOptions |
( |
int | flags = LF_search | LF_report_errors | ) |
|
◆ LoaderOptions() [2/2]
constexpr LoaderOptions::LoaderOptions |
( |
int | flags, |
|
|
int | texture_flags ) |
|
constexpr |
◆ output()
void LoaderOptions::output |
( |
std::ostream & | out | ) |
const |
◆ get_auto_texture_scale
AutoTextureScale LoaderOptions::get_auto_texture_scale |
|
inline |
◆ get_flags
int LoaderOptions::get_flags |
|
inline |
◆ get_texture_flags
int LoaderOptions::get_texture_flags |
|
inline |
◆ get_texture_num_views
int LoaderOptions::get_texture_num_views |
|
inline |
◆ set_auto_texture_scale
void LoaderOptions::set_auto_texture_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 69 of file loaderOptions.h.
◆ set_flags
void LoaderOptions::set_flags |
|
inline |
◆ set_texture_flags
void LoaderOptions::set_texture_flags |
|
inline |
◆ set_texture_num_views
void LoaderOptions::set_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 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.
Definition at line 64 of file loaderOptions.h.
The documentation for this class was generated from the following files: