#[repr(transparent)]pub struct SDL_GLProfile(pub Sint32);Expand description
Possible values to be set for the SDL_GL_CONTEXT_PROFILE_MASK attribute.
§Availability
This datatype is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
CORE | SDL_GL_CONTEXT_PROFILE_CORE | OpenGL Core Profile context |
COMPATIBILITY | SDL_GL_CONTEXT_PROFILE_COMPATIBILITY | OpenGL Compatibility Profile context |
ES | SDL_GL_CONTEXT_PROFILE_ES | GLX_CONTEXT_ES2_PROFILE_BIT_EXT |
Tuple Fields§
§0: Sint32Implementations§
Source§impl SDL_GLProfile
impl SDL_GLProfile
Trait Implementations§
Source§impl BitAnd for SDL_GLProfile
impl BitAnd for SDL_GLProfile
Source§impl BitAndAssign for SDL_GLProfile
impl BitAndAssign for SDL_GLProfile
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for SDL_GLProfile
impl BitOr for SDL_GLProfile
Source§impl BitOrAssign for SDL_GLProfile
impl BitOrAssign for SDL_GLProfile
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for SDL_GLProfile
impl BitXor for SDL_GLProfile
Source§impl BitXorAssign for SDL_GLProfile
impl BitXorAssign for SDL_GLProfile
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for SDL_GLProfile
impl Clone for SDL_GLProfile
Source§fn clone(&self) -> SDL_GLProfile
fn clone(&self) -> SDL_GLProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_GLProfile
Available on crate feature debug-impls only.
impl Debug for SDL_GLProfile
Available on crate feature
debug-impls only.Source§impl Default for SDL_GLProfile
impl Default for SDL_GLProfile
Source§fn default() -> SDL_GLProfile
fn default() -> SDL_GLProfile
Returns the “default value” for a type. Read more
Source§impl From<SDL_GLProfile> for Sint32
impl From<SDL_GLProfile> for Sint32
Source§fn from(value: SDL_GLProfile) -> Self
fn from(value: SDL_GLProfile) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_GLProfile
Available on crate feature metadata only.
impl GroupMetadata for SDL_GLProfile
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_GLProfile
impl Hash for SDL_GLProfile
Source§impl Not for SDL_GLProfile
impl Not for SDL_GLProfile
Source§impl PartialEq<SDL_GLProfile> for Sint32
impl PartialEq<SDL_GLProfile> for Sint32
Source§impl PartialEq<i32> for SDL_GLProfile
impl PartialEq<i32> for SDL_GLProfile
Source§impl PartialEq for SDL_GLProfile
impl PartialEq for SDL_GLProfile
impl Copy for SDL_GLProfile
impl Eq for SDL_GLProfile
impl StructuralPartialEq for SDL_GLProfile
Auto Trait Implementations§
impl Freeze for SDL_GLProfile
impl RefUnwindSafe for SDL_GLProfile
impl Send for SDL_GLProfile
impl Sync for SDL_GLProfile
impl Unpin for SDL_GLProfile
impl UnwindSafe for SDL_GLProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more