[vtkusers] vtkOpenGLGPUVolumeRayCastMapper on a specific GPU

chasank chasank at gmail.com
Tue May 31 12:36:30 EDT 2011


Create an OpenGL context on your code, then,

gl_vendor = (const char *) (glGetString(GL_VENDOR));
gl_model = (const char *) (glGetString(GL_RENDERER));
if ( strstr(gl_vendor, "ATI" ) != 0 )
{
    // make your arrangement		
}
else if ( strstr(gl_vendor, "NVIDIA") != 0)
{
    // make your arrangement		
}

GL_VENDOR just returns the name of the GPU vendor while GL_RENDERER returns
the name of the GPU card.

--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkOpenGLGPUVolumeRayCastMapper-on-a-specific-GPU-tp4437454p4442569.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list