Added intializers.
This commit is contained in:
parent
4a79644810
commit
0cdc3e9506
@ -206,7 +206,8 @@ public:
|
||||
public:
|
||||
|
||||
FontImplementation():
|
||||
osg::Referenced(true) {}
|
||||
osg::Referenced(true),
|
||||
_facade(0) {}
|
||||
|
||||
virtual std::string getFileName() const = 0;
|
||||
|
||||
|
@ -146,7 +146,8 @@ public:
|
||||
public:
|
||||
|
||||
Font3DImplementation():
|
||||
osg::Referenced(true) {}
|
||||
osg::Referenced(true),
|
||||
_facade(0) {}
|
||||
|
||||
virtual std::string getFileName() const = 0;
|
||||
|
||||
@ -188,6 +189,7 @@ public:
|
||||
public:
|
||||
|
||||
Glyph3D(unsigned int glyphCode):
|
||||
osg::Referenced(true),
|
||||
_glyphCode(glyphCode),
|
||||
_horizontalBearing(0,0),
|
||||
_horizontalAdvance(0),
|
||||
|
@ -813,8 +813,25 @@ void Font::GlyphTexture::resizeGLObjectBuffers(unsigned int maxSize)
|
||||
|
||||
|
||||
// all the methods in Font::Glyph have been made non inline because VisualStudio6.0 is STUPID, STUPID, STUPID PILE OF JUNK.
|
||||
Font::Glyph::Glyph() {}
|
||||
Font::Glyph::~Glyph() {}
|
||||
Font::Glyph::Glyph():
|
||||
_font(0),
|
||||
_glyphCode(0),
|
||||
_horizontalBearing(0.0f,0.f),
|
||||
_horizontalAdvance(0.f),
|
||||
_verticalBearing(0.0f,0.f),
|
||||
_verticalAdvance(0.f),
|
||||
_texture(0),
|
||||
_texturePosX(0),
|
||||
_texturePosY(0),
|
||||
_minTexCoord(0.0f,0.0f),
|
||||
_maxTexCoord(0.0f,0.0f)
|
||||
{
|
||||
setThreadSafeRefUnref(true);
|
||||
}
|
||||
|
||||
Font::Glyph::~Glyph()
|
||||
{
|
||||
}
|
||||
|
||||
unsigned int Font::Glyph::getGlyphCode() const { return _glyphCode; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user