Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Learning SDL in C [closed]

Tags:

c

sdl

I know the basics of C and I'm looking into SDL. What I need at this point are some tutorials, documentation or perhaps a book about using the SDL libraries in C, especially about graphics.

The problem is that every online resource that I have found deals with C++, where I am looking for resources in C.

I have looked at gpwiki.org, which had an entire section on C but mingw won't compile it because some of the includes are C++ libraries (I only installed the C compiler). Other sources like sol.gfxile.net/gp/ say that they are a C tutorial, but "use C++ for its conveniently loosened variable placement rules.". Most of the tutorials on the SDL site itself are based in C++.

Does anyone know of a good learning resource in C for SDL programming?

like image 640
Bottle Rocket Avatar asked Jul 07 '11 20:07

Bottle Rocket


People also ask

Can I use SDL in C?

SDL is written in C, works natively with C++, and there are bindings available for several other languages, including C# and Python. SDL 2.0 is distributed under the zlib license. This license allows you to use SDL freely in any software.

What does SDL stand for in C?

Simple DirectMedia Layer (SDL) is a cross-platform software development library designed to provide a hardware abstraction layer for computer multimedia hardware components.

Is SDL better than SFML?

SFML: Easier, developed in C++, easy to setup and make your very own project in a matter of minutes. SDL: A bit harder, developed in C, but has native C++ support, as easy to setup, but you'll need some fundamentals beforehand.

What is sdl2 used for?

What is SDL? Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL and Direct3D.


1 Answers

Have a look at this tutorial series at Parallel Realities. It covers SDL with C.

like image 120
scable Avatar answered Oct 08 '22 07:10

scable