OpenSceneGraph 3.6.5
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
25inline Font* readFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
26{
27 return readFontFile(filename,userOptions);
28}
29
31inline Font* readFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
32{
33 return readFontStream(stream, userOptions);
34}
35#endif
36
38inline osg::ref_ptr<Font> readRefFont3DFile(const std::string& filename, const osgDB::ReaderWriter::Options* userOptions = 0)
39{
40 return readRefFontFile(filename, userOptions);
41}
42
44inline osg::ref_ptr<Font> readRefFont3DStream(std::istream& stream, const osgDB::ReaderWriter::Options* userOptions = 0)
45{
46 return readRefFontStream(stream, userOptions);
47}
48
50inline std::string findFont3DFile(const std::string& str)
51{
52 return findFontFile(str);
53}
54
55}
56
57#endif
The osgText library is a NodeKit that extends the core scene graph to support high quality text.
osg::ref_ptr< Font > readRefFont3DStream(std::istream &stream, const osgDB::ReaderWriter::Options *userOptions=0)
deprecated, use readRefFontStream() instead.
Definition Font3D:44
std::string findFont3DFile(const std::string &str)
deprecated, use findFontFile() instead.
Definition Font3D:50
OSGTEXT_EXPORT osg::ref_ptr< Font > readRefFontFile(const std::string &filename, const osgDB::Options *userOptions=0)
Font Font3D
Definition Font3D:21
OSGTEXT_EXPORT std::string findFontFile(const std::string &str)
OSGTEXT_EXPORT osg::ref_ptr< Font > readRefFontStream(std::istream &stream, const osgDB::Options *userOptions=0)
osg::ref_ptr< Font > readRefFont3DFile(const std::string &filename, const osgDB::ReaderWriter::Options *userOptions=0)
deprecated, use readRefFontFile() instead.
Definition Font3D:38
Smart pointer for handling referenced counted objects.
Definition ref_ptr:32
osgDB::Options Options
Definition ReaderWriter:227
Pure virtual base class for fonts.
Definition Font:68

osg logo
Generated at Sun Jul 27 2025 00:00:00 for the OpenSceneGraph by doxygen 1.14.0.