Place GraphicsResources functions in header file

These are functions used in other files that are not on the
GraphicsResources class but are implemented inside the
GraphicsResources.cpp file. For some reason they were never put in the
GraphicsResources.h file until now, even though it's a perfectly good
header file to put them in.
This commit is contained in:
Misa
2024-01-09 16:03:05 -08:00
parent 10030a4340
commit b3b001c2a8
4 changed files with 10 additions and 7 deletions

View File

@@ -10,6 +10,9 @@
#include "Game.h"
#include "Graphics.h"
#include "GraphicsUtil.h"
#ifndef __APPLE__
#include "GraphicsResources.h"
#endif
#include "InterimVersion.h"
#include "Render.h"
#include "Vlogging.h"
@@ -118,8 +121,6 @@ void Screen::LoadIcon(void)
}
#else
SDL_Surface* LoadImageSurface(const char* filename);
void Screen::LoadIcon(void)
{
SDL_Surface* icon = LoadImageSurface("VVVVVV.png");