[vtkusers] vtkOpenGLTexture GetIndex
Ken Martin
ken.martin at kitware.com
Tue Nov 1 08:54:41 EDT 2016
I'm guessing this is with the OpenGL1 backend. Looking at the code it looks
like it gets set when Load is called which in turn is called by Render. So
when the texture is rendered it will be set. Prior to then it looks like it
is initialized to zero.
On Mon, Oct 31, 2016 at 2:28 PM, Terry Farnham <terry.farnham at quanergy.com>
wrote:
> I am very new to using vtk. I am interested in getting access to the
> underlying OpenGL texture index from vtkOpenGLTexture. Currently, when I
> initially create and load a texture, the call to GetIndex() always returns
> zero. After rendering a frame or more, the GetIndex() appears to become
> valid and then I can make my OpenGL calls using it. Is there an event that
> indicates when this index becomes valid, or is there some other way to know
> exactly when glGenTextures occurs so I can make my modifications?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
--
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971
This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee. Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message. Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161101/19205c46/attachment.html>
More information about the vtkusers
mailing list