Panda3D

cyclerHolder.I

00001 // Filename: cyclerHolder.I
00002 // Created by:  drose (09Feb06)
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: CyclerHolder::Constructor
00018 //       Access: Public
00019 //  Description:
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE CyclerHolder::
00022 CyclerHolder(PipelineCyclerBase &cycler) {
00023 #ifdef DO_PIPELINING
00024   _cycler = &cycler;
00025   _cycler->acquire();
00026 #endif
00027 }
00028 
00029 ////////////////////////////////////////////////////////////////////
00030 //     Function: CyclerHolder::Destructor
00031 //       Access: Public
00032 //  Description:
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE CyclerHolder::
00035 ~CyclerHolder() {
00036 #ifdef DO_PIPELINING
00037   _cycler->release();
00038 #endif
00039 }
00040 
00041 ////////////////////////////////////////////////////////////////////
00042 //     Function: CyclerHolder::Copy Constructor
00043 //       Access: Private
00044 //  Description: Do not attempt to copy CyclerHolders.
00045 ////////////////////////////////////////////////////////////////////
00046 INLINE CyclerHolder::
00047 CyclerHolder(const CyclerHolder &copy) {
00048   nassertv(false);
00049 }
00050 
00051 ////////////////////////////////////////////////////////////////////
00052 //     Function: CyclerHolder::Copy Assignment Operator
00053 //       Access: Private
00054 //  Description: Do not attempt to copy CyclerHolders.
00055 ////////////////////////////////////////////////////////////////////
00056 INLINE void CyclerHolder::
00057 operator = (const CyclerHolder &copy) {
00058   nassertv(false);
00059 }
 All Classes Functions Variables Enumerations