diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-19 17:22:29 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-19 17:22:29 -0400 |
commit | 5c92093bd82b54e79c63937cb0dbefabc5f47624 (patch) | |
tree | bc922c60d48fc4b04e7bb524221d495403ac90c6 /src/renderer.cpp | |
parent | 669879f081a95335622f362b300e2e869e1046b3 (diff) | |
download | ether-5c92093bd82b54e79c63937cb0dbefabc5f47624.tar.gz ether-5c92093bd82b54e79c63937cb0dbefabc5f47624.tar.bz2 ether-5c92093bd82b54e79c63937cb0dbefabc5f47624.zip |
added title screen
Diffstat (limited to 'src/renderer.cpp')
-rw-r--r-- | src/renderer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/renderer.cpp b/src/renderer.cpp index 1aa5cbf..b24ddbf 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp | |||
@@ -114,6 +114,9 @@ Renderer::Renderer() | |||
114 | loadTextureFromFile("../res/title0.png", titles_[0]); | 114 | loadTextureFromFile("../res/title0.png", titles_[0]); |
115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); | 115 | SDL_QueryTexture(titles_[0].get(), nullptr, nullptr, &titleWidths_[0], &titleHeights_[0]); |
116 | 116 | ||
117 | loadTextureFromFile("../res/title3.png", titles_[1]); | ||
118 | SDL_QueryTexture(titles_[1].get(), nullptr, nullptr, &titleWidths_[1], &titleHeights_[1]); | ||
119 | |||
117 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); | 120 | font_ = font_ptr(TTF_OpenFont("../res/softsquare.ttf", 45)); |
118 | if (!font_) { | 121 | if (!font_) { |
119 | throw ttf_error(); | 122 | throw ttf_error(); |