Banuba SDK
Loading...
Searching...
No Matches
bnb::player_api::metal_render_target Class Reference
Inheritance diagram for bnb::player_api::metal_render_target:
bnb::player_api::interfaces::render_target

Static Public Member Functions

static std::shared_ptr< metal_render_targetcreate ()

Additional Inherited Members

Public Member Functions inherited from bnb::player_api::interfaces::render_target
virtual ~render_target ()=default
 Destroy render_target and release resources.
virtual void attach (player &player)=0
 Attach render_target to the player.
virtual void detach (player &player)=0
 Detach render_target from the player.
virtual void prepare_to_offscreen_render (int32_t width, int32_t height)=0
 Prepare render target to offscreen rendering of the player.
virtual void prepare_to_screen_render (void *surface)=0
 Prepare render target to screen rendering.
virtual void set_frame_time_us (uint64_t time_us) noexcept=0
 Set presentation frame time.
virtual uint64_t get_frame_time_us () const noexcept=0
 Get frame time microseconds.
virtual int32_t get_render_width () const noexcept=0
 Get render surface size width.
virtual int32_t get_render_height () const noexcept=0
 Get render surface size height.
virtual texture_t get_output_texture () const noexcept=0
 Returns the drawn texture.
virtual void present (int32_t left, int32_t top, int32_t width, int32_t height, const float *const mat4)=0
 Draw the frame on the prepared surface.

Detailed Description

Definition at line 13 of file metal_render_target.hpp.


The documentation for this class was generated from the following file: