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

Author Topic: [solved]Custom Cursor  (Read 4845 times)

0 Members and 1 Guest are viewing this topic.

ElChupacabra

  • Newbie
  • *
  • Posts: 7
    • View Profile
[solved]Custom Cursor
« on: November 07, 2008, 02:54:25 pm »
How can I set a custom cursor(like a crosshair) for a given RenderWindow? Are there some Methods in SFML for this?

zarka

  • Jr. Member
  • **
  • Posts: 81
    • View Profile
Re: Custom Cursor
« Reply #1 on: November 07, 2008, 09:35:28 pm »
Quote from: "ElChupacabra"
How can I set a custom cursor(like a crosshair) for a given RenderWindow? Are there some Methods in SFML for this?


Paint a cursor the way you whant it to look in a graphics program such as Paint.NET/Gimp or if you can afford it Photshop.

Then set that sprite at the current mouse position. might also be a good idea to make sure it is renderd last (is on top of everything else)
//Zzzarka

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML / OS X developer

ElChupacabra

  • Newbie
  • *
  • Posts: 7
    • View Profile
[solved]Custom Cursor
« Reply #3 on: November 11, 2008, 03:28:14 am »
Works fine, thanks :)