2

In this example code it deals with framebuffers before setting up the context.

I've read the man pages of the functions, but I still don't understand exactly what's going on.

So my question is, what exactly is a framebuffer in GLX and how significant is configuring it?

Pubby
  • 51,882
  • 13
  • 139
  • 180

1 Answers1

2

A framebuffer is an area of memory that holds a displayable image. You need one when creating an OpenGL context so that OpenGL has a place to store the image it renders.

Wyzard
  • 33,849
  • 3
  • 67
  • 87
  • Ah, makes sense, although what about the configuration? – Pubby Mar 18 '12 at 14:39
  • 1
    @Pubby: The configuration tells GLX what kind of colours you'd like to draw on it, if you want it to be compositable (transparency effects) etc. Setting up a framebuffer is like an artist preparing his canvas. – datenwolf Mar 18 '12 at 14:47