openscenegraph
Font3D
Go to the documentation of this file.
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
14#ifndef OSGTEXT_FONT3D
15#define OSGTEXT_FONT3D 1
16
17#include <osgText/Font>
18
19namespace osgText {
20
21typedef Font Font3D;
22
23#ifdef OSG_PROVIDE_READFILE
24/** deprecated, use readFontFile() instead.*/
25inline Font* readFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
26{
27 return readFontFile(filename,userOptions);
28}
29
30/** deprecated, use readFontStream() instead.*/
31inline Font* readFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
32{
33 return readFontStream(stream, userOptions);
34}
35#endif
36
37/** deprecated, use readRefFontFile() instead.*/
38inline osg::ref_ptr<Font> readRefFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
39{
40 return readRefFontFile(filename, userOptions);
41}
42
43/** deprecated, use readRefFontStream() instead.*/
44inline osg::ref_ptr<Font> readRefFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
45{
46 return readRefFontStream(stream, userOptions);
47}
48
49/** deprecated, use findFontFile() instead.*/
50inline std::string findFont3DFile(const std::string& str)
51{
52 return findFontFile(str);
53}
54
55}
56
57#endif