Skip to content

image

FreeBodyEngine.graphics.webgl.image #

WebGL2Image(data) #

Bases: Image

The WebGL2 implementation of Image - a thin wrapper reading its pixel data/rect straight off the underlying WebGL2TextureManager-owned Texture, same as GLImage.

get_data() #

Returns the wrapped texture's raw pixel data.

get_size() #

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