Panda3D

videoTexture.I

00001 // Filename: videoTexture.I
00002 // Created by:  drose (21Sep05)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: VideoTexture::get_video_width
00018 //       Access: Published
00019 //  Description: Returns the width in texels of the source video
00020 //               stream.  This is not necessarily the width of the
00021 //               actual texture, since the texture may have been
00022 //               expanded to raise it to a power of 2.
00023 ////////////////////////////////////////////////////////////////////
00024 INLINE int VideoTexture::
00025 get_video_width() const {
00026   return _video_width;
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: VideoTexture::get_video_height
00031 //       Access: Published
00032 //  Description: Returns the height in texels of the source video
00033 //               stream.  This is not necessarily the height of the
00034 //               actual texture, since the texture may have been
00035 //               expanded to raise it to a power of 2.
00036 ////////////////////////////////////////////////////////////////////
00037 INLINE int VideoTexture::
00038 get_video_height() const {
00039   return _video_height;
00040 }
00041 
00042 ////////////////////////////////////////////////////////////////////
00043 //     Function: VideoTexture::clear_current_frame
00044 //       Access: Protected
00045 //  Description: Resets the record of the current frame so that it
00046 //               will be forced to reload the next time it is
00047 //               requested.
00048 ////////////////////////////////////////////////////////////////////
00049 INLINE void VideoTexture::
00050 clear_current_frame() {
00051   _last_frame_update = 0;
00052   _current_frame = -1;
00053 }
 All Classes Functions Variables Enumerations