switched up some pointers to shared, added some more rendering example

This commit is contained in:
2021-12-06 23:38:36 -05:00
parent 994a128c14
commit ea172110ea
14 changed files with 43 additions and 48 deletions

View File

@@ -28,7 +28,7 @@ private:
std::unique_ptr<SdlTextureManager> texture_manager = nullptr;
std::unique_ptr<SdlFontManager> font_manager = nullptr;
void render_texture(int x, int y, SDL_Texture *texture, SDL_Rect *src);
void render_texture(int x, int y, const std::shared_ptr<SDL_Texture>& texture, SDL_Rect *src);
};