Panda3D
panda
src
gobj
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::
38
get_video_height
()
const
{
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
}
VideoTexture::get_video_height
int get_video_height() const
Returns the height in texels of the source video stream.
Definition:
videoTexture.I:38
VideoTexture::get_video_width
int get_video_width() const
Returns the width in texels of the source video stream.
Definition:
videoTexture.I:25
Generated on Wed May 17 2017 23:43:04 for Panda3D by
1.8.13