Panda3D
|
Specifies parameters that may be passed to the loader. More...
#include "loaderOptions.h"
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(). More... | |
int | get_flags () const |
int | get_texture_flags () const |
int | get_texture_num_views () const |
See set_texture_num_views(). More... | |
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. More... | |
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. More... | |
Specifies parameters that may be passed to the loader.
Definition at line 26 of file loaderOptions.h.
|
inline |
Definition at line 143 of file loaderOptions.I.
Referenced by Texture::ensure_loader_type(), and set_auto_texture_scale().
|
inline |
Definition at line 120 of file loaderOptions.I.
References set_auto_texture_scale().
Referenced by Texture::ensure_loader_type(), and set_texture_num_views().
|
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.
References get_auto_texture_scale().
Referenced by Texture::finalize(), get_texture_num_views(), and RocketRenderInterface::render().
|
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.
References get_texture_num_views().
Referenced by EggLoader::make_polyset().