historical/toontown-classic.git/panda/include/videoTexture.I

43 lines
1.1 KiB
Text
Raw Normal View History

2024-01-16 11:20:27 -06:00
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file videoTexture.I
* @author drose
* @date 2005-09-21
*/
/**
* Returns the width in texels of the source video stream. This is not
* necessarily the width of the actual texture, since the texture may have
* been expanded to raise it to a power of 2.
*/
INLINE int VideoTexture::
get_video_width() const {
return _video_width;
}
/**
* Returns the height in texels of the source video stream. This is not
* necessarily the height of the actual texture, since the texture may have
* been expanded to raise it to a power of 2.
*/
INLINE int VideoTexture::
get_video_height() const {
return _video_height;
}
/**
* Resets the record of the current frame so that it will be forced to reload
* the next time it is requested.
*/
INLINE void VideoTexture::
clear_current_frame() {
_last_frame_update = 0;
_current_frame = -1;
}