I'm continuing to read and plug away at this.
Currently:
class Graphics : public sf::Drawable // this should set up the inhert
//and
virtual void Render(sf::RenderTarget& App) const
{
sf::Image bjtable;
bjtable.LoadFromFile("realbj.jpg");
sf::Sprite spriteBtab;
spriteBtab.SetImage(bjtable);
spriteBtab.Resize(800,600);
App.Draw(spriteBJtable);
}
//is what I have for my draw function
I noticed that if I tried to use any other parameters for the virtual function the compiler complained about it being a pure virtual function. I am assuming it is pure because it is taking
virtual void Render(sf::RenderTarget& Target) const
from drawable.hpp...
The issue is that my current draw function is not drawing anything. I am getting a default black screen.
Also
virtual void Render(sf::RenderTarget& App) const
{
BJtable.LoadFromFile("realbj.jpg");
spriteBJtable.SetImage(BJtable);
spriteBJtable.Resize(800,600);
App.Draw(spriteBJtable);
}
I tried this to see if the sprite and image were being passed in, and I am receiving some errors.
what am I missing here?