ppInstance.I 673 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * PANDA 3D SOFTWARE
  3. * Copyright (c) Carnegie Mellon University. All rights reserved.
  4. *
  5. * All use of this software is subject to the terms of the revised BSD
  6. * license. You should have received a copy of this license along
  7. * with this source code in a file named "LICENSE."
  8. *
  9. * @file ppInstance.I
  10. * @author drose
  11. * @date 2009-06-19
  12. */
  13. /**
  14. * Returns the NPP object corresponding to this particular instance.
  15. */
  16. inline NPP PPInstance::
  17. get_npp_instance() const {
  18. return _npp_instance;
  19. }
  20. /**
  21. * Returns the current window parameters.
  22. */
  23. const NPWindow *PPInstance::
  24. get_window() const {
  25. if (_got_window) {
  26. return &_window;
  27. }
  28. return nullptr;
  29. }