OpenGL Library for Delphi,
maintained by Eric Grange,
based on Mike Lischke's GLScene.

 

Reference Manual - TGLMemoryViewer

image

Allows a second camera to be placed in a scene and a screenshot from that camera can be converted to a texture. The texture can be applied to a scene object giving the object a potentially reflective looking surface (depending on the position of the second camera). The TGLMemoryViewer class has camera property which can be positioned anywhere in a scene just like a normal camera. It also has a buffer property so it is possible to change fog etc in the memory viewer.

Important TGLMemoryViewer properties:
camera : TGLCamera
The camera that takes the screenshot
buffer : TGLSceneBuffer
Can set different buffer settings to the scenes TGLSceneViewer. For example different fog.

Important TGLMemoryViewer methods:
render: Take a screenshot
copytotexture(atexture : TGLTexture)
Copy the current screenshot from the camera to the texture

Demo: CVS/Demos/rendering/memviewer

Unit: GLScene

Descends from TGLNonVisualViewer.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0418 seconds