Hi, I have a problem with drawing my drawable object.
So:
I have a class that implements sf::Drawable
Node.h
#pragma once
#include <SFML/Graphics.hpp>
class Node : public sf::Drawable {
private:
virtual void draw(sf::RenderTarget& target, sf::RenderStates status) const;
}
Node.cpp
#include "Node.h"
void Node::draw(sf::RenderTarget& target, sf::RenderStates status) const {
sf::RectangleShape rect(...);
target.draw(rect);
}
In my app class, where I have pointer to window i have
Node node();
/* in loop */
...
_window->draw(node);
...
and there I have that error: