Skip to content

Commit

Permalink
Remove the inlining so functions can actually be used
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 14, 2024
1 parent fad75f3 commit b3a3c0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/games/cc/titlemenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void TitleMenu::Render() {
}
}

inline void TitleMenu::DrawMainBackground(float opacity) {
void TitleMenu::DrawMainBackground(float opacity) {
glm::vec4 col = glm::vec4(1.0f);
col.a = opacity;
Renderer->DrawSprite(BackgroundSprite, glm::vec2(BackgroundX, BackgroundY),
Expand All @@ -327,14 +327,14 @@ inline void TitleMenu::DrawMainBackground(float opacity) {
col);
}

inline void TitleMenu::DrawStartButton() {
void TitleMenu::DrawStartButton() {
glm::vec4 col = glm::vec4(1.0f);
col.a = glm::smoothstep(0.0f, 1.0f, PressToStartAnimation.Progress);
Renderer->DrawSprite(PressToStartSprite,
glm::vec2(PressToStartX, PressToStartY), col);
}

inline void TitleMenu::DrawSmoke(float opacity) {
void TitleMenu::DrawSmoke(float opacity) {
glm::vec4 col = glm::vec4(1.0f);
col.a = opacity;
SmokeSprite.Bounds = RectF(
Expand Down
8 changes: 4 additions & 4 deletions src/games/cclcc/titlemenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,22 +327,22 @@ void TitleMenu::Render() {
}
}

inline void TitleMenu::DrawMainBackground(float opacity) {
void TitleMenu::DrawMainBackground(float opacity) {
Renderer->DrawSprite(BackgroundSprite, glm::vec2(0.0f));
Renderer->DrawSprite(
OverlaySprite,
RectF(0.0f, 0.0f, Profile::DesignWidth, Profile::DesignHeight),
glm::vec4(1.0f));
}

inline void TitleMenu::DrawStartButton() {
void TitleMenu::DrawStartButton() {
glm::vec4 col = glm::vec4(1.0f);
col.a = glm::smoothstep(0.0f, 1.0f, PressToStartAnimation.Progress);
Renderer->DrawSprite(PressToStartSprite,
glm::vec2(PressToStartX, PressToStartY), col);
}

inline void TitleMenu::DrawMainMenuBackGraphics(bool isTransition) {
void TitleMenu::DrawMainMenuBackGraphics(bool isTransition) {
Renderer->DrawSprite(MainBackgroundSprite, glm::vec2(0.0f));
if (!isTransition) {
Renderer->DrawSprite(MenuSprite, glm::vec2(MenuX, MenuY));
Expand All @@ -353,7 +353,7 @@ inline void TitleMenu::DrawMainMenuBackGraphics(bool isTransition) {
glm::vec4(1.0f));
}

inline void TitleMenu::DrawSmoke(float opacity) {
void TitleMenu::DrawSmoke(float opacity) {
glm::vec4 col = glm::vec4(1.0f);
col.a = opacity;
SmokeSprite.Bounds = RectF(
Expand Down

0 comments on commit b3a3c0e

Please sign in to comment.