Panda3D
Public Types | Public Member Functions | Public Attributes | List of all members
LoaderOptions Class Reference

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, TF_integer = 0x0080, TF_float = 0x0100, TF_allow_compression = 0x0200
}
 

Public Member Functions

 LoaderOptions (int flags=LF_search|LF_report_errors)
 
constexpr LoaderOptions (int flags, int texture_flags)
 
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)
 

Public Attributes

 get_auto_texture_scale
 See set_auto_texture_scale(). More...
 
 get_flags
 
 get_texture_flags
 
 get_texture_num_views
 See set_texture_num_views(). More...
 
 set_auto_texture_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...
 
 set_flags
 
 set_texture_flags
 
 set_texture_num_views
 Specifies the expected number of views to load for the texture. More...
 

Detailed Description

Specifies parameters that may be passed to the loader.

Definition at line 23 of file loaderOptions.h.

Member Data Documentation

◆ get_auto_texture_scale

AutoTextureScale LoaderOptions::get_auto_texture_scale
inline

See set_auto_texture_scale().

Definition at line 69 of file loaderOptions.h.

◆ get_texture_num_views

int LoaderOptions::get_texture_num_views
inline

See set_texture_num_views().

Definition at line 64 of file loaderOptions.h.

◆ 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_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: