odeHashSpace.I 856 B

1234567891011121314151617181920212223242526272829303132
  1. // Filename: odeHashSpace.I
  2. // Created by: joswilso (27Dec06)
  3. //
  4. ////////////////////////////////////////////////////////////////////
  5. //
  6. // PANDA 3D SOFTWARE
  7. // Copyright (c) Carnegie Mellon University. All rights reserved.
  8. //
  9. // All use of this software is subject to the terms of the revised BSD
  10. // license. You should have received a copy of this license along
  11. // with this source code in a file named "LICENSE."
  12. //
  13. ////////////////////////////////////////////////////////////////////
  14. INLINE void OdeHashSpace::
  15. set_levels(int minlevel, int maxlevel) {
  16. dHashSpaceSetLevels(_id, minlevel, maxlevel);
  17. }
  18. INLINE int OdeHashSpace::
  19. get_min_level() const {
  20. int min, max;
  21. dHashSpaceGetLevels(_id, &min, &max);
  22. return min;
  23. }
  24. INLINE int OdeHashSpace::
  25. get_max_level() const {
  26. int min, max;
  27. dHashSpaceGetLevels(_id, &min, &max);
  28. return max;
  29. }