[][src]Struct qt_gui::q_surface_format::OpenGLContextProfile

#[repr(transparent)]pub struct OpenGLContextProfile(_);

This enum is used to specify the OpenGL context profile, in conjunction with QSurfaceFormat::setMajorVersion() and QSurfaceFormat::setMinorVersion().

C++ enum: QSurfaceFormat::OpenGLContextProfile.

C++ documentation:

This enum is used to specify the OpenGL context profile, in conjunction with QSurfaceFormat::setMajorVersion() and QSurfaceFormat::setMinorVersion().

Profiles are exposed in OpenGL 3.2 and above, and are used to choose between a restricted core profile, and a compatibility profile which might contain deprecated support functionality.

Note that the core profile might still contain functionality that is deprecated and scheduled for removal in a higher version. To get access to the deprecated functionality for the core profile in the set OpenGL version you can use the QSurfaceFormat format option QSurfaceFormat::DeprecatedFunctions.

Methods

impl OpenGLContextProfile[src]

pub fn to_int(&self) -> c_int[src]

impl OpenGLContextProfile[src]

pub const NoProfile: OpenGLContextProfile[src]

OpenGL version is lower than 3.2. For 3.2 and newer this is same as CoreProfile. (C++ enum variant: NoProfile = 0)

pub const CoreProfile: OpenGLContextProfile[src]

Functionality deprecated in OpenGL version 3.0 is not available. (C++ enum variant: CoreProfile = 1)

pub const CompatibilityProfile: OpenGLContextProfile[src]

Functionality from earlier OpenGL versions is available. (C++ enum variant: CompatibilityProfile = 2)

Trait Implementations

impl Clone for OpenGLContextProfile[src]

impl Copy for OpenGLContextProfile[src]

impl Debug for OpenGLContextProfile[src]

impl Eq for OpenGLContextProfile[src]

impl From<OpenGLContextProfile> for c_int[src]

impl From<i32> for OpenGLContextProfile[src]

impl PartialEq<OpenGLContextProfile> for OpenGLContextProfile[src]

impl StructuralEq for OpenGLContextProfile[src]

impl StructuralPartialEq for OpenGLContextProfile[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<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for 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.