0 Members and 2 Guests are viewing this topic.
Todo:- Add SDL_GetTicks() for CX- Map more keys to SDLKs- Add support for diagonal arrow keys in events & joystick- Should the joystick continuously fire events if an arrow key is held down?- Put all the compiled objects in one folder, along with libSDL.a?- Add some own function to load images stored in arrays (?)- Add mouse support
While I'm dealing with the timer stuff, I decided to implement fonts. There are 4 fonts included by default, but it's easily extensible. See for yourself:Drawing fonts is as easy as calling the SDL_NSP_DrawString() function (any TI-Nspire-specific functions I add will be prefixed with SDL_NSP_*).
Yes, or more generally, I fixed most of the blitting issues. Here's a short video so you can more or less see how blitting a big image runs speed-wise:EDIT: I actually forgot to pass the surface through SDL_DisplayFormat() to convert to the screen's pixel format. With SDL_DisplayFormat() it's a lot snappier.EDIT2: Here's another video that gives a better impression of the blitting speed (and seems like there are some issues with timers I need to fix):
Is nSDL far enough to start porting SDL programs to the nspire? Or do you need to do more work? (I know nothing about SDL, so I have no clue what you have to do to finish it) Also, could I put custom fonts off of my computer on my nspire using nSDL without having to make the font over again?
Also, the video isn't showing, maybe it's because youtube is blocked at my school? I had no problem viewing youtube videos off of omnimaga before...
It's working very well, and the timer is very accurate!