15 #ifndef PARAMTEXTURE_H 16 #define PARAMTEXTURE_H 18 #include "pandabase.h" 19 #include "paramValue.h" 20 #include "samplerState.h" 37 INLINE
Texture *get_texture()
const;
40 virtual void output(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();
66 register_type(_type_handle,
"ParamTextureSampler",
67 ParamValueBase::get_class_type());
98 INLINE
Texture *get_texture()
const;
99 INLINE
bool has_read_access()
const;
100 INLINE
bool has_write_access()
const;
101 INLINE
bool get_bind_layered()
const;
102 INLINE
int get_bind_level()
const;
103 INLINE
int get_bind_layer()
const;
105 virtual void output(ostream &out)
const;
111 int _bind_layer : 20;
114 static void register_with_read_factory();
125 return get_class_type();
127 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
131 static void init_type() {
132 ParamValueBase::init_type();
133 register_type(_type_handle,
"ParamTextureImage",
134 ParamValueBase::get_class_type());
141 #include "paramTexture.I" This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Represents a texture object, which is typically a single 2-d image but may also represent a 1-d or 3-...
Base class for objects that can be written to and read from Bam files.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is our own Panda specialization on the default STL list.
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.
A non-template base class of ParamValue (below), which serves mainly to define the placeholder for th...
A class object for storing a pointer to a Texture along with a set of properties that indicates which...
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()...
virtual TypeHandle get_value_type() const
Returns the type of the underlying value.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
Represents a set of settings that indicate how a texture is sampled.
A class object for storing a pointer to a Texture along with a sampler state that indicates how to to...
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...