diff options
Diffstat (limited to 'src/example/loadfont.cpp')
| -rw-r--r-- | src/example/loadfont.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/example/loadfont.cpp b/src/example/loadfont.cpp index 6fb9760..78b3adb 100644 --- a/src/example/loadfont.cpp +++ b/src/example/loadfont.cpp @@ -30,8 +30,8 @@ int main() {  		std::cout << label->font.value().get_path() << std::endl;  		// label2->font = std::make_optional(asset);  		// std::cout << "Path: " << label2->font.get_path() << std::endl; -		// ResourceManager & resource_mgr = mediator.resource_manager; -		// const Font & res = resource_manager.get<Font>(label->font); +		ResourceManager & resource_mgr = mediator.resource_manager; +		const Font & res = resource_manager.get<Font>(label->font.value());  		// TTF_Font * test_font = res.get_font();  		// if (test_font == NULL) {  		// 	std::cout << "error with font" << std::endl; |