Implement VCanvas and Update TextElem
- Text now requires a font and is able to take an individual scale - Container requires &ref for Elements to make sure they always exist - SetViewport now sets the canvas as well - SetBaseViewport Sets the Virtual Canvas Size - Layout Now requires a Drawlist reference in Render function - main.cpp: updated the template
This commit is contained in:
@@ -11,14 +11,7 @@ class PD_API Layout : public Container {
|
||||
Layout() {}
|
||||
~Layout() {}
|
||||
|
||||
void SetFont(PD::Li::Font& font);
|
||||
|
||||
void Render();
|
||||
|
||||
const PD::Li::Drawlist& Data() const { return pList; }
|
||||
|
||||
private:
|
||||
PD::Li::Drawlist pList;
|
||||
void Render(PD::Li::Drawlist& list);
|
||||
};
|
||||
} // namespace Ultra
|
||||
} // namespace PD
|
||||
Reference in New Issue
Block a user