[][src]Enum beryllium::GLattr

#[repr(i32)]
pub enum GLattr {
    RedSize,
    GreenSize,
    BlueSize,
    AlphaSize,
    BufferSize,
    DoubleBuffer,
    DepthSize,
    StencilSize,
    AccumRedSize,
    AccumGreenSize,
    AccumBlueSize,
    AccumAlphaSize,
    Stereo,
    MultisampleBuffers,
    MultisampleSamples,
    AcceleratedVisuals,
    ContextMajorVersion,
    ContextMinorVersion,
    ContextFlags,
    ContextProfileMask,
    ShareWithCurrentContext,
    FramebufferSRGBCapable,
    ContextReleaseBehavior,
}

Attributes that you can use to control OpenGL's loading and context creation process.

Variants

RedSize

the minimum number of bits for the red channel of the color buffer; defaults to 3

GreenSize

the minimum number of bits for the green channel of the color buffer; defaults to 3

BlueSize

the minimum number of bits for the blue channel of the color buffer; defaults to 2

AlphaSize

the minimum number of bits for the alpha channel of the color buffer; defaults to 0

BufferSize

the minimum number of bits for frame buffer size; defaults to 0

DoubleBuffer

whether the output is single or double buffered; defaults to double buffering on

DepthSize

the minimum number of bits in the depth buffer; defaults to 16

StencilSize

the minimum number of bits in the stencil buffer; defaults to 0

AccumRedSize

the minimum number of bits for the red channel of the accumulation buffer; defaults to 0

AccumGreenSize

the minimum number of bits for the green channel of the accumulation buffer; defaults to 0

AccumBlueSize

the minimum number of bits for the blue channel of the accumulation buffer; defaults to 0

AccumAlphaSize

the minimum number of bits for the alpha channel of the accumulation buffer; defaults to 0

Stereo

whether the output is stereo 3D; defaults to off

MultisampleBuffers

the number of buffers used for multisample anti-aliasing; defaults to 0; see Remarks for details

MultisampleSamples

the number of samples used around the current pixel used for multisample anti-aliasing; defaults to 0; see Remarks for details

AcceleratedVisuals

set to 1 to require hardware acceleration, set to 0 to force software rendering; defaults to allow either

ContextMajorVersion

OpenGL context major version

ContextMinorVersion

OpenGL context minor version

ContextFlags

some combination of 0 or more of elements of the SDL_GLContextFlag enumeration; defaults to 0

ContextProfileMask

type of GL context (Core, Compatibility, ES), default value depends on platform

ShareWithCurrentContext

OpenGL context sharing; defaults to 0

FramebufferSRGBCapable

requests sRGB capable visual; defaults to 0

ContextReleaseBehavior

sets context the release behavior; defaults to 1

Trait Implementations

impl PartialEq<GLattr> for GLattr[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl Clone for GLattr[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Eq for GLattr[src]

impl Copy for GLattr[src]

impl Debug for GLattr[src]

Auto Trait Implementations

impl Send for GLattr

impl Unpin for GLattr

impl Sync for GLattr

impl UnwindSafe for GLattr

impl RefUnwindSafe for GLattr

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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