cursor prob

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Flo
Posts: 11
Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany

cursor prob

Post by Flo »

hi guys :)

i've got a little prob with the cursor in the irrlicht engine. i tried to implement an own cursor in 2 different ways, but both didn't work right ...

1. way:
when i load the cursor as a 2d image that is drawn at the mouse position and i also use gui elements, then the "cursor" is behind them ...
so, is there any way to set the gui elements as "background" or to set the cursor image as "foreground"?

2. way:
i tried the thing with that code:

Code: Select all

	WNDCLASSEX wcex;
	wcex.hCursor = LoadCursor(hInstance, MAKEINTRESOURCE(IDC_ALBIONCUR));
but it didn't work either ...


any idea how to do this right?
Ironfoot
Posts: 15
Joined: Fri Aug 22, 2003 12:30 pm
Location: Germany
Contact:

Post by Ironfoot »

The 1st Way should work, but you have to ensure that you're rendering the Cursor after the GUI-Elements...
Great Engine, Niko, keep up the good work!
Flo
Posts: 11
Joined: Mon Dec 01, 2003 2:03 pm
Location: Germany

Post by Flo »

big thx :) it works now :)
Post Reply