Author Topic: nSDL 1.1.1 Anniversary Edition—The Ultimate TI-Nspire Graphics Library  (Read 142980 times)

0 Members and 1 Guest are viewing this topic.

Offline critor

  • Editor
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2079
  • Rating: +439/-13
    • View Profile
    • TI-Planet
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #225 on: May 28, 2012, 06:54:09 pm »
Atiatinini, could you please release the source code of your plasma demo?

I think such a simple example would help many people figuring out what has to be changed when porting a PC SDL game.


Thanks.
TI-Planet co-admin.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #226 on: May 31, 2012, 01:29:26 pm »
That is sad for the TI-Nspire community... Hopefully someone will take the maintenance of nSDL after you and bring it even further.

Anyway thank you again for all you efforts and good luck with your personal projects :)
Ndless.me with the finest TI-Nspire programs

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #227 on: May 31, 2012, 01:31:44 pm »
Sorry to hear. I hope you still pass by from time to time to say hello. Good luck!

Hopefully someone takes over nSDL in the near future.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #228 on: May 31, 2012, 01:36:57 pm »
Aww, that's not too nice.
But good luck whatever you have planned with your life :)

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #229 on: May 31, 2012, 10:20:51 pm »
Good luck hoffa. sad to see you go. You've done great on making this and it should help launch some new interest in the nspire.
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nSDL 0.3.0—A fast & robust TI-Nspire graphics library
« Reply #230 on: June 01, 2012, 01:37:16 am »
Indeed, sad to see one of the most productive members leave the community. Good luck :)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #231 on: June 07, 2012, 07:49:05 am »
My last update for nSDL is here, 0.3.1. Changes are:

- Updated Image to NTI converter for faster speed and better handling of larger pictures
- Renamed SDL_n* functions to nSDL_*
- Renamed NSP_* macros to NSDL_*
- Renamed SDL_* environment variables to NSDL_*
- Removed NSP_HSPACING_DEFAULT, NSP_VSPACING_DEFAULT, NSP_NAME, NSP_NAME_FULL, NSP_RMASK16, NSP_GMASK16, NSP_BMASK16, SDL_nCreatePalette(), SDL_nDrawChar()
- Key mapping changed
- Diagonal arrow keys are correctly handled
- Performance improvements
- Binaries should be slightly smaller

The wiki has been changed accordingly.

As usual, download here.
« Last Edit: June 07, 2012, 07:51:58 am by hoffa »

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #232 on: June 11, 2012, 01:02:36 am »
Now that SDL for the TI-Nspire works rather well and has been under development for some time, I will probably (despite my finals) try and port a very fast software implementation of OpenGL (based on TinyGL). That could mean some serious 3D stuff soon. There'll also be a very last update for nSDL that basically does some final cleaning up to leave a nice little package before I go.
« Last Edit: June 11, 2012, 01:09:23 am by hoffa »

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #233 on: June 11, 2012, 05:09:50 am »
WOn't you work on SDl's addons? That would be quite useful!

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #234 on: June 11, 2012, 11:18:34 am »
WOn't you work on SDl's addons? That would be quite useful!
Yessir!



SDL_gfx up in this!

EDIT:
WELL, WELL, WELL, what do we have here?

« Last Edit: June 11, 2012, 11:50:15 am by hoffa »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #235 on: June 11, 2012, 12:45:25 pm »
Interesting ;)
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #236 on: June 11, 2012, 02:32:44 pm »
Is there any way of easily finding where you made changes to the SDL source? I would like to look a little to see what it takes to port it to a new platform
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

Offline hoffa

  • Project Author
  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nSDL 0.3.1—A fast & robust TI-Nspire graphics library
« Reply #237 on: June 11, 2012, 03:01:16 pm »
I've now updated nSDL to 0.3.2. I've done some major housekeeping, the code should be a lot cleaner and everything should be nicely organized (the current video code for instance (here) is nearly twice as small as 0.2.0's 400-liner (here)). I've purged all crap from everywhere, no more mouse support because it wasn't perfect when using SDL_PollEvent() and I couldn't bother to debug it (and I think Lua's better for that kind of stuff), no more diagonal arrow key support I added in the previous version. Removing those two simplified the event fetching code to a simple little loop, which means it's faster and I'm much more content with it. It's such a rewarding feeling to clean shit up.

Anyway I also added SDL_gfx and updated fdlibm no one's heard about (it's a working, fast, Sun's full implementation of math.h functions; newlib's math functions don't work): https://github.com/Hoffa/nSDL/wiki/Additional-libraries
I haven't really tested SDL_gfx THAT MUCH, but it should run alright. SDL_gfx allows you to rotate and stretch images, draw anti-aliased lines, circles, triangles and all of your deepest fantasies. If I remember correctly it should do some heavy surface conversions on the fly so it might be pretty damn slow on a calculator, but I haven't tested so what do I know.

So here are the changes:
- Removed mouse, diagonal arrow key support
- Using SDL_GetVideoInfo() should now always give accurate information
- Faster event loop
- A LOT of cleaning up
- Apart from nSDL itself, added SDL_gfx and updated fdlibm

I think I'm finally ready to leave my baby for quite a long time.

Is there any way of easily finding where you made changes to the SDL source? I would like to look a little to see what it takes to port it to a new platform
Sure. Check out the source code here: https://github.com/Hoffa/nSDL
If you don't see "Initial commit." next to the file, it means I've changed something. Click on the message the view the changes of that commit. You can browse different commits here also: https://github.com/Hoffa/nSDL/commits/master
Most of the interesting stuff is in the src/ folder obviously.
« Last Edit: June 11, 2012, 03:18:26 pm by hoffa »

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: nSDL 0.3.2—A fast & robust TI-Nspire graphics library
« Reply #238 on: June 11, 2012, 03:23:34 pm »
Nice hoffa :)

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: nSDL 0.3.2—A fast & robust TI-Nspire graphics library
« Reply #239 on: June 12, 2012, 05:37:00 am »