speedtree_api.h 884 B

123456789101112131415161718192021222324252627282930313233
  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 speedtree_api.h
  10. * @author drose
  11. * @date 2010-10-05
  12. */
  13. #ifndef SPEEDTREE_API_H
  14. #define SPEEDTREE_API_H
  15. // This header file should be included first, to pull in any of the required
  16. // headers from the SpeedTree API, needed in this directory.
  17. #include "speedtree_parameters.h"
  18. #include <Core/Core.h>
  19. #include <Forest/Forest.h>
  20. #if defined(SPEEDTREE_OPENGL)
  21. #include <Renderers/OpenGL/OpenGLRenderer.h>
  22. #elif defined(SPEEDTREE_DIRECTX9)
  23. #undef Configure
  24. #include <Renderers/DirectX9/DirectX9Renderer.h>
  25. #else
  26. #error Unexpected graphics API.
  27. #endif
  28. #endif // SPEEDTREE_API_H