Struct cogl::OnscreenTemplate[][src]

pub struct OnscreenTemplate(_, _);

Implementations

impl OnscreenTemplate[src]

pub fn new(swap_chain: &SwapChain) -> OnscreenTemplate[src]

pub fn set_samples_per_pixel(&self, n: i32)[src]

Requires that any future CoglOnscreen framebuffers derived from this template must support making at least n samples per pixel which will all contribute to the final resolved color for that pixel.

By default this value is usually set to 0 and that is referred to as “single-sample” rendering. A value of 1 or greater is referred to as “multisample” rendering.

<note>There are some semantic differences between single-sample rendering and multisampling with just 1 point sample such as it being redundant to use the Framebuffer::resolve_samples and Framebuffer::resolve_samples_region apis with single-sample rendering.</note>

n

The minimum number of samples per pixel

pub fn set_stereo_enabled(&self, enabled: bool)[src]

Sets whether future Onscreen framebuffers derived from this template are attempted to be created with both left and right buffers, for use with stereo display. If the display system does not support stereo, then creation of the framebuffer will fail.

enabled

Whether framebuffers are created with stereo buffers

pub fn set_swap_throttled(&self, throttled: bool)[src]

Requests that any future Onscreen framebuffers derived from this template should enable or disable swap throttling according to the given throttled argument.

throttled

Whether throttling should be enabled

Trait Implementations

impl Clone for OnscreenTemplate[src]

impl Debug for OnscreenTemplate[src]

impl Display for OnscreenTemplate[src]

impl Eq for OnscreenTemplate[src]

impl Hash for OnscreenTemplate[src]

impl IsA<Object> for OnscreenTemplate[src]

impl Ord for OnscreenTemplate[src]

impl<T: ObjectType> PartialEq<T> for OnscreenTemplate[src]

impl<T: ObjectType> PartialOrd<T> for OnscreenTemplate[src]

impl StaticType for OnscreenTemplate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.