Add View superclass

This commit is contained in:
2022-05-19 21:02:28 +02:00
parent 8aa7267b21
commit 1bfcfd3bf1
5 changed files with 20 additions and 5 deletions

View File

@ -3,7 +3,7 @@
#include "util.h"
AMI::AMI(SDL_Renderer* renderer)
: renderer{renderer}, avenir{util::load_font(AVENIR_FONT_PATH, 28)},
: View{renderer}, avenir{util::load_font(AVENIR_FONT_PATH, 28)},
ft_logo{renderer, {.x = 182, .y = 0, .w = 116, .h = 40}, FT_LOGO_PATH},
choose{renderer,
{.x = 0, .y = 45, .w = 480, .h = 40},

3
src/View.cpp Normal file
View File

@ -0,0 +1,3 @@
#include "View.h"
View::View(SDL_Renderer* renderer) : renderer{renderer} {}