Added message functions to DataModel

This commit is contained in:
andreja6
2018-05-02 19:59:49 -07:00
parent 0f609662bb
commit c38ede1bd1
3 changed files with 35 additions and 1 deletions

View File

@@ -688,7 +688,7 @@ void Demo::onInit() {
dataModel = new DataModelInstance();
dataModel->setParent(NULL);
dataModel->name = "undefined";
dataModel->font = fntdominant;
Globals::dataModel = dataModel;
initGUI();
@@ -1376,6 +1376,7 @@ void Demo::onGraphics(RenderDevice* rd) {
drawButtons(rd);
dataModel->drawMessage(rd);
rd->pushState();
rd->beforePrimitive();