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 - Jadw1

Pages: [1]
1
General / [Visual Studio] don't have SFML in #include
« on: November 04, 2018, 05:42:49 pm »
Hi,
I have some weird problem. I have a few project with SFML and everything is fine. But, I've just created new project and as always I've setted up everything (additional include directories, library directories and dependencies) but Visual can't see SFML include when i type #include<SFML/ and returns me an error. I've done this several times, even following yt tutorial but still it doesn't work :/

Can u help me?

2
Graphics / Window.draw no instance of overloaded function
« on: October 16, 2018, 10:53:58 pm »
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:

Pages: [1]