VTK  9.0.20200808
Functions
vtkTestOpenGLVersion.h File Reference
#include <windows.h>
Include dependency graph for vtkTestOpenGLVersion.h:

Go to the source code of this file.

Functions

int HandleOpenGL32Issues (const char *pathToTestOpenGLExecutable, const char *mesaLibPath)
 This header file is designed to be included into your program to support delayed loading of opengl and if needed use of Mesa in cases where the users computer does not support OpenGL 3.2 natively. More...
 

Function Documentation

◆ HandleOpenGL32Issues()

int HandleOpenGL32Issues ( const char *  pathToTestOpenGLExecutable,
const char *  mesaLibPath 
)

This header file is designed to be included into your program to support delayed loading of opengl and if needed use of Mesa in cases where the users computer does not support OpenGL 3.2 natively.

To use this class you must

1) Build VTK with the advanced cmake option VTK_USE_OPENGL_DELAYED_LOAD turned on.

2) Include this file in your application and call HandleOpenGL32Issues before you do any rendering or anything that would cause opengl to be used. Ideally do this right at the beginning of your program.

3) Make sure you include vtkTestOpenGLVersion.exe with your application and pass the fullpath to it as the first argument to HandleOpenGL32Issues

4) Make sure you include the Mesa libraries with your application. Typically this means opengl32.dll swrAVX.dll swrAVX2.dll and graw.dll. Pass the path to these libraries as the second argument to HandleOpenGL32Issues

Definition at line 41 of file vtkTestOpenGLVersion.h.