0 Members and 1 Guest are viewing this topic.
Control.hclass myClass{public: void Initialize(); void LoadImage(sf::Sprite &sprite);protected: private:};
Controls.cppvoid myClass::Initialize(){ sf::Image image; sf::Sprite sprite;}void myClass::LoadImage(fs::Sprite &sprite){ image.LoadFromFile("Player.png"); sprite.SetImage(image);}
main.cppint main(){Controls obj;obj.LoadImage(sprite);}