Panda3D
videoTexture.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file videoTexture.I
10  * @author drose
11  * @date 2005-09-21
12  */
13 
14 /**
15  * Returns the width in texels of the source video stream. This is not
16  * necessarily the width of the actual texture, since the texture may have
17  * been expanded to raise it to a power of 2.
18  */
19 INLINE int VideoTexture::
20 get_video_width() const {
21  return _video_width;
22 }
23 
24 /**
25  * Returns the height in texels of the source video stream. This is not
26  * necessarily the height of the actual texture, since the texture may have
27  * been expanded to raise it to a power of 2.
28  */
29 INLINE int VideoTexture::
30 get_video_height() const {
31  return _video_height;
32 }
33 
34 /**
35  * Resets the record of the current frame so that it will be forced to reload
36  * the next time it is requested.
37  */
38 INLINE void VideoTexture::
39 clear_current_frame() {
40  _last_frame_update = 0;
41  _current_frame = -1;
42 }