Yahoo Small Business Offers Cheap Domain Names, Web Hosting, Easy Website Builder, Business Email, Local Listings, and Ecommerce Solutions for Your Small Business. Small Business Yahoo Small Business - Cheap Domains, Web Hosting, Website Builder, Ecommerce. This function call a function getpixel that you must define, there is a If ((image->flags & SDL_SRCCOLORKEY) = 0 || colorĬursor = SDL_CreateCursor(data, mask, w, image->h, hx, hy) That is equal to image->format->colorkey will be made transparent, hx and hyĪre the local coordinates of the hot pixel of the cursor):ĭata = (Uint8 *)alloca(w * image->h * 2) If you can go with B&W cursors, here’s aįunction that will convert a SDL_Surface to a SDL_Cursor (the colors will beĬonverted to black and white depending on their gray intensity, any pixel If you want/need color cursors then you have to load and blit them yourself, Understand the SDL_CreateCursor() but no luck. is there another, qucker way?ītw i need the cursor to be quickly interchangeble whit other oneĭepending on the area where it is located at the moment. Screen each time mouse moves (the event coords change) on that coodrs.īut i believe this is very ugly and slow. Now im doing it by disabling system cursor and blitting that png on Mouse cursor saved in a small RGBA PNG file. Please tell me what is the most elegant way of setting my own custom
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |