Tutorial Links

Do anyone have some good links to read for getting started doing some graphic programming? I mean things that explain what is actually going on… like, why 24bit colours are slower than 32 (which I just found out… I think), what SDL does (does it communicate with what? the driver for the gfx card? X11 (linux) or whatever?) and so on.
I know I can search google and all that, I only meant if someone already had some good ones they would post. Thanks in advance.

Regards
Henning

i think sdl communicates via x11 with the driver (on linux).

try http://www.gameprogrammer.com/ - they also have a mailing list.> ----- Original Message -----

From: eddie@odense.kollegienet.dk (Henning)
To:
Sent: Sunday, September 07, 2003 4:24 PM
Subject: [SDL] Tutorial Links

Do anyone have some good links to read for getting started doing some
graphic programming? I mean things that explain what is actually going on…
like, why 24bit colours are slower than 32 (which I just found out… I
think), what SDL does (does it communicate with what? the driver for the gfx
card? X11 (linux) or whatever?) and so on.
I know I can search google and all that, I only meant if someone already
had some good ones they would post. Thanks in advance.

Regards
Henning


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

Nope, but I can tell you about some of the mentioned
stuff…

24 bits = no alpha. It only needs to blit.
32 bits = alpha. It needs to blend both source and
destination, which takes much more room than a single
assembly mov instruction per pixel. Also, if you’re
talking about a final product (aka the screen) you
have 8 unused bits that you’re forced to go past and
bring into the CPU’s cache memory, and blitting a 24
bit surface to it requires the conversion of an extra
byte of padding, instead of just moving a couple
double words around. Totally un-necessary.

as for the SDL communication: It uses native APIs,
which probably end up getting used like so: the api
calls are served by a DLL (or linux .so file) which in
turn calls other library calls, and finally somewhere
along the line one of the librarys communicates with
the equivilant of a driver.

For windows, it uses DirectX and OpenGL… these are
both contained in dll files, which in turn use
drivers.

For linux, it uses XLib, which can communicate with
the X Server in many different ways: via the network(
in which case the closest SDL gets to the fx card is
sending network packets), via shared memory( in which
case it sends psuedo-packets, and/or accesses a
intermediate frame-buffer ), or via DRI (Direct
Rendering Interface) which allows it to directly call
an abstracted library interface which in turn executes
the actual fx card i/o, which would make it fairly
equivilant to a driver (if memory serves me right).

— Henning wrote:> Do anyone have some good links to read for getting

started doing some graphic programming? I mean
things that explain what is actually going on…
like, why 24bit colours are slower than 32 (which I
just found out… I think), what SDL does (does it
communicate with what? the driver for the gfx card?
X11 (linux) or whatever?) and so on.
I know I can search google and all that, I only
meant if someone already had some good ones they
would post. Thanks in advance.

Regards
Henning


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


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1On Sunday 07 September 2003 07:24 am, Henning wrote:

Do anyone have some good links to read for
getting started doing some graphic programming?
I mean things that explain what is actually
going on… like, why 24bit colours are slower
than 32 (which I just found out… I think),
what SDL does (does it communicate with what?
the driver for the gfx card? X11 (linux) or
whatever?) and so on. I know I can search
google and all that, I only meant if someone
already had some good ones they would post.
Thanks in advance.

Haven’t found very many tutorials on that sort of
stuff but if you are looking thing specific to
SDL visit http://www.libsdl.org . You’ll find
tons of interesting links in the 'Articles’
section, as well in the ‘Tutorials’ section. If
you can spare the money I would recommend buying
your self a good graphic programming book that
will outline the most fundamental stuff, and
later revisiting game programming.

Enjoy,


Juan D. Espinoza
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE/W4KA3POUPzNqisoRAo8wAJ9w+dReQ1dRn0aGHuprUgdLxW700gCeJ4y5
8dWU1rS09YZBJebtbJAZTSc=
=alxy
-----END PGP SIGNATURE-----

I’d go for the book “Programming Linux Games” if you’re on a linux
platform. It’s freely available on the net now (legally. Author
released it in pdf form), and for the graphics engine focuses on SDL.
Great for people just starting out on graphics/games who already know a
bit about programming.

The book in pdf form is at http://www.overcode.net/~overcode/writing/plg/

Like I said. Free on the net, but you’ll look at it so much, just go
out an buy it once you see it’s value. I did. But beware of the sound
section. Some of the libs are NOT the same version as when he made the
book, so they won’t necessarily compile, but all the SDL stuff is bang
on (that I could tell).

Kevin Frandsen
@Kevin_Frandsen

Thanks for your replies.

Juan adviced me to grab a book on the subject. Can someone recommend a book that explains what I described. I’m not looking for texts describing how to make fire effects or something like that, more like, what’s really going on in the computer/OS, and perhaps something about the various libraries like DirectX and SDL and such (matter of fact, I don’t know the difference between these two, I guess they are more or less the same, except that SDL is for many platforms).

As you can see, I barely know anything, so a grounds up sort of book.

Regards
Henning

I agree. That book is fantastic. I started with the pdf but found myself in
it so much I just bought the book.

Steven Bradley> ----- Original Message -----

From: Kevin Frandsen [mailto:frandse@enel.ucalgary.ca]
Sent: Wednesday, September 10, 2003 10:42 PM
To: sdl at libsdl.org
Subject: [SDL] Re: Tutorial Links

I’d go for the book “Programming Linux Games” if you’re on a linux
platform. It’s freely available on the net now (legally. Author
released it in pdf form), and for the graphics engine focuses on SDL.
Great for people just starting out on graphics/games who already know a
bit about programming.

The book in pdf form is at http://www.overcode.net/~overcode/writing/plg/

Like I said. Free on the net, but you’ll look at it so much, just go
out an buy it once you see it’s value. I did. But beware of the sound
section. Some of the libs are NOT the same version as when he made the
book, so they won’t necessarily compile, but all the SDL stuff is bang
on (that I could tell).

Kevin Frandsen
frandse at enel.ucalgary.ca


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

Hi Juan,

I’m new to graphics as well, and I have found “Focus on SDL” by Ernest
Pazera to be a wonderful introduction. I highly recommend this book.
The text is easy to read and the code examples are clear and simple.

Good luck.> ----- Original Message -----

From: sdl-admin@libsdl.org [mailto:sdl-admin at libsdl.org] On Behalf Of
Henning
Sent: Wednesday, September 10, 2003 6:26 AM
To: sdl at libsdl.org
Subject: Re: [SDL] Tutorial Links

Thanks for your replies.

Juan adviced me to grab a book on the subject. Can someone recommend a
book that explains what I described. I’m not looking for texts
describing how to make fire effects or something like that, more like,
what’s really going on in the computer/OS, and perhaps something about
the various libraries like DirectX and SDL and such (matter of fact, I
don’t know the difference between these two, I guess they are more or
less the same, except that SDL is for many platforms).

As you can see, I barely know anything, so a grounds up sort of book.

Regards
Henning


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

I’d go for the book “Programming Linux Games” if you’re on a linux

Found it, began reading. It seems to be just what I was looking for, thank you.
No idea, where I can buy it around here though.

Henning

Go for Amazon.com (or .ca if in Canada like me). I got mine there.
Decent prices, and delivery time usually isn’t an issue for stuff like
that. Works for me at least.

And there’s always E-bay, but it’s such a great book, who’d sell it?

Kevin Frandsen
@Kevin_Frandsen

Henning wrote:>>I’d go for the book “Programming Linux Games” if you’re on a linux

Found it, began reading. It seems to be just what I was looking for, thank you.
No idea, where I can buy it around here though.

Henning