The Dot Docs

DotRTTBuffer

DotRTTBuffer.pas contains a TDotPbuffer descendant class which allows you to use a pbuffer for rendering to a texture (using WGL_ARB_render_texture):

  TDotRTTBuffer = class(TDotPbuffer)
public
procedure BindImage;
procedure ReleaseImage;
procedure SetCubeMapTargetFace(f: GLenum);
end;

Three new methods are introduced. BindImage() and ReleaseImage() are used to attach the pbuffer to a texture object and to release it again, and SetCubeMapTargetFace() is used to set the target face when rendering to a cube map texture. The argument of SetCubeMapTargetFace() must be one of the GL_TEXTURE_CUBE_MAP_*_ARB tokens.

Please refer to the WGL_ARB_render_texture specifications for more details on how to use the render-to-texture functionality.

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