PDA

View Full Version : SDL_gfx 2.0.13



WILL
01-01-2005, 10:24 AM
Hey savage,

Have you seen SDL_gfx 2.0.13, yet? It seems to resemble alot of the functionality of what sdlutils currently in JEDI-SDL is now. It seems to be a side project for SDL(now a part of the actual development team's efforts), but looks like something you may want to consider for the next release of JEDI-SDL.

I first heard about it from GameDev.net here (http://www.gamedev.net/community/forums/topic.asp?topic_id=289923).


The link to the project's page: http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/

savage
01-01-2005, 10:41 PM
Thanks for the heads up, I will look into it.

godbeast
10-07-2006, 11:26 PM
First, hello all. Thats my first post:) anyway, do you know where do find sdl_gfx.dll? I've been googling for a while, and what I found out at sdl pipermail is that it has to be bulit personally and sources can be found at http://www.ferzkopp.net/mambo/index.php?option=com_content&task=view&id=14&Itemid=29
I'm afraid that installing a proper c compiler, compiling etc is too much trouble for me. I'm intrested in primitives (mainly rects, filled rects, lines, polys and pixels). Should I use sdlutils instead?

WILL
10-07-2006, 11:52 PM
I don't know who went through the trouble to get me this, but I actually have a copy the DLL located here: Clicky (http://www.pascalgamedevelopment.com/files/188/SDL_gfx.dll)

I don't recall what version it is, but it is SDL_gfx.

As for JEDI-SDL's sdlutils vs. SDL_gfx; What is it that you are trying to do?

godbeast
11-07-2006, 12:26 AM
Thanks. To be perfectly honest, I'm just learning SDL now. My whole overall goal is to write a simple, low-weighted gui unit for my personal projects. I need primitives for drawing components in case tileset that includes graphics (like arrows etc.) is not found. Unit, using written in patterns, would draw a new nice tileset then.

The problem is that I know only SDL's basics, and that sucks cause I don't know too much about diffrences between sdlutils/sdli386utils/sdl_gfx, font units etc. I'm trying to pay my attention now, because I don't want to make mistakes at the beggining point.

So, maybe you could inform me what to choose? :) This gui will be used rather for games/editors in the future. What I plan is:

* drawing buttons/textfields etc from tileset
* using fast primitives
* optionally sound effects (onClick etc.)
* mouse/keyboard controll ofcourse
* drawing to SDL_Surface and/or a certain gui window

I hope that I'll learn SDL and it's units effectivly this way :wink:

WILL
11-07-2006, 01:55 AM
Well in that case, if you are just learning SDL, I'd stay away from SDL_anythingThatIsNotCoreStuff for now. :)

I think your best bet is to checkout JEDI-SDL... JEDI-SDL Site (http://www.delphi-jedi.org/Jedi:TEAM_SDL_HOME)

And learn the basics of what it has to offer on it's own. Checkout the demos and examples provided, they are pretty good for understanding how most things work.

Plus if you need any extra SDL extensions, they come with the package with the translated headers too.

sdlutils.pas is also provided to extend what is not available in the core SDL library. I use it extensively. (with a few of my own tweeks, of course)


For designing a GUI, you can either do it one of two ways. Get a package that does all the SDL GUI stuff for you. Or quite simply make it yourself from scratch. Either option is good depending on your experience level and how complicated you want to get with it.

All of what you have listed there is able to be done with just the SDL library and the sdlutils unit in the package.

The only exception would be if you wanted to use PNG or some other format than BMP, but for now, it might be best to learn how it's done then improve your methods.

godbeast
11-07-2006, 08:33 AM
Thanks again. I already did what you say 8) I examinated all demos/examples etc. My plan is to write from scratch. SDLCntrls seems to heavy, and it's complicated too, besides, writing a gui is a pleasent task.