Panda3D
 All Classes Functions Variables Enumerations
basicSkel.h
00001 // Filename: basicSkel.h
00002 // Created by: jyelon (31Jan07)
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 #ifndef BASICSKEL_H
00016 #define BASICSKEL_H
00017 
00018 #include "pandabase.h"
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //       Class : BasicSkel
00022 // Description : This is the most basic of the skeleton classes.
00023 //               It stores an integer, and will return it on request.
00024 //
00025 //               The skeleton classes are intended to help you learn
00026 //               how to add C++ classes to panda.  See also the manual,
00027 //               "Adding C++ Classes to Panda."
00028 ////////////////////////////////////////////////////////////////////
00029 class EXPCL_PANDASKEL BasicSkel {
00030 PUBLISHED:
00031   INLINE BasicSkel();
00032   INLINE ~BasicSkel();
00033 
00034   // These inline functions allow you to get and set _value.
00035   INLINE void set_value(int n);
00036   INLINE int  get_value();
00037   
00038   // These do the same thing as the functions above.
00039   void set_value_alt(int n);
00040   int  get_value_alt(); 
00041 
00042 private:
00043   int _value;
00044 };
00045 
00046 #include "basicSkel.I"
00047 
00048 #endif
00049 
 All Classes Functions Variables Enumerations