Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Why I can't setTexture?  (Read 431 times)

0 Members and 1 Guest are viewing this topic.

LordNani

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Why I can't setTexture?
« 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]
« Last Edit: May 31, 2019, 11:15:47 pm by LordNani »

FRex

  • Hero Member
  • *****
  • Posts: 1843
    • View Profile
    • My GitHub Page
    • Email
Re: Why I can't setTexture?
« Reply #1 on: May 31, 2019, 11:52:05 pm »
Not sure if [FIXED] means you guessed but the proper way is &pencilIcon.
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

LordNani

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Why I can't setTexture?
« Reply #2 on: June 01, 2019, 12:30:34 pm »
Not sure if [FIXED] means you guessed but the proper way is &pencilIcon.
Thx, yeah, I did exactly this!

 

anything