Panda3D
panda
src
pgraph
antialiasAttrib.I
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file antialiasAttrib.I
10
* @author drose
11
* @date 2005-01-26
12
*/
13
14
/**
15
* Use AntialiasAttrib::make() to construct a new AntialiasAttrib object.
16
*/
17
INLINE AntialiasAttrib::
18
AntialiasAttrib(
unsigned
short
mode) :
19
_mode(mode)
20
{
21
}
22
23
/**
24
* Returns the specified antialias mode.
25
*/
26
INLINE
unsigned
short
AntialiasAttrib::
27
get_mode
()
const
{
28
return
_mode;
29
}
30
31
/**
32
* Returns the specified antialias mode, with the quality bits masked out.
33
* This therefore indicates only the requested type of antialiasing: M_none,
34
* M_auto, or some specific combination.
35
*/
36
INLINE
unsigned
short
AntialiasAttrib::
37
get_mode_type
()
const
{
38
return
_mode & M_type_mask;
39
}
40
41
/**
42
* Returns the specified antialias mode, with the type bits masked out. This
43
* therefore indicates only the requested quality settings: one of M_faster,
44
* M_better, M_dont_care, or zero (unspecified).
45
*/
46
INLINE
unsigned
short
AntialiasAttrib::
47
get_mode_quality
()
const
{
48
return
_mode & ~M_type_mask;
49
}
AntialiasAttrib::get_mode_type
get_mode_type
Returns the specified antialias mode, with the quality bits masked out.
Definition:
antialiasAttrib.h:57
AntialiasAttrib::get_mode_quality
get_mode_quality
Returns the specified antialias mode, with the type bits masked out.
Definition:
antialiasAttrib.h:58
AntialiasAttrib::get_mode
get_mode
Returns the specified antialias mode.
Definition:
antialiasAttrib.h:56
Generated on Sun Dec 27 2020 13:23:07 for Panda3D by
1.8.20