14 #ifndef PARAMTEXTURE_H
15 #define PARAMTEXTURE_H
34 INLINE
Texture *get_texture()
const;
37 MAKE_PROPERTY(texture, get_texture);
38 MAKE_PROPERTY(sampler, get_sampler);
40 virtual void output(std::ostream &out)
const;
47 static void register_with_read_factory();
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
64 static void init_type() {
65 ParamValueBase::init_type();
67 ParamValueBase::get_class_type());
96 INLINE
Texture *get_texture()
const;
97 INLINE
bool has_read_access()
const;
98 INLINE
bool has_write_access()
const;
99 INLINE
bool get_bind_layered()
const;
100 INLINE
int get_bind_level()
const;
101 INLINE
int get_bind_layer()
const;
103 MAKE_PROPERTY(texture, get_texture);
104 MAKE_PROPERTY(read_access, has_read_access);
105 MAKE_PROPERTY(write_access, has_write_access);
106 MAKE_PROPERTY(bind_level, get_bind_level);
107 MAKE_PROPERTY2(bind_layer, get_bind_layered, get_bind_layer);
109 virtual void output(std::ostream &out)
const;
115 int _bind_layer : 20;
118 static void register_with_read_factory();
129 return get_class_type();
131 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
135 static void init_type() {
136 ParamValueBase::init_type();
138 ParamValueBase::get_class_type());
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
A class object for storing a pointer to a Texture along with a set of properties that indicates which...
A class object for storing a pointer to a Texture along with a sampler state that indicates how to to...
A non-template base class of ParamValue (below), which serves mainly to define the placeholder for th...
virtual TypeHandle get_value_type() const
Returns the type of the underlying value.
Represents a set of settings that indicate how a texture is sampled.
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
virtual void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is intended to be called by each class's make_from_bam() method to read in all...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is our own Panda specialization on the default STL list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.