Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
MovieVideoCursor::Buffer Class Reference
Inheritance diagram for MovieVideoCursor::Buffer:
TypedReferenceCount TypedObject ReferenceCount

List of all members.

Public Member Functions

int compareTimestamp (Buffer const other)
 Used to sort different buffers to ensure they correspond to the same source frame, particularly important when synchronizing the different pages of a multi-page texture.
double getTimestamp ()
 Returns the nearest timestamp value of this particular buffer.

Static Public Member Functions

static TypeHandle getClassType ()

Member Function Documentation

int compareTimestamp ( Buffer const  other)

Used to sort different buffers to ensure they correspond to the same source frame, particularly important when synchronizing the different pages of a multi-page texture.

Returns 0 if the two buffers are of the same frame, <0 if this one comes earlier than the other one, and >0 if the other one comes earlier.

static TypeHandle getClassType ( ) [static]

Reimplemented from TypedReferenceCount.

double getTimestamp ( )

Returns the nearest timestamp value of this particular buffer.

Ideally, MovieVideoCursor::set_time() for this timestamp would return this buffer again. This need be defined only if compare_timestamp() is also defined.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties