Clean up Image class.
This commit is contained in:
parent
4bb87de0e6
commit
0d3674faac
30 changed files with 330 additions and 135 deletions
|
@ -55,8 +55,7 @@ std::string GlyphRunOutlines::toPostScriptPath()
|
|||
return path;
|
||||
}
|
||||
|
||||
FontGlyph::FontGlyph(unsigned width, unsigned height, int bearingX, int bearingY,
|
||||
int advanceX, std::unique_ptr<Image<unsigned char> > image)
|
||||
FontGlyph::FontGlyph(unsigned width, unsigned height, int bearingX, int bearingY, int advanceX, std::unique_ptr<Image> image)
|
||||
: mImage(std::move(image)),
|
||||
mWidth(width),
|
||||
mHeight(height),
|
||||
|
@ -67,7 +66,7 @@ FontGlyph::FontGlyph(unsigned width, unsigned height, int bearingX, int bearingY
|
|||
|
||||
}
|
||||
|
||||
Image<unsigned char>* FontGlyph::getImage() const
|
||||
Image* FontGlyph::getImage() const
|
||||
{
|
||||
return mImage.get();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue