HDebugZBuffer
Functions
void |
|
void |
|
void |
|
void |
Detailed Description
-
class HDebugZBuffer
HDebugZBuffer is a intended for debugging purposes only. When activated, it pops up a standalone HOOPS window in which it displays the contents of the view’s z buffer. It is pretty rough, but does the job. The z values are scanned for min and max, with background z values excluded. The values are then mapped to a linear grey scale ramp with black at the closest value and white at the furthest. The image is also upside down.
Public Functions
-
HDebugZBuffer(HBaseView *view)
Construct an HDebugZBuffer object.
- Parameters
view – A pointer the the HBaseView object you want to associate with the object.
-
virtual ~HDebugZBuffer()
The destructor.
-
void OpenglFinishPicture(HIC_Rendition const *nr, bool swap_buffers)
This method captures the z buffer and converts it to a grey scale image.
-
void Update()
This method forces a full update in the standalone window.
Public Static Functions
-
static void RegisterCallbacks()
A standard routine to associate callback names with their function pointers though setting the callbacks comes later.
-
static void ogl_finish_picture(HIC_Rendition const *nr, bool swap_buffers)
A callback for finish picture to capture the z buffer. It simply calls through to OpenglFinishPicture/
-
HDebugZBuffer(HBaseView *view)