So for my game, I was coding a basic rendering manager to manage
drawing the window and displaying things. But when I try to return a window in one of my
functions i get an error similar to this
function "sf::RenderWindow::RenderWindow(const sf::RenderWindow &)" (declared implicitly) cannot be referenced -- it is a deleted function
Here is my (minimal error producing) code:
#include "stdafx.h"
#include "RenderManager.h"
RenderManager::RenderManager()
{
}
sf::RenderWindow RenderManager::newWindow(int w, int h)
{
sf::RenderWindow window;
window.create(sf::VideoMode(w, h), "Basic");
return window;
}
RenderManager::~RenderManager()
{
}
I hope I posted everything right, as it is my first time