Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions

# Buffer Class Reference

Inheritance diagram for Buffer:

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.
int | getLength ()
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 ReferenceCount.

int getLength | ( |  | ) |

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