Initial image implementation
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -12,8 +12,9 @@
|
||||
|
||||
#include "sdl_helpers.h"
|
||||
#include "Widgets/Widget.h"
|
||||
#include "Widgets/WidgetText.h"
|
||||
#include "Widgets/WidgetImage.h"
|
||||
#include "Widgets/WidgetRect.h"
|
||||
#include "Widgets/WidgetText.h"
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
@@ -26,6 +27,7 @@ using nlohmann::json;
|
||||
|
||||
void init_builders(map<string, unique_ptr<Widget>(*)(const json&)>& widget_builders)
|
||||
{
|
||||
widget_builders["image"] = &WidgetImage::builder;
|
||||
widget_builders["rect"] = &WidgetRect::builder;
|
||||
widget_builders["text"] = &WidgetText::builder;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user