[Lazarus] Get TOpenGLControl as Bitmap

Reimar Grabowski reimgrab at web.de
Thu Oct 15 13:44:15 CEST 2015


On Thu, 15 Oct 2015 03:39:10 -0700
Aradeonas <aradeonas at operamail.com> wrote:

> Im using BGRABitmap and it work great with OpenGL but I needed to get
> the bitmap, do the blur and made texture and again paint it with OpenGL.
> Is there any better other way?
Yes.
Render your scene to a texture.
Render a full screen quad textured with your scene texture using a blur shader (or two shaders (a horizontal and a vertical one) as it's faster).
For details google "opengl gaussian blur" or "opengl post-processing".

R.





More information about the Lazarus mailing list