SDL...a library or an API?

Please, guys

Could someone please explain in lame man terms, how SDL is related to the
word API.
Thanks in advance

Please, guys

Could someone please explain in lame man terms, how SDL is related to the word API.
Thanks in advance

A library is a collection of code that does certain things. An API is an Application Programming Interface, or in other words the collection of standard function calls that you use to get at the library’s functionality from outside code. So SDL.dll is the library, and SDL_Init() is an SDL API function.>From: Mike Mike

Subject: [SDL] SDL…a library or an API?

Yes, correct me if I’m wrong, but we could say that the library is a realization of an API
to which it conforms.
POSIX is an example of standard API for operating systems, and Linux is a realization of it, in the concrete sense of a computer program. The API is only a contract, it’s not a program.

Everybody agrees ?

Regards,

Julien

— En date de?: Mer 6.5.09, Mason Wheeler a ?crit?:de: Mason Wheeler
Objet: Re: [SDL] SDL…a library or an API?
?: “A list for developers using the SDL library. (includes SDL-announce)”
Date: Mercredi 6 Mai 2009, 19h18

From: Mike Mike

Subject: [SDL] SDL…a library or an API?

Please, guys

Could someone please explain in lame man terms, how SDL is related to the word API.
Thanks in advance

A library is a collection of code that does certain things.? An API is an Application Programming Interface, or in other words the collection of standard function calls that you use to get at the library’s functionality from outside code.? So SDL.dll is the library, and SDL_Init() is an SDL API function.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

julien CLEMENT wrote:

Yes, correct me if I’m wrong, but we could say that the library is a
realization of an API
to which it conforms.
POSIX is an example of standard API for operating systems, and Linux
is a realization of it, in the concrete sense of a computer program.
The API is only a contract, it’s not a program.

Everybody agrees ?

Regards,

Julien

Totally makes sense. Plus, in Italian “API” means “BEES”, so, when a
colleague asks “Come sono quelle API?” (how’s those APIs?), the answer
is always “Gialle, a strisce nere e incazzate!”, (Yellow, with black
strips and very angry!) :-))

Bests,
Gian.

Yes, correct me if I’m wrong, but we could say that the library is a
realization of an API
to which it conforms.
POSIX is an example of standard API for operating systems, and Linux is a
realization of it, in the concrete sense of a computer program. The API is
only a contract, it’s not a program.

Yep, that’s what I’d say too. Although in some cases (like SDL’s!),
there isn’t a real “standard” to write the library against, the
library itself is a little bit the “standard” at the same time… But
API being the interface, and the library being the implementation of
that interface is dead on.On Thu, May 7, 2009 at 3:31 AM, julien CLEMENT wrote:


http://pphaneuf.livejournal.com/