jtg | afb833d | 1999-08-19 00:55:39 +0000 | [diff] [blame] | 1 | /* showbuffer. h*/ |
| 2 | |
| 3 | /* |
| 4 | * Copy the depth buffer to the color buffer as a grayscale image. |
| 5 | * Useful for inspecting the depth buffer values. |
| 6 | * |
| 7 | * This program is in the public domain. |
| 8 | * |
| 9 | * Brian Paul November 4, 1998 |
| 10 | */ |
| 11 | |
| 12 | |
| 13 | #ifndef SHOWBUFFER_H |
| 14 | #define SHOWBUFFER_H |
| 15 | |
| 16 | |
| 17 | #include <GL/gl.h> |
| 18 | |
| 19 | |
| 20 | |
| 21 | extern void |
| 22 | ShowDepthBuffer( GLsizei winWidth, GLsizei winHeight, |
| 23 | GLfloat zBlack, GLfloat zWhite ); |
| 24 | |
| 25 | |
| 26 | extern void |
| 27 | ShowAlphaBuffer( GLsizei winWidth, GLsizei winHeight ); |
| 28 | |
| 29 | |
| 30 | extern void |
| 31 | ShowStencilBuffer( GLsizei winWidth, GLsizei winHeight, |
| 32 | GLfloat scale, GLfloat bias ); |
| 33 | |
| 34 | |
| 35 | |
| 36 | #endif |