libobs: Add obs_render_main_texture
(Note: This commit also modifies UI and test) This makes it so that main preview panes are rendered with the main output texture rather than re-rendering the main view. The view will render all objects again, whereas the output texture will be a single texture render of the same exact thing. Also fixes some abnormal artifacting when scaling the main preview pane.
This commit is contained in:
@@ -57,7 +57,7 @@ display, then you must assign a draw callback with
|
||||
callback, call :c:func:`obs_display_remove_draw_callback()` similarly.
|
||||
|
||||
When drawing, to draw the main preview window (if any), call
|
||||
:c:func:`obs_render_main_view()`. If you need to render a specific
|
||||
:c:func:`obs_render_main_texture()`. If you need to render a specific
|
||||
source on a secondary display, you can increment its "showing" state
|
||||
with :c:func:`obs_source_inc_showing()` while it's showing in the
|
||||
secondary display, draw it with :c:func:`obs_source_video_render()` in
|
||||
|
@@ -380,6 +380,15 @@ Video, Audio, and Graphics
|
||||
|
||||
Renders the main view.
|
||||
|
||||
Note: This function is deprecated.
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: void obs_render_main_texture(void)
|
||||
|
||||
Renders the main output texture. Useful for rendering a preview pane
|
||||
of the main output.
|
||||
|
||||
---------------------
|
||||
|
||||
.. function:: void obs_set_master_volume(float volume)
|
||||
|
Reference in New Issue
Block a user