Banuba SDK
Static Public Member Functions | List of all members
bnb::player_api::opengl_render_target Class Reference
Inheritance diagram for bnb::player_api::opengl_render_target:
bnb::player_api::interfaces::render_target

Static Public Member Functions

static std::shared_ptr< opengl_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. More...
 
virtual void detach (player &player)=0
 Detach render_target from the player. More...
 
virtual void prepare_to_offscreen_render (int32_t width, int32_t height)=0
 Prepare render target to offscreen rendering of the player. More...
 
virtual void prepare_to_screen_render (void *surface)=0
 Prepare render target to screen rendering. More...
 
virtual void set_frame_time_us (uint64_t time_us) noexcept=0
 Set presentation frame time. More...
 
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. More...
 
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. More...
 

Detailed Description

Definition at line 8 of file opengl_render_target.hpp.


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