Font3D 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
  2. *
  3. * This library is open source and may be redistributed and/or modified under
  4. * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
  5. * (at your option) any later version. The full license is in LICENSE file
  6. * included with this distribution, and on the openscenegraph.org website.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * OpenSceneGraph Public License for more details.
  12. */
  13. #ifndef OSGTEXT_FONT3D
  14. #define OSGTEXT_FONT3D 1
  15. #include <osgText/Font>
  16. namespace osgText {
  17. typedef Font Font3D;
  18. #ifdef OSG_PROVIDE_READFILE
  19. /** deprecated, use readFontFile() instead.*/
  20. inline Font* readFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
  21. {
  22. return readFontFile(filename,userOptions);
  23. }
  24. /** deprecated, use readFontStream() instead.*/
  25. inline Font* readFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
  26. {
  27. return readFontStream(stream, userOptions);
  28. }
  29. #endif
  30. /** deprecated, use readRefFontFile() instead.*/
  31. inline osg::ref_ptr<Font> readRefFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
  32. {
  33. return readRefFontFile(filename, userOptions);
  34. }
  35. /** deprecated, use readRefFontStream() instead.*/
  36. inline osg::ref_ptr<Font> readRefFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
  37. {
  38. return readRefFontStream(stream, userOptions);
  39. }
  40. /** deprecated, use findFontFile() instead.*/
  41. inline std::string findFont3DFile(const std::string& str)
  42. {
  43. return findFontFile(str);
  44. }
  45. }
  46. #endif