what's the meaning of the last parameter of "wglBindTexImageARB()"

the parameter has two values,what’s the meaning of them?

Originally posted by pango:
the parameter has two values,what’s the meaning of them?

That parameter is for binding a part of a buffer, like the front or back buffer on a double buffered pbuffer. You can also bind aux buffers and stereo buffers (front_left, front_right, back_left, back_right).

As NitroGL said it’s for selecting the buffer that the texture will be “drawn from” when you are using the pbuffers contents as a texture. The spec/extension registry doc is rather difficult to read (IMO).

This document (from nVidia) is quite useful…

Click here