Add get_video_length

This commit is contained in:
rdb 2009-07-14 16:30:25 +00:00
parent 3f987b530f
commit 3a902bdaf3
2 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,17 @@
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
// Function: MovieTexture::get_video_length
// Access: Published
// Description: Returns the length of the video.
////////////////////////////////////////////////////////////////////
INLINE double MovieTexture::
get_video_length() const {
CDReader cdata(_cycler);
return cdata->_video_length;
}
////////////////////////////////////////////////////////////////////
// Function: MovieTexture::get_video_width
// Access: Published

View File

@ -37,6 +37,7 @@ private:
PUBLISHED:
virtual ~MovieTexture();
INLINE double get_video_length() const;
INLINE int get_video_width() const;
INLINE int get_video_height() const;
INLINE LVecBase2f get_tex_scale() const;