Sign in to follow this  
KumGame07

Framebuffer size

Recommended Posts

Hi Gang Can anyone explain me the relationship between the framebuffer size, display resolution and viewport dimension ? For instance if I have a viewport of dimension 400 x 300 and my display resolution is 800 x 600 and I use ARGB mode (32 bpp), what will be the size of framebuffer ? Regards & Thanks KumGame

Share this post


Link to post
Share on other sites
The size of the frame buffer is not defined by OpenGL, but by how the driver chose to implement the frame buffer. If it uses one frame buffer per window, then the frame buffer must be at least as big as the window to cover all pixels of the window. If it uses a global unified frame buffer (shared among all windows), it must be at least as large as the bounding rectangle around all windows to cover all pixels of all windows, or a fixed sized as large as the screen.

The viewport has nothing to do with the frame buffer size. It is only uses to specify the transformation from normalized device coordinates (the coordinate system after projection and perspective division) into window coordinates. It basically specifies what part of the window you're drawing to.

Share this post


Link to post
Share on other sites
Thanks a lot for the reply Brother Bob. Now the confusion is whether the implementation uses one frame buffer per window or a common buffer for all the windows. Is there any way to know this ? It doesn't affect any of my current work or something. But I was just wondering about how will this be implemented!! Anyways, thanks again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this