The Dot Docs

DotOffscreenBuffer

DotOffscreenBuffer.pas contains a TDotContext descendant class which manages a pbuffer (using WGL_ARB_pbuffer). The interface of the TDotPbuffer class is a slightly extended version of TDotContext's:

  TDotPbuffer = class(TDotContext)
  public
    constructor Create(DC: HDC; w, h: Integer);
    procedure SetPBAttrib(name, value: GLint);
    property PBAttribs[i: Integer]: TDotPFAttribi;
    property Width: Integer;
    property Height: Integer;
  end;

The constructor takes two extra arguments to specify the width and height of the pbuffer. There is also an extra SetPBAttrib() method for setting pbuffer attributes. For a list of available attributes, consult the WGL_ARB_pbuffer specification.

The Delphi OpenGL Toolkit was written by Tom Nuydens.
See main page for disclaimer. For updates, visit Delphi3D.