Enum ggez::conf::Backend [−][src]
Expand description
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
Defaults to OpenGL 3.2, which is supported by basically every machine since 2009 or so (apart from the ones that don’t).
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 (used for SpriteBatch
), but might be
possible.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Backend
impl UnwindSafe for Backend
Blanket Implementations
Mutably borrows from an owned value. Read more