Struct qt_gui::q_surface_format::OpenGLContextProfile
source · pub struct OpenGLContextProfile(/* private fields */);
Expand description
This enum is used to specify the OpenGL context profile, in conjunction with QSurfaceFormat::setMajorVersion() and QSurfaceFormat::setMinorVersion().
C++ enum: QSurfaceFormat::OpenGLContextProfile
.
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.
Implementations§
source§impl OpenGLContextProfile
impl OpenGLContextProfile
sourcepub const NoProfile: OpenGLContextProfile = _
pub const NoProfile: OpenGLContextProfile = _
OpenGL version is lower than 3.2. For 3.2 and newer this is same as CoreProfile. (C++ enum variant: NoProfile = 0
)
sourcepub const CoreProfile: OpenGLContextProfile = _
pub const CoreProfile: OpenGLContextProfile = _
Functionality deprecated in OpenGL version 3.0 is not available. (C++ enum variant: CoreProfile = 1
)
sourcepub const CompatibilityProfile: OpenGLContextProfile = _
pub const CompatibilityProfile: OpenGLContextProfile = _
Functionality from earlier OpenGL versions is available. (C++ enum variant: CompatibilityProfile = 2
)
Trait Implementations§
source§impl Clone for OpenGLContextProfile
impl Clone for OpenGLContextProfile
source§fn clone(&self) -> OpenGLContextProfile
fn clone(&self) -> OpenGLContextProfile
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OpenGLContextProfile
impl Debug for OpenGLContextProfile
source§impl From<OpenGLContextProfile> for c_int
impl From<OpenGLContextProfile> for c_int
source§fn from(value: OpenGLContextProfile) -> Self
fn from(value: OpenGLContextProfile) -> Self
source§impl From<i32> for OpenGLContextProfile
impl From<i32> for OpenGLContextProfile
source§impl PartialEq for OpenGLContextProfile
impl PartialEq for OpenGLContextProfile
source§fn eq(&self, other: &OpenGLContextProfile) -> bool
fn eq(&self, other: &OpenGLContextProfile) -> bool
self
and other
values to be equal, and is used
by ==
.