Basic Font integration.
This commit is contained in:
parent
ce11c52ae5
commit
72123bc333
36 changed files with 325 additions and 198 deletions
|
@ -3,8 +3,11 @@
|
|||
#include "AbstractMesh.h"
|
||||
#include "Image.h"
|
||||
#include "DiscretePoint.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
class FontsManager;
|
||||
|
||||
class AbstractVisualNode
|
||||
{
|
||||
public:
|
||||
|
@ -21,11 +24,21 @@ public:
|
|||
return mMesh.get();
|
||||
}
|
||||
|
||||
virtual void update(FontsManager* fontsManager)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
virtual void updateMesh()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
virtual void updateTexture(FontsManager* fontsManager)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
Image<unsigned char>* getImage() const
|
||||
{
|
||||
return mImage.get();
|
||||
|
@ -36,8 +49,14 @@ public:
|
|||
return mLocation;
|
||||
}
|
||||
|
||||
Image<unsigned char>* getTexture() const
|
||||
{
|
||||
return mTexture.get();
|
||||
}
|
||||
|
||||
protected:
|
||||
DiscretePoint mLocation;
|
||||
std::unique_ptr<AbstractMesh> mMesh;
|
||||
std::unique_ptr<Image<unsigned char> > mImage;
|
||||
std::unique_ptr<Image<unsigned char> > mTexture;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue