Struct dgl::ContextBuilder
[−]
[src]
pub struct ContextBuilder<'a> { /* fields omitted */ }
OpenGL context builder.
pub struct ContextBuilder<'a> { /* fields omitted */ }
OpenGL context builder.
impl<'a> ContextBuilder<'a>
[src]fn api(&self) -> Api
fn build(&self) -> Result<Context>
fn config(&self) -> Option<&Config>
fn display(&self) -> &'a Display
fn profile(&self) -> Option<Profile>
fn version(&self) -> Option<Version>
fn with_compatibility_profile(self) -> ContextBuilder<'a>
fn with_config<T: AsRef<Config>>(self, config: T) -> ContextBuilder<'a>
fn with_core_profile(self) -> ContextBuilder<'a>
fn with_profile(self, profile: Profile) -> ContextBuilder<'a>
fn with_version<V: Into<Version>>(self, version: V) -> ContextBuilder<'a>