I am a NEWBIE with C++ and have used SFML for a whole week ;D I HAVE searched the forums unsuccessfully for a solution :(
On Windows 10 and SFML 2.4.1 and using VS 2015
How do I change
COLORREF Colours[] = {
RGB(66, 30, 15),
RGB(25, 7, 26),
RGB(9, 1, 47),
RGB(4, 4, 73),
<<<snip>>>
RGB(204, 128, 0),
RGB(153, 87, 0),
RGB(106, 52, 3) };
to a comparable, usable SFML array? (sf::color?)
I have tried various things with my very limited experience :(
With a std::array (recommended):
std::array<sf::Color, 3> colors = {sf::Color( 66, 30, 15),
sf::Color( 25, 7, 26),
sf::Color(204, 128, 0)};
With a raw array:
sf::Color colors[] = {sf::Color( 66, 30, 15),
sf::Color( 25, 7, 26),
sf::Color(204, 128, 0)};