Panda3D
panda
src
pgraph
depthOffsetAttrib.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 depthOffsetAttrib.I
10
* @author drose
11
* @date 2002-03-14
12
*/
13
14
/**
15
* Use DepthOffsetAttrib::make() to construct a new DepthOffsetAttrib object.
16
*/
17
INLINE DepthOffsetAttrib::
18
DepthOffsetAttrib(
int
offset, PN_stdfloat min_value, PN_stdfloat max_value) :
19
_offset(offset),
20
_min_value(min_value),
21
_max_value(max_value)
22
{
23
}
24
25
/**
26
* Returns the depth offset represented by this attrib.
27
*/
28
INLINE
int
DepthOffsetAttrib::
29
get_offset
()
const
{
30
return
_offset;
31
}
32
33
/**
34
* Returns the value for the minimum (closest) depth value to be stored in the
35
* buffer, in the range 0 .. 1.
36
*/
37
INLINE PN_stdfloat
DepthOffsetAttrib::
38
get_min_value
()
const
{
39
return
_min_value;
40
}
41
42
/**
43
* Returns the value for the maximum (farthest) depth value to be stored in
44
* the buffer, in the range 0 .. 1.
45
*/
46
INLINE PN_stdfloat
DepthOffsetAttrib::
47
get_max_value
()
const
{
48
return
_max_value;
49
}
DepthOffsetAttrib::get_min_value
get_min_value
Returns the value for the minimum (closest) depth value to be stored in the buffer,...
Definition:
depthOffsetAttrib.h:65
DepthOffsetAttrib::get_max_value
get_max_value
Returns the value for the maximum (farthest) depth value to be stored in the buffer,...
Definition:
depthOffsetAttrib.h:66
DepthOffsetAttrib::get_offset
get_offset
Returns the depth offset represented by this attrib.
Definition:
depthOffsetAttrib.h:64
Generated on Mon Sep 14 2020 15:07:00 for Panda3D by
1.8.20