26class EXPCL_PANDA_GOBJ ParamTextureSampler :
public ParamValueBase {
28 INLINE ParamTextureSampler() {};
40 virtual void output(std::ostream &out)
const;
53 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
58 return get_class_type();
60 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
61 static TypeHandle get_class_type() {
64 static void init_type() {
65 ParamValueBase::init_type();
67 ParamValueBase::get_class_type());
71 static TypeHandle _type_handle;
81class EXPCL_PANDA_GOBJ ParamTextureImage :
public ParamValueBase {
83 INLINE ParamTextureImage() {};
92 INLINE ParamTextureImage(
Texture *tex,
bool read,
bool write,
int z=-1,
int n=0);
109 virtual void output(std::ostream &out)
const;
115 int _bind_layer : 20;
124 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
129 return get_class_type();
131 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
132 static TypeHandle get_class_type() {
135 static void init_type() {
136 ParamValueBase::init_type();
138 ParamValueBase::get_class_type());
142 static TypeHandle _type_handle;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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...
get_texture
Retrieves the texture stored in the parameter.
has_write_access
Returns true if this image should be bound with write access enabled.
static void register_with_read_factory()
Tells the BamReader how to create objects of type ParamValue.
has_read_access
Returns true if this image should be bound with read access enabled.
get_bind_level
Returns the image level that should be bound.
get_bind_layered
Returns true if all layers of this image should be bound simultaneously.
get_bind_layer
Returns the image layer that should be bound.
static void register_with_read_factory()
Tells the BamReader how to create objects of type ParamValue.
get_texture
Retrieves the texture stored in the parameter.
get_sampler
Retrieves the sampler state stored in the parameter.
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.
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.