Skip to content

image

FreeBodyEngine.graphics.gl44.image #

GL44Image(data) #

Bases: Image

The GL 4.4 implementation of Image - identical to GLImage (graphics/gl33/image.py), since exposing a Texture's pixel data doesn't involve anything backend-specific beyond the Texture/TextureManager machinery both backends already share.

Wraps the given texture-backed data via the base Image constructor.

get_data() #

Returns this image's raw pixel data, read back from its backing Texture.

get_size() #

Returns this image's UV rect (the sub-region of its backing texture/atlas this image occupies), not literal pixel dimensions.