15 #ifndef vtkWin32OpenGLDXRenderWindow_h
16 #define vtkWin32OpenGLDXRenderWindow_h
18 #include "vtkRenderingOpenGL2Module.h"
22 struct ID3D11Texture2D;
24 VTK_ABI_NAMESPACE_BEGIN
110 HANDLE DeviceHandle = 0;
112 unsigned int TextureId = 0;
114 HANDLE GLSharedTextureHandle = 0;
116 LUID AdapterId = { 0, 0 };
118 VTK_ABI_NAMESPACE_END
a simple class to control print indentation
VTK render window providing OpenGL-DirectX interop.
void Unlock()
Lock/Unlock the shared texture.
ID3D11Device * GetDevice()
Returns the D3D device associated to this render window.
vtkWin32OpenGLDXRenderWindow()
void Initialize() override
Overridden to create the D3D device, context and texture.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkWin32OpenGLDXRenderWindow() override
void Lock()
Lock/Unlock the shared texture.
void SetAdapterId(LUID uid)
Specify the DGXI adapter to be used for initialization.
void SetMultiSamples(int samples) override
Overridden to update the internal D3D shared texture.
void SetSize(int width, int height) override
Overridden to resize the internal D3D shared texture.
void UnregisterSharedTexture()
Register/Unregister the OpenGL texture designated by textureHandle with this render window internal D...
ID3D11Texture2D * GetD3DSharedTexture()
Returns the D3D texture shared with this render window.
void BlitToTexture(ID3D11Texture2D *texture)
Blits the internal D3D shared texture into texture.
static vtkWin32OpenGLDXRenderWindow * New()
void RegisterSharedTexture(unsigned int textureHandle)
Register/Unregister the OpenGL texture designated by textureHandle with this render window internal D...