Sorry to keep hassling you.
So I read the documentation on sf::Drawable.
first I added:
#include <Drawable.hpp>
That gives me this error:
Severity Code Description Project File Line
Error (active) cannot open source file "Drawable.hpp" SFML Test c:\Users\Calvin\Documents\Visual Studio 2015\Projects\SFML Test\SFML Test\Source.cpp 4
The thing is, I have graphics.hpp imported, libs and include directories are set up, and I have set the linker options, for debug which I am in.
For the class I did this:
//Creating an Enemy
class Enemy : sf::Drawable
{
public:
private:
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const
{
sf::RectangleShape enemyShape(sf::Vector2f(35, 15));
target.draw(enemyShape);
}
};
Enemy enemy;
This doesn't cause any errors, but it also doesn't accomplish anything more.
Lastly, I added this at the end:
window.draw(enemy);
This causes this error:
Severity Code Description Project File Line
Error (active) conversion to inaccessible base class "sf::Drawable" is not allowed SFML Test c:\Users\Calvin\Documents\Visual Studio 2015\Projects\SFML Test\SFML Test\Source.cpp 70
and this:
Severity Code Description Project File Line
Error C2243 'type cast': conversion from 'main::Enemy *' to 'const sf::Drawable &' exists, but is inaccessible SFML Test c:\users\calvin\documents\visual studio 2015\projects\sfml test\sfml test\source.cpp 70
Once again, sorry if I'm plaguing your life. I looked at SFML a couple years ago and decided it was way to complicated, now, I'm ready to learn. Please let me know if I can give you any more info.