Introduced SetGAL() functions that will allow changing GAL backend for rendering on the fly.
This commit is contained in:
parent
e1fcd31381
commit
5b9057823a
|
@ -80,3 +80,10 @@ PAINTER::~PAINTER()
|
||||||
{
|
{
|
||||||
delete m_stroke_font;
|
delete m_stroke_font;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void PAINTER::SetGAL( GAL* aGal )
|
||||||
|
{
|
||||||
|
m_gal = aGal;
|
||||||
|
m_stroke_font->SetGAL( aGal );
|
||||||
|
}
|
||||||
|
|
|
@ -152,6 +152,16 @@ public:
|
||||||
m_verticalJustify = aVerticalJustify;
|
m_verticalJustify = aVerticalJustify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function SetGAL
|
||||||
|
* Changes Graphics Abstraction Layer used for drawing items for a new one.
|
||||||
|
* @param aGal is the new GAL instance.
|
||||||
|
*/
|
||||||
|
void SetGAL( GAL* aGal )
|
||||||
|
{
|
||||||
|
m_gal = aGal;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GAL* m_gal; ///< Pointer to the GAL
|
GAL* m_gal; ///< Pointer to the GAL
|
||||||
GlyphList m_glyphs; ///< Glyph list
|
GlyphList m_glyphs; ///< Glyph list
|
||||||
|
|
|
@ -180,6 +180,13 @@ public:
|
||||||
m_settings = aSettings;
|
m_settings = aSettings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Function SetGAL
|
||||||
|
* Changes Graphics Abstraction Layer used for drawing items for a new one.
|
||||||
|
* @param aGal is the new GAL instance.
|
||||||
|
*/
|
||||||
|
void SetGAL( GAL* aGal );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function GetSettings
|
* Function GetSettings
|
||||||
* Returns pointer to current settings that are going to be used when drawing items.
|
* Returns pointer to current settings that are going to be used when drawing items.
|
||||||
|
|
Loading…
Reference in New Issue