GLArea.hasDepthBuffer

bool hasDepthBuffer() @property

Get hasDepthBuffer property.

Returns

If set to true the widget will allocate and enable a depth buffer for the

target framebuffer.

Setting this property will enable GL's depth testing as a side effect. If you don't need depth testing, you should call glDisable(GL_DEPTH_TEST) in your GtkGLArea::render handler.

void hasDepthBuffer(bool propval) @property

Set hasDepthBuffer property.

Parameters

propvalIf set to true the widget will allocate and enable a depth buffer for the target framebuffer. Setting this property will enable GL's depth testing as a side effect. If you don't need depth testing, you should call glDisable(GL_DEPTH_TEST) in your GtkGLArea::render handler.