[vtkusers] How to use Hardware acceleration in Windows?

Carlos Capdepon carlos.capdepon at gmail.com
Fri May 20 04:11:26 EDT 2005


Thanks.

I have enabled Hardware acceleration with this trick.
Starts a renderwindow, asks the name of the window, and which device draw it.

//code
#include <windows.h>

	vtkWin32OpenGLRenderWindow *renderWindow = vtkWin32OpenGLRenderWindow::New();
		HDC hdc;
		HWND hwnd;
		renderWindow->Start();
		hwnd=renderWindow->GetWindowId();
		hdc=GetDC(hwnd);
		renderWindow->SetDeviceContext(hdc);
		cout<<renderWindow->ReportCapabilities();
//code

Another questions related:
To enable DoubleBuffer is:
//code
renderWindow->DoubleBufferOn();
//code

How to enable ZBuffer?
How to enable Quadbuffer?



More information about the vtkusers mailing list