Panda3D

Loading...
Searching...
No Matches
Functions
texturePool.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

`#include "texturePool.h"`
`#include "config_gobj.h"`
`#include "config_putil.h"`
`#include "config_express.h"`
`#include "string_utils.h"`
`#include "virtualFileSystem.h"`
`#include "bamCache.h"`
`#include "bamCacheRecord.h"`
`#include "pnmFileTypeRegistry.h"`
`#include "texturePoolFilter.h"`
`#include "configVariableList.h"`
`#include "load_dso.h"`
`#include "mutexHolder.h"`
`#include "dcast.h"`

Go to the source code of this file.

## Functions
| PT (Texture) TexturePool
| Creates a new Texture object of the appropriate type for the indicated filename extension, according to the types that have been registered via register_texture_type().

## Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
  drose

Date
  2000-04-26

Author
  fperazzi, PandaSE

Date
  2010-04-29

Definition in file texturePool.cxx.

## Function Documentation

## ◆ PT()

PT | ( | Texture |  | ) |

Creates a new Texture object of the appropriate type for the indicated filename extension, according to the types that have been registered via register_texture_type().

Invokes post_load() on all registered filters.

Invokes pre_load() on all registered filters until one returns non-NULL; returns NULL if there are no registered filters or if all registered filters returned NULL.

Searches for the indicated filename along the model path. If the filename was previously searched for, doesn't search again, as an optimization. Assumes _lock is held.

Definition at line 1067 of file texturePool.cxx.

References TexturePool::get_texture_type().