[SDL] Custom mouse cursor size
Jonathan Dearborn
grimfang4 at hotmail.com
Wed Dec 6 12:34:25 PST 2006
I thought SDL provided functions to deal with cursors defined as bit arrays (like SDL_CreateCursor())... Is this not platform-independent? If it isn't, then why would SDL have it?
> Date: Wed, 6 Dec 2006 11:44:42 +0100> From: kuon at goyman.com> To: sdl at libsdl.org> Subject: Re: [SDL] Custom mouse cursor size> > > 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."> > >
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM=WLMTAG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20061206/b9f82a94/attachment.htm
More information about the SDL
mailing list