33 _name(std::move(name)),
45 _name(std::move(name)),
46 _type(M_texture_image),
57 _name(std::move(name)),
58 _type(M_texture_sampler),
68 add_hash(
size_t hash)
const {
78 return _stored_vector.add_hash(hash);
101 get_texture()
const {
103 case M_texture_sampler:
106 case M_texture_image:
122 if (_type == M_texture_sampler) {
125 }
else if (!_value.is_null()) {
137 register_with_read_factory() {
static size_t add_hash(size_t start, const void *key)
Adds the indicated key into a running hash.
This is a const pointer to an InternalName, and should be used in lieu of a CPT(InternalName) in func...
A class object for storing a NodePath as a parameter.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_default_sampler
This returns the default sampler state for this texture, containing the wrap and filter properties sp...
static size_t add_hash(size_t start, const Key &key)
Adds the indicated key into a running hash.
A class object for storing a pointer to a Texture along with a set of properties that indicates which...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents a set of settings that indicate how a texture is sampled.
static const SamplerState & get_default()
Returns a reference to the global default immutable SamplerState object.
A class object for storing a pointer to a Texture along with a sampler state that indicates how to to...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...