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

Author Topic: masskiller's OpenGL noob questions  (Read 5130 times)

0 Members and 1 Guest are viewing this topic.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: masskiller's OpenGL noob questions
« Reply #15 on: October 30, 2012, 10:31:47 pm »
I haven't read anything about the problem, but I just want to give you a hint:
Quote
    M.loadFromFile("Resources\\Images\\Menus and Others\\PNG\\Stage 1 Screen Cover (Temporary).png");
    Mask.loadFromFile("Resources\\Images\\Misc\\PNG\\Dione Background Pattern.png");
    Image.loadFromFile("Resources\\Images\\Misc\\PNG\\Flora Background Pattern.png");
To keep it more crossplatform and easier to write, just you forward slashes instead of double backslashes. ;)
    M.loadFromFile("Resources/Images/Menus and Others/PNG/Stage 1 Screen Cover (Temporary).png");
    Mask.loadFromFile("Resources/Images/Misc/PNG/Dione Background Pattern.png");
    Image.loadFromFile("Resources/Images/Misc/PNG/Flora Background Pattern.png");
Windows can handle this without any problems. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

masskiller

  • Sr. Member
  • ****
  • Posts: 284
  • Pointers to Functions rock!
    • MSN Messenger - kyogre_jb@hotmail.com
    • View Profile
    • Email
Re: masskiller's OpenGL noob questions
« Reply #16 on: October 30, 2012, 10:55:08 pm »
The problem's now fixed, but thanks I found having to use double slashes annoying, I didn't know you could actually do that and have it work.
« Last Edit: October 30, 2012, 10:58:13 pm by masskiller »
Programmer, Artist, Composer and Storyline/Script Writer of "Origin of Magic". If all goes well this could turn into a commercial project!

Finally back into the programming world!