[SDL] Custom mouse cursor size
Nicolas Goy - kuon - 時期精
Nicolas Goy - kuon - 時期精
Wed Dec 6 02:44:42 PST 2006
On 6 Dec 2006, at 04:02, benang at cs.its.ac.id wrote:
> Thanks. So, I must use my own mouse cursor surface and keep track
> of the
> mouse movement than using the SDL's own cursor?
In our OpenGL application, the cursor is a simple bitmap drawn with
glBitmap, it works very well.
The advantage of this technique is the ability to draw anything,
apply animation to it when you click or when something is loading,
or even a full 3d cursor, all of this 100% hardware independant.
If you are not using OpenGL, use whatever you use to draw on the SDL
surface to draw a cursor.
All this is according you can have 60fps all the time (to have smooth
cursor).
There are some techniques to give the cursor more fps. A very simple
one is to draw the cursor with SDL_UpdateRect.
Regards
--
Kuon
CEO - Goyman.com SA
http://www.goyman.com/
"Computers should not stop working when the users' brain does."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2434 bytes
Desc: not available
Url : http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061206/c86c25ca/attachment.bin
More information about the SDL
mailing list