Panda3D
Loading...
Searching...
No Matches
userVertexTransform.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 userVertexTransform.I
10 * @author drose
11 * @date 2005-03-24
12 */
13
14/**
15 * Returns the name passed to the constructor. Completely arbitrary.
16 */
17INLINE const std::string &UserVertexTransform::
18get_name() const {
19 return _name;
20}
21
22/**
23 * Stores the indicated matrix.
24 */
26set_matrix(const LMatrix4 &matrix) {
27 Thread *current_thread = Thread::get_current_thread();
28 CDWriter cdata(_cycler, true, current_thread);
29 cdata->_matrix = matrix;
30 mark_modified(current_thread);
31}
32
33/**
34 *
35 */
36INLINE UserVertexTransform::CData::
37CData() :
38 _matrix(LMatrix4::ident_mat())
39{
40}
41
42/**
43 *
44 */
45INLINE UserVertexTransform::CData::
46CData(const UserVertexTransform::CData &copy) :
47 _matrix(copy._matrix)
48{
49}
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
A thread; that is, a lightweight process.
Definition thread.h:46
get_current_thread
Returns a pointer to the currently-executing Thread object.
Definition thread.h:109
const std::string & get_name() const
Returns the name passed to the constructor.
void set_matrix(const LMatrix4 &matrix)
Stores the indicated matrix.