Well, may be you will laugh when u read my question... but
its something i dont know… (remember that i started with graphics
programing just 3 days ago =) )
How do i know if a program i have made with SDL is using DirectX
or not? For example, a program like the one in the tutorial; the
program that Shows a BOX (sprite) wich you can move on the screen,
and has a background image.
I suppose you can ask SDL which backend it’s using…
SDL_VideoDriverName() should give you a hint, I think.
And if its not using DirectX, what it is using?
Some day OpenGL might be an alternative, but for now it’s either
DirectX or good (not really) old (yes indeed!) GDI.
And another little “bonus” question :
What type of image files i can use appart of BMP? BMP’s are really
heavy in size,
…and they don’t support alpha channels, so you can’t have
antializade sprites. :-/
PNG does, though.
so, what is recomended for a more eficient program,
when your requirements are:
Low sized image files.
PNG, or maybe JPG, if you can take the quality degradation. Note that
if you’re going to use high quality JPGs, they usually become bigger
than PNGs - and even then, the PNGs are higher quality by definition,
since the compression is lossless.
Very good quality image files.
PNG (lossless and rather effective compression)
obviously, an image file format that is supported by the SDL
Uhm… Well, SDL itself supports only BMP, and even that is basically
just a convenience feature almost beyond the scope of SDL.
Throw in the SDL_image add-on library, and you can pretty much pick
any image format you like.
May be im totally confused… but dont worry im studding as much as
i can so some day you will stop receiving this type of questions
As always, your replys are really apretiated
No problem. Just don’t ask so many questions we don’t have time to
code the examples you need!
//David Olofson - Programmer, Composer, Open Source Advocate
.- The Return of Audiality! --------------------------------.
| Free/Open Source Audio Engine for use in Games or Studio. |
| RT and off-line synth. Scripting. Sample accurate timing. |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —On Saturday 24 May 2003 02.29, eDU! wrote: