The Khronos Group - a non-profit industry consortium to develop, publish and promote open standard, royalty-free media authoring and acceleration standards for desktop and handheld devices, combined with conformance qualification programs for platform and device interoperability.

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

how to make background of opengl window transparent

Hi,
I am making an opengles 2.0 application where i need to make the background of the window transparent and then show a blended object over it. Please can someone tell me how can i make window background transparent. The appearance i want is that it sud appear as if only a blended object is in front.
Any help will be greatly appreciated. Thanks in advance.
With regards,
Aditya

Re: how to make background of opengl window transparent

Just use glClearColor(r, g, b, 0.0f). Then there needs to be some blending happening external to the application window, either enabling source alpha blending on the layer, or source alpha blending on the window, managed by the windowing system.

Re: how to make background of opengl window transparent

Thanks for the reply.. I am new to opengl. So please can u tell what did u mean by this statement. "there needs to be some blending happening external to the application window, either enabling source alpha blending on the layer" ...Which layer are u talking about.
Or Do u i need to create a mini windowing system (window manager) of my own ??
Thanks in advance for the help.