Struct gfx_device_gl::Info
[−]
[src]
pub struct Info { pub platform_name: PlatformName, pub version: Version, pub shading_language: Version, pub extensions: HashSet<&'static str>, }
OpenGL implementation information
Fields
platform_name: PlatformName
The platform identifier
version: Version
The OpenGL API vesion number
shading_language: Version
The GLSL vesion number
extensions: HashSet<&'static str>
The extensions supported by the implementation
Methods
impl Info
[src]
pub fn is_version_supported(&self, major: u32, minor: u32) -> bool
[src]
pub fn is_embedded_version_supported(&self, major: u32, minor: u32) -> bool
[src]
pub fn is_extension_supported(&self, s: &'static str) -> bool
[src]
Returns true
if the implementation supports the extension
pub fn is_version_or_extension_supported(
&self,
major: u32,
minor: u32,
ext: &'static str
) -> bool
[src]
&self,
major: u32,
minor: u32,
ext: &'static str
) -> bool