Panda3D
panda
src
pgraph
colorWriteAttrib.I
1
// Filename: colorWriteAttrib.I
2
// Created by: drose (04Mar02)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
16
////////////////////////////////////////////////////////////////////
17
// Function: ColorWriteAttrib::Constructor
18
// Access: Private
19
// Description: Use ColorWriteAttrib::make() to construct a new
20
// ColorWriteAttrib object.
21
////////////////////////////////////////////////////////////////////
22
INLINE ColorWriteAttrib::
23
ColorWriteAttrib(
unsigned
int
channels) :
24
_channels(channels)
25
{
26
}
27
28
////////////////////////////////////////////////////////////////////
29
// Function: ColorWriteAttrib::get_channels
30
// Access: Published
31
// Description: Returns the mask of color channels that are enabled
32
// by this attrib.
33
////////////////////////////////////////////////////////////////////
34
INLINE
unsigned
int
ColorWriteAttrib::
35
get_channels
()
const
{
36
return
_channels;
37
}
ColorWriteAttrib::get_channels
unsigned int get_channels() const
Returns the mask of color channels that are enabled by this attrib.
Definition:
colorWriteAttrib.I:35
Generated on Wed May 17 2017 23:44:27 for Panda3D by
1.8.13