Skip to content

image

FreeBodyEngine.graphics.gl33.image #

GLImage(data) #

Bases: Image

The GL 3.3 implementation of Image: a thin wrapper that reads its pixel data and rect straight off the underlying GLTextureManager-owned Texture rather than holding any separate GPU state of its own.

Forwards data (the Texture this image wraps) to Image.init, which stores it as self.texture.

get_data() #

Returns the wrapped texture's raw pixel data (see Texture.get_image_data).

get_size() #

Returns the wrapped texture's UV rect (x, y, w, h).