Multiple viewports

Hi All,

Does anybody know if it’s possible to define multiple viewports in 1 application ?

I want to show different stuff in different parts of the screen.

I defined another viewport but all the things that were visible in my first viewport are getting cleared :frowning:

Thanks for helping me out already,

The clear command clears the whole framebuffer, it’s not restricted to the current viewport.

To clear a part of your window, just draw a quad and set the front color to your desired clearcolor.


you can also use glscissor to restrict the area affected by glclear

Thanks all,

the glscissor function was the most effective one for me.