14#ifndef ANTIALIASATTRIB_H
15#define ANTIALIASATTRIB_H
27class EXPCL_PANDA_PGRAPH AntialiasAttrib :
public RenderAttrib {
34 M_multisample = 0x0008,
45 INLINE AntialiasAttrib(
unsigned short mode);
48 static CPT(RenderAttrib)
make(
unsigned short mode);
51 INLINE
unsigned short get_mode()
const;
61 virtual void output(std::ostream &out)
const;
64 virtual int compare_to_impl(
const RenderAttrib *other)
const;
65 virtual size_t get_hash_impl()
const;
66 virtual CPT(RenderAttrib) compose_impl(
const RenderAttrib *other)
const;
72 static int get_class_slot() {
75 virtual int get_slot()
const {
76 return get_class_slot();
78 MAKE_PROPERTY(class_slot, get_class_slot);
81 static void register_with_read_factory();
85 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
86 void fillin(DatagramIterator &scan, BamReader *manager);
89 static TypeHandle get_class_type() {
92 static void init_type();
93 virtual TypeHandle get_type()
const {
94 return get_class_type();
96 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
99 static TypeHandle _type_handle;
100 static int _attrib_slot;
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_mode
Returns the specified antialias mode.
static ConstPointerTo< RenderAttrib > make(unsigned short mode)
Constructs a new AntialiasAttrib object.
get_mode_type
Returns the specified antialias mode, with the quality bits masked out.
static ConstPointerTo< RenderAttrib > make_default()
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attrib...
get_mode_quality
Returns the specified antialias mode, with the type bits masked out.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.