mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
Add get_video_length
This commit is contained in:
parent
3f987b530f
commit
3a902bdaf3
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user