picogl.renderer.readback

A module for OpenGL framebuffer readback operations.

This module provides functionalities for reading pixel and depth values from the OpenGL framebuffer using the glReadPixels function. It supports depth component sampling and utility methods for acquiring data.

Classes: - GLReadback: Provides static and instance methods for reading depth data.

Classes

GLReadback

gl Readback class

Module Contents

class picogl.renderer.readback.GLReadback[source]

gl Readback class

static read_depth(x, y, w, h)[source]
read_pixels(depth: numpy.ndarray[Any, numpy.dtype[Any]] | numpy.ndarray[Any, numpy.dtype[numpy.generic]], x: int, y_gl: int)[source]