[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: finally ask for lua and sdl question
- From: "Wesley Smith" <wesley.hoke@...>
- Date: Tue, 19 Aug 2008 18:25:46 -0700
> I just want to draw 2D text, shapes and images on screen with some
> support for layers and alpha.
> As both Cairo and OpenGL can do this, it doesn't matter.
> I'm not sure about the fundamental differences between them.
> Also I need feedback from mouse, keyboard and time, that's it.
The difference is that OpenGL is typically hardware accelerated. Most
graphics libs don't come with mouse and keyboard support so you'll
probably need a separate module for that. I would first figure out
what's the most appropriate graphics API for your needs and go from
there. There are a few different GLUT bindings out there, which would
give you text, windowing, mouse, and keyboard support. Combine that
with some OpenGL bindings and you should be set.