pub struct GameCaptureSourceUpdater<'a> { /* private fields */ }
Expand description
Used to update the source this updater was created from. For more details look at docs for the corresponding builder.
Implementations§
Source§impl<'a> GameCaptureSourceUpdater<'a>
impl<'a> GameCaptureSourceUpdater<'a>
Sourcepub fn set_capture_mode(self, capture_mode: ObsGameCaptureMode) -> Self
pub fn set_capture_mode(self, capture_mode: ObsGameCaptureMode) -> Self
Sets the capture mode for the game capture source. Look at doc for ObsGameCaptureMode
Sourcepub fn set_priority(self, priority: ObsWindowPriority) -> Self
pub fn set_priority(self, priority: ObsWindowPriority) -> Self
Window Match Priority
Sourcepub fn set_sli_compatability(self, sli_compatability: bool) -> Self
pub fn set_sli_compatability(self, sli_compatability: bool) -> Self
SLI/Crossfire Capture Mode (Slow)
Sourcepub fn set_capture_cursor(self, capture_cursor: bool) -> Self
pub fn set_capture_cursor(self, capture_cursor: bool) -> Self
Whether the cursor should be captured
Sourcepub fn set_allow_transparency(self, allow_transparency: bool) -> Self
pub fn set_allow_transparency(self, allow_transparency: bool) -> Self
If transparency of windows should be allowed
Sourcepub fn set_premultiplied_alpha(self, premultiplied_alpha: bool) -> Self
pub fn set_premultiplied_alpha(self, premultiplied_alpha: bool) -> Self
Premultiplied Alpha
Sourcepub fn set_limit_framerate(self, limit_framerate: bool) -> Self
pub fn set_limit_framerate(self, limit_framerate: bool) -> Self
Limit capture framerate
Sourcepub fn set_capture_overlays(self, capture_overlays: bool) -> Self
pub fn set_capture_overlays(self, capture_overlays: bool) -> Self
Capture third party overlays (such as steam overlays)
Sourcepub fn set_anti_cheat_hook(self, anti_cheat_hook: bool) -> Self
pub fn set_anti_cheat_hook(self, anti_cheat_hook: bool) -> Self
Use anti-cheat compatibility hook
Sourcepub fn set_hook_rate(self, hook_rate: ObsHookRate) -> Self
pub fn set_hook_rate(self, hook_rate: ObsHookRate) -> Self
Hook rate (Ranging from slow to fastest)
Sourcepub fn set_rgb10a2_space(self, rgb10a2_space: ObsGameCaptureRgbaSpace) -> Self
pub fn set_rgb10a2_space(self, rgb10a2_space: ObsGameCaptureRgbaSpace) -> Self
The color space to capture in
Sourcepub fn set_capture_audio(self, capture_audio: bool) -> Self
pub fn set_capture_audio(self, capture_audio: bool) -> Self
Whether to capture audio from window source (BETA)
When enabled, creates an “Application Audio Capture” source that automatically updates to the currently captured window/application.
Note that if Desktop Audio is configured, this could result in doubled audio.