|
@@ -41,25 +41,25 @@ class EXPCL_PANDA_GOBJ TexturePool {
|
|
|
PUBLISHED:
|
|
PUBLISHED:
|
|
|
INLINE static bool has_texture(const Filename &filename);
|
|
INLINE static bool has_texture(const Filename &filename);
|
|
|
INLINE static bool verify_texture(const Filename &filename);
|
|
INLINE static bool verify_texture(const Filename &filename);
|
|
|
- INLINE static Texture *load_texture(const Filename &filename,
|
|
|
|
|
- int primary_file_num_channels = 0,
|
|
|
|
|
- bool read_mipmaps = false,
|
|
|
|
|
- const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
- INLINE static Texture *load_texture(const Filename &filename,
|
|
|
|
|
- const Filename &alpha_filename,
|
|
|
|
|
- int primary_file_num_channels = 0,
|
|
|
|
|
- int alpha_file_channel = 0,
|
|
|
|
|
- bool read_mipmaps = false,
|
|
|
|
|
- const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
- INLINE static Texture *load_3d_texture(const Filename &filename_pattern,
|
|
|
|
|
- bool read_mipmaps = false,
|
|
|
|
|
- const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
- INLINE static Texture *load_2d_texture_array(const Filename &filename_pattern,
|
|
|
|
|
|
|
+ BLOCKING INLINE static Texture *load_texture(const Filename &filename,
|
|
|
|
|
+ int primary_file_num_channels = 0,
|
|
|
bool read_mipmaps = false,
|
|
bool read_mipmaps = false,
|
|
|
const LoaderOptions &options = LoaderOptions());
|
|
const LoaderOptions &options = LoaderOptions());
|
|
|
- INLINE static Texture *load_cube_map(const Filename &filename_pattern,
|
|
|
|
|
- bool read_mipmaps = false,
|
|
|
|
|
- const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
|
|
+ BLOCKING INLINE static Texture *load_texture(const Filename &filename,
|
|
|
|
|
+ const Filename &alpha_filename,
|
|
|
|
|
+ int primary_file_num_channels = 0,
|
|
|
|
|
+ int alpha_file_channel = 0,
|
|
|
|
|
+ bool read_mipmaps = false,
|
|
|
|
|
+ const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
+ BLOCKING INLINE static Texture *load_3d_texture(const Filename &filename_pattern,
|
|
|
|
|
+ bool read_mipmaps = false,
|
|
|
|
|
+ const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
+ BLOCKING INLINE static Texture *load_2d_texture_array(const Filename &filename_pattern,
|
|
|
|
|
+ bool read_mipmaps = false,
|
|
|
|
|
+ const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
+ BLOCKING INLINE static Texture *load_cube_map(const Filename &filename_pattern,
|
|
|
|
|
+ bool read_mipmaps = false,
|
|
|
|
|
+ const LoaderOptions &options = LoaderOptions());
|
|
|
|
|
|
|
|
INLINE static Texture *get_normalization_cube_map(int size);
|
|
INLINE static Texture *get_normalization_cube_map(int size);
|
|
|
INLINE static Texture *get_alpha_scale_map();
|
|
INLINE static Texture *get_alpha_scale_map();
|