Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - silver108

Pages: [1]
1
Window / Re: Trying to return a renderwindow
« on: August 12, 2016, 12:45:06 pm »
I mean like the way you said
Quote
the window is managed entirely by the RenderManager and then it should be kept hidden inside it
Sorry if i worded it wrong

2
Window / Re: Trying to return a renderwindow
« on: August 11, 2016, 04:24:35 pm »
One last thing,
are there any documentation pages or forum posts
about handling rendering completely inside the engine

3
Window / Re: Trying to return a renderwindow
« on: August 11, 2016, 02:30:11 pm »
Oh, thanks both of you very much.
Also, Laurent out of the two methods you suggested are there
any pros or cons to each one?

4
Window / Trying to return a renderwindow
« on: August 11, 2016, 12:56:28 pm »
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
Quote
   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

Pages: [1]