Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SbGlContextHelper.h File Reference
#include <Inventor/SbBase.h>
#include <vector>

Go to the source code of this file.

Classes

class  SbGLShareContext
 Class encapsulating information about an OpenGL context: a handle on an OpenGL context and its id. More...
 

Namespaces

namespace  SbGlContextHelper
 Platform indepent functions for OpenGL context handling.
 

Typedefs

typedef ::Display * SbGlContextHelper::Display
 
typedef GLXContext SbGlContextHelper::GLContext
 
typedef void * SbGlContextHelper::VisualInfo
 
typedef GLXDrawable SbGlContextHelper::Drawable
 

Functions

GLContext SbGlContextHelper::getCurrentContext ()
 Return the current active context.
 
Display SbGlContextHelper::getCurrentDisplay ()
 Return the current active display.
 
Drawable SbGlContextHelper::getCurrentDrawable ()
 Return the current active drawable.
 
bool SbGlContextHelper::isValidDisplay (Display dpy)
 Return true if the specified display is valid.
 
VisualInfo SbGlContextHelper::getWindowVisualInfo (Display dpy, Drawable drawable)
 Returns the VisualInfo used for the specified drawable.
 
VisualInfo SbGlContextHelper::getWindowVisualInfo (Display dpy, Drawable drawable, GLContext ctx)
 Returns the VisualInfo used for the specified drawable.
 
void SbGlContextHelper::releaseVisualInfo (VisualInfo visualInfo)
 Release a VisualInfo returned by getWindowVisualInfo()
 
GLContext SbGlContextHelper::createContext (Display dpy, VisualInfo vis, GLContext shareList, bool direct)
 Create a new context.
 
bool SbGlContextHelper::destroyContext (Display dpy, GLContext ctx)
 Destroy given context.
 
bool SbGlContextHelper::makeCurrent (Display dpy, Drawable drawable, GLContext ctx)
 Make given context current.
 
SoINTERNAL GLContext SbGlContextHelper::createContextAttribs (Display dpy, VisualInfo vis, GLContext shareList, bool direct, const std::vector< int > &attribs)
 Create a new context.