Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::GLFWWindowHandler Class Reference

#include <canvasglfw.h>

+ Inheritance diagram for inviwo::GLFWWindowHandler:

Public Member Functions

 GLFWWindowHandler (Canvas *canvas, const std::string &title, uvec2 dimensions)
 
Canvas::ContextID getContextId () const
 

Static Public Member Functions

static void provideExternalContext (GLFWwindow *sharedContext)
 
static GLFWwindow * sharedContext ()
 
static GLFWwindow * createWindow (const std::string &title, uvec2 dimensions)
 

Public Attributes

GLFWwindow * glWindow_
 

Detailed Description

Helper class for handling the GLFW window and the associated rendering context. This class is required by CanvasGLFW to ensure that the rendering context is still active while CanvasGL is being destructed.

See also
CanvasGLFW

Member Function Documentation

◆ provideExternalContext()

static void inviwo::GLFWWindowHandler::provideExternalContext ( GLFWwindow * sharedContext)
static

Can be used to hand in an initial shared context if GLFW is already set up. Should be called before the GLFW module is registered.


The documentation for this class was generated from the following file: