Mouse cursors

58 views
Skip to first unread message

Niels Neumann

unread,
Oct 8, 2013, 4:45:59 PM10/8/13
to freer...@googlegroups.com
I think about an extra Cursor for landscaping or building paths, etc. That could be an improvement in useability. But whitch Format needs the cursors sdl provides ASCII formated cursors for example. Png would bei easier to maintain. whitch ohne should i implement to fits the game engine.

Alberth

unread,
Oct 10, 2013, 2:27:19 PM10/10/13
to freer...@googlegroups.com
Never looked at cursors of sdl at all (no idea how that works or how much work it is), but if I can choose between ASCII and png, I'll pick png any day.

Given that eventually we will switch to sdl2, maybe you can verify the situation there too? It would be a shame if you implemented a solution that will break in sdl2.

Niels Neumann

unread,
Oct 12, 2013, 8:21:30 AM10/12/13
to freer...@googlegroups.com
Found an documentary for changing mouse cursor with sdl2 and sdl1.x :) so i think it should be possible with sdl2

the function SDL_CreateCursor only accepted an black and white cursor in ascii format.
for coloured cursor, we have to blitted by ourselve at every mouse position with an invisible SDL_Cursor in background.
Reply all
Reply to author
Forward
0 new messages