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

Pages: [1]
1
General / Re: How to I change an RGB( array to usuable SFML array?
« on: December 03, 2016, 12:04:21 pm »
Thanks for the clarification eXpl0it3r   :)

I used the first form first then to get my modification to work I used the second form. Being a NEWBIE I didn't know why   ;)  I maybe wrong but I THINK I did try the first form but got compile errors (with VS 2015). The errors went away when I changed the sf::Color to sf::Color::Color. Again I don't know why?

Which SHOULD I aim to use and why?   ;)

My array has over 250 occurrences so how would I use the first form and not include the count of occurrences? Just leave off the ", 3"?

2
General / Re: How to I change an RGB( array to usuable SFML array?
« on: December 03, 2016, 09:50:45 am »
Thanks for your response jamesL    :)

I've tried that but it throws up a few errors   :(

Essentially I replaced RGB with sf::Color    :P

Edit:-  Okay, reread your response and replaced RGB with sf::color::color and it now compiles....    ;D

Thanks jamesL    :D

Told you!  NEWBIE!     :D

3
General / How to I change an RGB( array to usuable SFML array?
« on: December 03, 2016, 04:59:26 am »
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  :(

Pages: [1]
anything