SFML community forums

Help => Window => Topic started by: ElChupacabra on November 07, 2008, 02:54:25 pm

Title: [solved]Custom Cursor
Post by: ElChupacabra 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?
Title: Re: Custom Cursor
Post by: zarka 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)
Title: [solved]Custom Cursor
Post by: Hiura on November 08, 2008, 12:46:50 am
And use this : http://www.sfml-dev.org/documentation/1.3/classsf_1_1Window.htm#6142e38cb60901e6604284425714f3f0 .
Title: [solved]Custom Cursor
Post by: ElChupacabra on November 11, 2008, 03:28:14 am
Works fine, thanks :)