Panda3D
Loading...
Searching...
No Matches
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 */
18AnimateVerticesRequest(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 */
29is_ready() const {
30 return (FutureState)AtomicAdjust::get(_future_state) == FS_finished;
31}
AnimateVerticesRequest(GeomVertexData *geom_vertex_data)
Create a new AnimateVerticesRequest.
bool is_ready() const
Returns true if this request has completed, false if it is still pending.
static Integer get(const Integer &var)
Atomically retrieves the snapshot value of the indicated variable.
This defines the actual numeric vertex data stored in a Geom, in the structure defined by a particula...