Ran script to remove trailing spaces and tabs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace osgText {
|
||||
class Font;
|
||||
|
||||
/** Read a font from specified file. The filename may contain a path.
|
||||
* It will search for the font file in the following places in this order:
|
||||
* It will search for the font file in the following places in this order:
|
||||
* - In the current directory
|
||||
* - All paths defined in OSG_FILE_PATH or OSGFILEPATH environment variable
|
||||
* - Filename with path stripped: In the current directory
|
||||
@@ -43,7 +43,7 @@ class Font;
|
||||
* - Other OS: In /usr/share/fonts/ttf
|
||||
* - Other OS: In /usr/share/fonts/ttf/western
|
||||
* - Other OS: In /usr/share/fonts/ttf/decoratives
|
||||
*
|
||||
*
|
||||
* If the given file could not be found, the path part will be stripped and
|
||||
* the file will be searched again in the OS specific directories.
|
||||
*/
|
||||
@@ -90,7 +90,7 @@ public:
|
||||
osg::StateSet* getStateSet() { return _stateset.get(); }
|
||||
const osg::StateSet* getStateSet() const { return _stateset.get(); }
|
||||
|
||||
|
||||
|
||||
/** Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint.*/
|
||||
virtual osg::Vec2 getKerning(unsigned int leftcharcode,unsigned int rightcharcode, KerningType kerningType);
|
||||
|
||||
@@ -110,13 +110,13 @@ public:
|
||||
|
||||
/** Set the margin around each glyph,
|
||||
* to ensure that texture filtering doesn't bleed adjacent glyph's into each other.
|
||||
* Default margin is 1 texels.*/
|
||||
* Default margin is 1 texels.*/
|
||||
void setGlyphImageMargin(unsigned int margin);
|
||||
unsigned int getGlyphImageMargin() const;
|
||||
|
||||
/** Set the margin ratio around each glyph, relative to the glyph's size.
|
||||
* to ensure that texture filtering doesn't bleed adjacent glyph's into each other.
|
||||
* Default margin is 0.05.*/
|
||||
* Default margin is 0.05.*/
|
||||
void setGlyphImageMarginRatio(float margin);
|
||||
float getGlyphImageMarginRatio() const;
|
||||
|
||||
@@ -124,7 +124,7 @@ public:
|
||||
/** Set the size of texture to create to store the glyph images when rendering.
|
||||
* Note, this doesn't affect already created Texture Glhph's.*/
|
||||
void setTextureSizeHint(unsigned int width,unsigned int height);
|
||||
|
||||
|
||||
unsigned int getTextureWidthHint() const;
|
||||
unsigned int getTextureHeightHint() const;
|
||||
|
||||
@@ -132,7 +132,7 @@ public:
|
||||
* Note, this doesn't affect already created Texture Glhph's.*/
|
||||
void setMinFilterHint(osg::Texture::FilterMode mode);
|
||||
osg::Texture::FilterMode getMinFilterHint() const;
|
||||
|
||||
|
||||
/** Set the magnification texture filter to use when creating the texture to store the glyph images when rendering.
|
||||
* Note, this doesn't affect already created Texture Glhph's.*/
|
||||
void setMagFilterHint(osg::Texture::FilterMode mode);
|
||||
@@ -164,10 +164,10 @@ public:
|
||||
virtual void releaseGLObjects(osg::State* state=0) const;
|
||||
|
||||
typedef OpenThreads::Mutex FontMutex;
|
||||
|
||||
|
||||
typedef std::vector< osg::ref_ptr<GlyphTexture> > GlyphTextureList;
|
||||
GlyphTextureList& getGlyphTextureList() { return _glyphTextureList; }
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~Font();
|
||||
@@ -196,28 +196,28 @@ protected:
|
||||
float _marginRatio;
|
||||
|
||||
unsigned int _textureWidthHint;
|
||||
unsigned int _textureHeightHint;
|
||||
unsigned int _textureHeightHint;
|
||||
osg::Texture::FilterMode _minFilterHint;
|
||||
osg::Texture::FilterMode _magFilterHint;
|
||||
|
||||
unsigned int _depth;
|
||||
unsigned int _numCurveSamples;
|
||||
|
||||
|
||||
|
||||
osg::ref_ptr<FontImplementation> _implementation;
|
||||
|
||||
|
||||
|
||||
// declare the nested classes.
|
||||
public:
|
||||
|
||||
class FontImplementation : public osg::Referenced
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
FontImplementation():
|
||||
osg::Referenced(true),
|
||||
_facade(0) {}
|
||||
|
||||
|
||||
virtual std::string getFileName() const = 0;
|
||||
|
||||
virtual bool supportsMultipleFontResolutions() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user