Direct X | File formats

Hello!

    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.

And if its not using DirectX, what it is using?

And another little “bonus” question :

What type of image files i can use appart of BMP? BMP’s are really heavy in
size, so, what is recomended for a more eficient program, when your
requirements are:

Low sized image files. Very good quality image files. and, obviously, an
image file format that is supported by the SDL library.

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 from me :stuck_out_tongue:

As always, your replys are really apretiated :slight_smile:

                                           Eduardo Garcia Rajo (h)------------------------------------------------------------------

Visite: http://www.solucion-digital.com.ar
SOLUCION DIGITAL
Redes - Software - Servicios

Hello!

    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)

and,
obviously, an image file format that is supported by the SDL
library.

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.

So… PNG! :slight_smile:

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
from me :stuck_out_tongue:

As always, your replys are really apretiated :slight_smile:

No problem. Just don’t ask so many questions we don’t have time to
code the examples you need! :wink:

//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.nethttp://www.reologica.se —On Saturday 24 May 2003 02.29, eDU! wrote:

hehe ok…

no more questions for some days.

Thanks for ur reply again :slight_smile:

                       Eduardo Garcia Rajo (h)------------------------------------------------------------------

Visite: http://www.solucion-digital.com.ar
SOLUCION DIGITAL
Redes - Software - Servicios

----- Original Message -----
From: david@olofson.net (David Olofson)
To:
Sent: Friday, May 23, 2003 9:49 PM
Subject: Re: [SDL] Direct X | File formats

On Saturday 24 May 2003 02.29, eDU! wrote:

Hello!

    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)

and,
obviously, an image file format that is supported by the SDL
library.

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.

So… PNG! :slight_smile:

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
from me :stuck_out_tongue:

As always, your replys are really apretiated :slight_smile:

No problem. Just don’t ask so many questions we don’t have time to
code the examples you need! :wink:

file://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.nethttp://www.reologica.se


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl