open_toontown_panda3d/panda/src/pgraphnodes/nodeCullCallbackData.I

53 lines
1.9 KiB
Plaintext

// Filename: nodeCullCallbackData.I
// Created by: drose (13Mar09)
//
////////////////////////////////////////////////////////////////////
//
// 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: NodeCullCallbackData::Constructor
// Access: Public
// Description:
////////////////////////////////////////////////////////////////////
INLINE NodeCullCallbackData::
NodeCullCallbackData(CullTraverser *trav, CullTraverserData &data) :
_trav(trav),
_data(data)
{
}
////////////////////////////////////////////////////////////////////
// Function: NodeCullCallbackData::get_trav
// Access: Published
// Description: Returns the CullTraverser in use at the time of the
// callback. This object contains data that does not
// change during the traversal, such as the
// DisplayRegion and Camera in use.
////////////////////////////////////////////////////////////////////
INLINE CullTraverser *NodeCullCallbackData::
get_trav() const {
return _trav;
}
////////////////////////////////////////////////////////////////////
// Function: NodeCullCallbackData::get_data
// Access: Published
// Description: Returns the CullTraverserData in use at the time of the
// callback. This object contains data that changes at
// each node of the traversal, such as the current node
// and the current net transform to that node.
////////////////////////////////////////////////////////////////////
INLINE CullTraverserData &NodeCullCallbackData::
get_data() const {
return _data;
}