mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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
|
// Function: MovieTexture::get_video_width
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -37,6 +37,7 @@ private:
|
|||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
virtual ~MovieTexture();
|
virtual ~MovieTexture();
|
||||||
|
|
||||||
|
INLINE double get_video_length() const;
|
||||||
INLINE int get_video_width() const;
|
INLINE int get_video_width() const;
|
||||||
INLINE int get_video_height() const;
|
INLINE int get_video_height() const;
|
||||||
INLINE LVecBase2f get_tex_scale() const;
|
INLINE LVecBase2f get_tex_scale() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user