Go to the documentation of this file.
14 #ifndef ALPHATESTATTRIB_H
15 #define ALPHATESTATTRIB_H
29 PN_stdfloat reference_alpha = 1.0f);
33 PN_stdfloat reference_alpha);
36 INLINE PN_stdfloat get_reference_alpha()
const;
37 INLINE PandaCompareFunc get_mode()
const;
40 MAKE_PROPERTY(reference_alpha, get_reference_alpha);
41 MAKE_PROPERTY(mode, get_mode);
44 virtual void output(std::ostream &out)
const;
47 virtual int compare_to_impl(
const RenderAttrib *other)
const;
48 virtual size_t get_hash_impl()
const;
51 PandaCompareFunc _mode;
52 PN_stdfloat _reference_alpha;
55 static int get_class_slot() {
58 virtual int get_slot()
const {
59 return get_class_slot();
61 MAKE_PROPERTY(class_slot, get_class_slot);
64 static void register_with_read_factory();
75 static void init_type() {
76 RenderAttrib::init_type();
78 RenderAttrib::get_class_type());
82 return get_class_type();
84 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
88 static int _attrib_slot;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A class to retrieve the individual data elements previously stored in a Datagram.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
Base class for objects that can be written to and read from Bam files.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
TypeHandle is the identifier used to differentiate C++ class types.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Enables or disables writing of pixel to framebuffer based on its alpha value relative to a reference ...
static int register_slot(TypeHandle type_handle, int sort, RenderAttrib *default_attrib)
Adds the indicated TypeHandle to the registry, if it is not there already, and returns a unique slot ...