Add View superclass
This commit is contained in:
@ -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
3
src/View.cpp
Normal file
@ -0,0 +1,3 @@
|
||||
#include "View.h"
|
||||
|
||||
View::View(SDL_Renderer* renderer) : renderer{renderer} {}
|
||||
Reference in New Issue
Block a user