PDA

View Full Version : TinySDGL and Free Pascal



technomage
15-02-2007, 11:32 AM
I everyone, I just wanted to share something with you all. I've been looking at getting TinySDGL (http://www.kyb.tuebingen.mpg.de/bu/people/gf/software/TinySDGL.zip) working under Free Pascal and Delphi and the good news is that I have it all working.

For those that don't know, TinySDGL is a port of TinyGL to work with SDL and is a small software version of Opengl.

Under windows you need to compile it as a DLL but under linux and unix you can use the lib's directly in Free Pascal.

As a demo here is a cgi application I wrote in Free Pascal under uni, it produces a image from a load of opengl calls :). Pretty cool he :wink:

http://www.infinitespace-online.net/cgi-bin/Viewer.cgi

vgo
15-02-2007, 11:57 AM
That's cool! Software rendering rocks! :)

cairnswm
15-02-2007, 12:16 PM
Does TinyGL support image loading etc.

technomage
15-02-2007, 01:09 PM
It supports 256x256 textures (i think) and the normal opengl texture interface you will have to write your own image loader, but free pascal and Delphi has those, and I'm sure you can use SDL_Image as well as that library has been ported to quite a few OS's.

cairnswm
15-02-2007, 02:00 PM
So would it run on NDS/GBA/Windows CE?

Now that would make it a lot easier to make games than currently

technomage
15-02-2007, 02:23 PM
more than likley. The DS already support a sort of Opengl API, but this would run on the GBA and I assume Windows CE.