[Lazarus] Fast drawing to canvas
Sven Barth
pascaldragon at googlemail.com
Fri Feb 10 16:21:44 CET 2012
Am 10.02.2012 16:01, schrieb Felipe Monteiro de Carvalho:
> On Fri, Feb 10, 2012 at 1:55 PM, Sven Barth<pascaldragon at googlemail.com> wrote:
>> Would be nice if that even gets supported for Android :)
>
> I started the Android backend with OpenGL ES, but then it prooved to
> be way more work and zero advantage over directly rendering on an
> Android View. Nope, it is not faster, at least not for 2D bitmap
> drawing, that seams to be a myth. In X11 it is also not faster,
> because it just uses the same image putting methods which any library
> would use to talk to X11. And to make things worse OpenGL ES 2 removed
> all the good functions to make 2D projections and changed everything.
> So I gave up on it and went with the standard Android View which works
> nicely. But I suppose one could put another View inside my main view
> and render OpenGL there.
I mostly want it for normal OpenGL usage (games, etc) not for custom
drawing myself...
> But remember the major catch: Android does not have OpenGL, it has
> OpenGL ES, which from what I saw was immensely different from normal
> OpenGL and way harder to use. This fact will also probably kill the
> changes of porting TOpenGLContext to Android because this control was
> made for desktop OpenGL. We would need a TOpenGLES2Context.
Too many things to do and so less time *sigh*
Regards,
Sven
More information about the Lazarus
mailing list