frameBufferStack.I 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Filename: frameBufferStack.I
  2. // Created by: drose (06Oct99)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
  8. //
  9. // All use of this software is subject to the terms of the Panda 3d
  10. // Software license. You should have received a copy of this license
  11. // along with this source code; you will also find a current copy of
  12. // the license at http://etc.cmu.edu/panda3d/docs/license/ .
  13. //
  14. // To contact the maintainers of this program write to
  15. // [email protected] .
  16. //
  17. ////////////////////////////////////////////////////////////////////
  18. ////////////////////////////////////////////////////////////////////
  19. // Function: FrameBufferStack::Constructor
  20. // Access: Public
  21. // Description:
  22. ////////////////////////////////////////////////////////////////////
  23. INLINE FrameBufferStack::
  24. FrameBufferStack() {
  25. _stack_level = -1;
  26. }
  27. ////////////////////////////////////////////////////////////////////
  28. // Function: FrameBufferStack::Destructor
  29. // Access: Public
  30. // Description:
  31. ////////////////////////////////////////////////////////////////////
  32. INLINE FrameBufferStack::
  33. ~FrameBufferStack() {
  34. }
  35. ////////////////////////////////////////////////////////////////////
  36. // Function: FrameBufferStack::Copy Constructor
  37. // Access: Public
  38. // Description:
  39. ////////////////////////////////////////////////////////////////////
  40. INLINE FrameBufferStack::
  41. FrameBufferStack(const FrameBufferStack &copy) :
  42. _frame_buffer(copy._frame_buffer),
  43. _stack_level(copy._stack_level)
  44. {
  45. }
  46. ////////////////////////////////////////////////////////////////////
  47. // Function: FrameBufferStack::Copy Operator
  48. // Access: Public
  49. // Description:
  50. ////////////////////////////////////////////////////////////////////
  51. INLINE void FrameBufferStack::
  52. operator =(const FrameBufferStack &copy) {
  53. _frame_buffer = copy._frame_buffer;
  54. _stack_level = copy._stack_level;
  55. }