Viewport.getTexture

Returns the viewport's texture. Note: Due to the way OpenGL works, the resulting ViewportTexture is flipped vertically. You can use Image.flipY on the result of Texture.getData to flip it back, for example:

More...
struct Viewport
@nogc nothrow const
getTexture
()

Detailed Description

var img = get_viewport().get_texture().get_data() img.flip_y()

Meta