OSG  3.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Font3D.h
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 
19 namespace osgText {
20 
21 typedef Font Font3D;
22 
24 inline Font* readFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
25 {
26  return readFontFile(filename,userOptions);
27 }
28 
30 inline Font* readFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
31 {
32  return readFontStream(stream, userOptions);
33 }
34 
36 inline osg::ref_ptr<Font> readRefFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
37 {
38  return readRefFontFile(filename, userOptions);
39 }
40 
42 inline osg::ref_ptr<Font> readRefFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
43 {
44  return readRefFontStream(stream, userOptions);
45 }
46 
48 inline std::string findFont3DFile(const std::string& str)
49 {
50  return findFontFile(str);
51 }
52 
53 }
54 
55 #endif
Font Font3D
Definition: Font3D.h:21
OSGTEXT_EXPORT osg::ref_ptr< Font > readRefFontStream(std::istream &stream, const osgDB::Options *userOptions=0)
Font * readFont3DStream(std::istream &stream, const osgDB::ReaderWriter::Options *userOptions=0)
Definition: Font3D.h:30
OSGTEXT_EXPORT Font * readFontFile(const std::string &filename, const osgDB::Options *userOptions=0)
Font * readFont3DFile(const std::string &filename, const osgDB::ReaderWriter::Options *userOptions=0)
Definition: Font3D.h:24
std::string findFont3DFile(const std::string &str)
Definition: Font3D.h:48
osg::ref_ptr< Font > readRefFont3DFile(const std::string &filename, const osgDB::ReaderWriter::Options *userOptions=0)
Definition: Font3D.h:36
OSGTEXT_EXPORT Font * readFontStream(std::istream &stream, const osgDB::Options *userOptions=0)
OSGTEXT_EXPORT osg::ref_ptr< Font > readRefFontFile(const std::string &filename, const osgDB::Options *userOptions=0)
osg::ref_ptr< Font > readRefFont3DStream(std::istream &stream, const osgDB::ReaderWriter::Options *userOptions=0)
Definition: Font3D.h:42
OSGTEXT_EXPORT std::string findFontFile(const std::string &str)