SFML community forums
Help => Graphics => Topic started by: LordNani on May 31, 2019, 11:11:29 pm
Title:
Why I can't setTexture?
Post by:
LordNani
on
May 31, 2019, 11:11:29 pm
How can I fix it?
sf
::
Texture
pencilIcon
;
sf
::
RectangleShape
testShape
;
testShape.
setTexture
(
pencilIcon
)
;
I know, it says about *texture, but I don't know how to pass it(setTexture(*pencilIcon) doesn't work)
[FIXED]
Title:
Re: Why I can't setTexture?
Post by:
FRex
on
May 31, 2019, 11:52:05 pm
Not sure if [FIXED] means you guessed but the proper way is &pencilIcon.
Title:
Re: Why I can't setTexture?
Post by:
LordNani
on
June 01, 2019, 12:30:34 pm
Quote from: FRex on May 31, 2019, 11:52:05 pm
Not sure if [FIXED] means you guessed but the proper way is &pencilIcon.
Thx, yeah, I did exactly this!