habitat_sim.gfx.RenderTarget class

Render target

See esp::gfx::RenderTarget for more information.

Methods

def blit_rgba_to_default(self, /) -> None
def read_frame_depth(self, arg0: magnum.MutableImageView2D, /) -> None
def read_frame_depth_gpu(self, arg0: int, /) -> None
def read_frame_object_id(self, arg0: magnum.MutableImageView2D, /) -> None
def read_frame_object_id_gpu(self, arg0: int, /) -> None
def read_frame_rgba(self, arg0: magnum.MutableImageView2D, /) -> None
Reads RGBA frame into passed img in uint8 byte format
def read_frame_rgba_gpu(self, arg0: int, /) -> None
def render_enter(self, /) -> None
def render_exit(self, /) -> None

Special methods

def __enter__(self, /) -> RenderTarget
def __exit__(self, arg0: object, arg1: object, arg2: object, /) -> None

Method documentation

def habitat_sim.gfx.RenderTarget.read_frame_rgba(self, arg0: magnum.MutableImageView2D, /) -> None

Reads RGBA frame into passed img in uint8 byte format

The argument is a numpy.ndarray to populate with frame bytes. Memory is not allocated to this array. Assume that m = height and n = width * 4.