From 0cb5cb5acfd4c550fe1be812b486e800ca82e0c4 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Wed, 30 Dec 2020 23:58:59 -0500 Subject: [PATCH] Add Functions.hpp --- include/CMakeLists.txt | 1 + include/Font.hpp | 3 ++- package.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 17defa2..845d013 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -12,6 +12,7 @@ install(FILES Camera3D.hpp Color.hpp DroppedFiles.hpp + Functions.hpp Font.hpp Gamepad.hpp Image.hpp diff --git a/include/Font.hpp b/include/Font.hpp index 751b424..a7808fc 100644 --- a/include/Font.hpp +++ b/include/Font.hpp @@ -117,7 +117,8 @@ class Font : public ::Font { /** * Create an image from text (custom sprite font) */ - inline Image ImageText(const std::string& text, float fontSize, float spacing, ::Color tint) const { + inline Image ImageText(const std::string& text, float fontSize, + float spacing, ::Color tint) const { return ::ImageTextEx(*this, text.c_str(), fontSize, spacing, tint); } diff --git a/package.json b/package.json index 9ee92c7..97e9560 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "include/Camera3D.hpp", "include/Color.hpp", "include/DroppedFiles.hpp", + "include/Functions.hpp", "include/Font.hpp", "include/Gamepad.hpp", "include/Image.hpp",