Panda3D
Loading...
Searching...
No Matches
animateVerticesRequest.cxx
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 animateVerticesRequest.cxx
10 * @author pratt
11 * @date 2007-11-20
12 */
13
15#include "geomVertexData.h"
16
17TypeHandle AnimateVerticesRequest::_type_handle;
18
19/**
20 * Performs the task: that is, calls animate vertices on _geom_vertex_data.
21 */
22AsyncTask::DoneStatus AnimateVerticesRequest::
23do_task() {
24 Thread *current_thread = Thread::get_current_thread();
25
26 // There is no need to store or return a result. The GeomVertexData caches
27 // the result and it will be used later in the rendering process.
28 _geom_vertex_data->animate_vertices(true, current_thread);
29
30 // Don't continue the task; we're done.
31 return AsyncTask::DS_done;
32}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.