[−][src]Enum ggez::conf::Backend
Possible backends. Currently, only OpenGL and OpenGL ES Core specs are supported, but this lets you specify which to use as well as the version numbers.
Defaults:
Backend::OpenGL { major: 3, minor: 2, }
Variants
OpenGL
Defaults to OpenGL 3.2, which is supported by basically every machine since 2009 or so (apart from the ones that don't).
Fields of OpenGL
OpenGLES
OpenGL ES, defaults to 3.0. Used for phones and other mobile devices. Using something older than 3.0 starts to running into sticky limitations, particularly with instanced drawing, but might be possible.
Fields of OpenGLES
Methods
impl Backend
[src]
pub fn version(self, new_major: u8, new_minor: u8) -> Self
[src]
Set OpenGL version.
pub fn gl(self) -> Self
[src]
Use OpenGL
pub fn gles(self) -> Self
[src]
Use OpenGL ES
Trait Implementations
impl Eq for Backend
[src]
impl Copy for Backend
[src]
impl PartialEq<Backend> for Backend
[src]
impl Clone for Backend
[src]
fn clone(&self) -> Backend
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Backend
[src]
impl From<Backend> for GlBackendSpec
[src]
impl Debug for Backend
[src]
impl Serialize for Backend
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Backend
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Scalar for T where
T: Copy + PartialEq<T> + Any + Debug,
[src]
T: Copy + PartialEq<T> + Any + Debug,
impl<T> Same for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> SetParameter for T
default fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.