You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
428 B

#include "H3Element.h"
std::unique_ptr<Component> H3Element::renderer(const ElementRenderRequest &request) {
TextNode *textNode = dynamic_cast<TextNode*>(request.node.get());
if (textNode) {
return std::make_unique<TextComponent>(textNode->text, 0, 0, 14, true, 0x000000FF, request.parentComponent->win->windowWidth, request.parentComponent->win->windowHeight); // Should be 14.04pt
}
return nullptr;
}