Struct cat_engine_basement::windows::OpenGLRenderContext [−][src]
pub struct OpenGLRenderContext { /* fields omitted */ }
Implementations
pub fn new(
window: &Window,
attributes: OpenGLRenderContextAttributes
) -> Result<OpenGLRenderContext, WinError>
Makes given context current.
If there’s several contexts (for example, for several windows), they can be switched with this function.
Делает данный контекст текущим.
Если создано несколько контекстов (для нескольких окон, например), то их можно переключать с помощью этой функции.