[vtkusers] vtkgl::GenBuffers
John Biddiscombe
biddisco at cscs.ch
Fri Apr 27 03:54:55 EDT 2007
You need to make sure the extensions are loaded before using them, use
something like this...
//
// Test support for Framebuffers
//
int supports_GL_EXT_framebuffer_object =
extensions->ExtensionSupported("GL_EXT_framebuffer_object");
int supports_GL_ARB_texture_float =
extensions->ExtensionSupported("GL_ARB_texture_float");
int supports_GL_ARB_texture_rectangle =
extensions->ExtensionSupported("GL_ARB_texture_rectangle");
int supports_GL_ARB_color_buffer_float =
extensions->ExtensionSupported("GL_ARB_color_buffer_float");
then...
//
// Set FrameBufferObject flags depending on test results
//
if (!supports_GL_EXT_framebuffer_object ||
!supports_GL_ARB_texture_float ||
!supports_GL_ARB_texture_rectangle ||
!supports_GL_ARB_color_buffer_float)
{
this->FrameBufferExtensionsOK = 0;
}
else {
this->FrameBufferExtensionsOK = 1;
extensions->LoadExtension("GL_EXT_framebuffer_object");
extensions->LoadExtension("GL_ARB_texture_float");
extensions->LoadExtension("GL_ARB_texture_rectangle");
extensions->LoadExtension("GL_ARB_color_buffer_float");
this->InitFrameBuffer();
}
> Hi,
> I cannot access vtkgl::GenBuffers(...) from VTK. This is an OpenGL
> Extension command from (ARB_pixel_buffer_object).
> Access violation...
>
> Has anyone experiences with this?
>
> Thanks,
> Eugen
>
> _______________________________________________
> This is the private VTK discussion list.Please keep messages on-topic.
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
--
John Biddiscombe, email:biddisco @ cscs.ch
http://www.cscs.ch/about/BJohn.php
CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.07
Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
More information about the vtkusers
mailing list