14#ifndef GEOMVERTEXANIMATIONSPEC_H
15#define GEOMVERTEXANIMATIONSPEC_H
38class EXPCL_PANDA_GOBJ GeomVertexAnimationSpec :
public GeomEnums {
40 INLINE GeomVertexAnimationSpec();
41 INLINE GeomVertexAnimationSpec(
const GeomVertexAnimationSpec &other);
42 INLINE
void operator = (
const GeomVertexAnimationSpec &other);
54 INLINE
void set_hardware(
int num_transforms,
bool indexed_transforms);
56 void output(std::ostream &out)
const;
59 INLINE
bool operator < (
const GeomVertexAnimationSpec &other)
const;
60 INLINE
bool operator == (
const GeomVertexAnimationSpec &other)
const;
61 INLINE
bool operator != (
const GeomVertexAnimationSpec &other)
const;
62 INLINE
int compare_to(
const GeomVertexAnimationSpec &other)
const;
69 AnimationType _animation_type;
72 bool _indexed_transforms;
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
This object describes how the vertex animation, if any, represented in a GeomVertexData is encoded.
get_animation_type
Returns the type of animation represented by this spec.
void set_hardware(int num_transforms, bool indexed_transforms)
Specifies that vertex animation is to be performed by the graphics hardware (or at least by the graph...
get_indexed_transforms
This is only meaningful for animation_type AT_hardware.
int compare_to(const GeomVertexAnimationSpec &other) const
Provides an arbitrary ordering between different animation specs.
get_num_transforms
This is only meaningful for animation_type AT_hardware.
void set_panda()
Specifies that vertex animation is to be performed by Panda.
void fillin(DatagramIterator &scan, BamReader *manager)
This internal function is called by make_from_bam to read in all of the relevant data from the BamFil...
void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
void set_none()
Specifies that no vertex animation is represented by this spec.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.