VB.NET和OpenGL视口 [英] VB.NET and OpenGL Viewports

查看:93
本文介绍了VB.NET和OpenGL视口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我回来了,还有另一个问题!!!

因此,我最近学习了如何在一个窗口中制作各种视口.
但是令我困惑的是:我需要为每个视口绘制场景吗?"
还是我做错了什么?

是为每个视口绘制场景的常规程序吗?

谢谢
Videep

Hello Everyone,

I am back with yet another question!!!

So I recently learnt how to make various viewports in one window.
But what confuses me is : "Do I need to draw the scene for every viewport?"
or I am doing something wrong?

Is it the regular procedure to draw the scene for every viewport?

Thanks
Videep

推荐答案

我猜您的窗口包含不同的视口,并且您不想为每帧重绘所有图像.

通常,在每个渲染中,我们使用glClear()调用清除后台缓冲区.
因此,我们必须重新绘制所有场景.您必须重新绘制所有视口.

如果要清除视口而不清除其外部数据,则可以使用glScissor()函数.

I guess your window consists of different viewports, and you don''t want to redraw all image for each frame.

Normally in each rendering, we clears the back buffer with glClear() call.
Therefore we have to redraw all the scene again. In your case you have to redraw all viewports.

If you want to clear a viewport without clearing the data outside of it, you can use glScissor() function.

void glScissor(	GLint  	x,
 	GLint  	y,
 	GLsizei  	width,
 	GLsizei  	height);


这篇关于VB.NET和OpenGL视口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆