// Filename: antialiasAttrib.I // Created by: drose (26Jan05) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) Carnegie Mellon University. All rights reserved. // // All use of this software is subject to the terms of the revised BSD // license. You should have received a copy of this license along // with this source code in a file named "LICENSE." // //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// // Function: AntialiasAttrib::Constructor // Access: Private // Description: Use AntialiasAttrib::make() to construct a new // AntialiasAttrib object. //////////////////////////////////////////////////////////////////// INLINE AntialiasAttrib:: AntialiasAttrib(unsigned short mode) : _mode(mode) { } //////////////////////////////////////////////////////////////////// // Function: AntialiasAttrib::get_mode // Access: Published // Description: Returns the specified antialias mode. //////////////////////////////////////////////////////////////////// INLINE unsigned short AntialiasAttrib:: get_mode() const { return _mode; } //////////////////////////////////////////////////////////////////// // Function: AntialiasAttrib::get_mode_type // Access: Published // Description: Returns the specified antialias mode, with the // quality bits masked out. This therefore indicates // only the requested type of antialiasing: M_none, // M_auto, or some specific combination. //////////////////////////////////////////////////////////////////// INLINE unsigned short AntialiasAttrib:: get_mode_type() const { return _mode & M_type_mask; } //////////////////////////////////////////////////////////////////// // Function: AntialiasAttrib::get_mode_quality // Access: Published // Description: Returns the specified antialias mode, with the type // bits masked out. This therefore indicates only the // requested quality settings: one of M_faster, // M_better, M_dont_care, or zero (unspecified). //////////////////////////////////////////////////////////////////// INLINE unsigned short AntialiasAttrib:: get_mode_quality() const { return _mode & ~M_type_mask; }