Page 1 of 1

Love backend

Posted: Fri Nov 30, 2012 1:06 am
by mongrol
Hi folks,
I'm just starting learning LUA and love (after 3 years of C++ and SFML) and really like it so far. I have a question though that I can't find the answer to by looking through the official docs. What does Love use for a backend? I see references to both SDL and OpenGL but can't figure out which it is. Also what is the nLove project?

Re: Love backend

Posted: Fri Nov 30, 2012 7:10 am
by bartbes
It uses both SDL and OpenGL, and a lot more (see the bottom of License).

And nlove was a project to replace most non-portable things with SDL, thereby making it a more portably distribution of love.

Re: Love backend

Posted: Fri Nov 30, 2012 10:03 am
by mongrol
So the renderer is opengl and all the input/audio etc is SDL?

Re: Love backend

Posted: Fri Nov 30, 2012 10:36 am
by Boolsheet
Input yes, audio no. Here's a small overview what module uses what library. Might be incomplete.

Code: Select all

love.audio:      OpenAL
love.event:      SDL
love.filesystem: PhysicsFS
love.font:       FreeType
love.graphics:   SDL for the window creation, GLee for the symbol loading, and then straight up OpenGL for the drawing.
love.image:      DevIL
love.joystick:   SDL
love.keyboard:   SDL
love.mouse:      SDL
love.physics:    Box2D
love.sound:      libogg and libvorbis, libmpg123, libmodplug
love.thread:     SDL
love.timer:      SDL

Re: Love backend

Posted: Fri Nov 30, 2012 11:05 am
by mongrol
Excellent info. Thanks a lot. Shame not to see OpenGLES in there as a backend.