Added WidgetRect to draw rectangles
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -12,6 +12,7 @@
|
||||
#include "sdl_helpers.h"
|
||||
#include "Widgets/Widget.h"
|
||||
#include "Widgets/WidgetText.h"
|
||||
#include "Widgets/WidgetRect.h"
|
||||
|
||||
using std::cout;
|
||||
using std::endl;
|
||||
@@ -23,6 +24,7 @@ using nlohmann::json;
|
||||
void init_builders(map<string, Widget*(*)(const json&)>& widget_builders)
|
||||
{
|
||||
widget_builders["text"] = &WidgetText::builder;
|
||||
widget_builders["rect"] = &WidgetRect::builder;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
||||
Reference in New Issue
Block a user