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,
DeXtr0

http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=42

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.

Nico

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

Thanks all,

the glscissor function was the most effective one for me.

Regards,
DeXtr0