Panda3D

animateVerticesRequest.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 animateVerticesRequest.I
10 * @author pratt
11 * @date 2007-11-20
12 */
13
14 /**
15 * Create a new AnimateVerticesRequest.
16 */
17 INLINE AnimateVerticesRequest::
18 AnimateVerticesRequest(GeomVertexData *geom_vertex_data) :
19 _geom_vertex_data(geom_vertex_data)
20 {
21 }
22
23 /**
24 * Returns true if this request has completed, false if it is still pending.
25 * Equivalent to `req.done() and not req.cancelled()`.
26 * @see done()
27 */
28 INLINE bool AnimateVerticesRequest::
29 is_ready() const {
30 return (FutureState)AtomicAdjust::get(_future_state) == FS_finished;
31 }
AnimateVerticesRequest::AnimateVerticesRequest
AnimateVerticesRequest(GeomVertexData *geom_vertex_data)
Create a new AnimateVerticesRequest.
Definition: animateVerticesRequest.I:18
AnimateVerticesRequest::is_ready
bool is_ready() const
Returns true if this request has completed, false if it is still pending.
Definition: animateVerticesRequest.I:29
AtomicAdjustDummyImpl::get
static Integer get(const Integer &var)
Atomically retrieves the snapshot value of the indicated variable.
Definition: atomicAdjustDummyImpl.I:59
GeomVertexData
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...
Definition: geomVertexData.h:68