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