26 #ifndef vtkWin32OpenGLRenderWindow_h
27 #define vtkWin32OpenGLRenderWindow_h
32 #include "vtkWindows.h"
44 virtual void Start(
void);
50 virtual void WindowInitialize(
void);
56 virtual void Initialize(
void);
71 virtual void PrefFullScreen(
void);
115 virtual HWND GetWindowId();
133 void SetContextId(HGLRC);
134 void SetDeviceContext(HDC);
173 void SetupMemoryRendering(
int x,
int y, HDC prn);
174 void SetupMemoryRendering(HBITMAP hbmp);
175 void ResumeScreenRendering(
void);
182 virtual void SetupPalette(HDC hDC);
183 virtual void SetupPixelFormatPaletteAndContext(
184 HDC hDC, DWORD dwFlags,
int debug,
185 int bpp=16,
int zbpp=16);
213 HINSTANCE ApplicationInstance;
218 BOOL MFChandledWindow;
226 BITMAPINFO MemoryDataHeader;
227 HBITMAP MemoryBuffer;
228 unsigned char *MemoryData;
232 int ScreenWindowSize[2];
233 HDC ScreenDeviceContext;
234 int ScreenDoubleBuffer;
235 HGLRC ScreenContextId;
237 int CreatingOffScreenWindow;
240 virtual LRESULT MessageProc(HWND hWnd, UINT message,
241 WPARAM wParam, LPARAM lParam);
243 static LRESULT APIENTRY WndProc(HWND hWnd, UINT message,
244 WPARAM wParam, LPARAM lParam);
246 int ForceMakeCurrent;
249 int WindowIdReferenceCount;
250 void ResizeWhileOffscreen(
int xsize,
int ysize);
253 void InitializeApplication();
254 void CleanUpOffScreenRendering(
void);
255 void CreateOffScreenDC(
int xsize,
int ysize, HDC aHdc);
256 void CreateOffScreenDC(HBITMAP hbmp, HDC aHdc);
257 void CreateOffScreenWindow(
int width,
int height);
258 void SaveScreenRendering();
259 void CleanUpRenderers();
260 void VTKRegisterClass();
virtual void SetOffScreenRendering(int)
virtual void Finalize()=0
virtual void SetWindowInfo(char *)=0
unsigned char * GetMemoryData()
virtual void WindowRemap()=0
void PrintSelf(ostream &os, vtkIndent indent)
virtual void HideCursor()=0
virtual void SetPosition(int a[2])
void SetWindowId(void *foo)
#define VTKRENDERINGOPENGL2_EXPORT
static vtkRenderWindow * New()
virtual int * GetScreenSize()=0
virtual void * GetGenericDrawable()
virtual void SetWindowId(void *)=0
virtual void SetCurrentCursor(int)
virtual void SetNextWindowInfo(char *)=0
virtual void SetFullScreen(int)=0
virtual int GetEventPending()=0
virtual void SetSize(int, int)
virtual void * GetGenericParentId()
virtual void * GetGenericContext()
virtual void SetStereoCapableWindow(int capable)
virtual const char * ReportCapabilities()
virtual int SupportsOpenGL()
virtual void SetParentInfo(char *)=0
virtual bool IsCurrent()=0
virtual void SetParentId(void *)=0
a simple class to control print indentation
virtual void DestroyWindow()=0
void SetParentId(void *foo)
list of point or cell ids
virtual void SetDisplayId(void *)=0
virtual void * GetGenericDisplayId()
virtual void MakeCurrent()=0
virtual void SetNextWindowId(void *)=0
virtual void SetCursorPosition(int, int)
virtual int * GetPosition()
virtual void * GetGenericWindowId()
virtual bool InitializeFromCurrentContext()
virtual void SetWindowName(const char *)
virtual void SetPosition(int, int)
virtual void CreateAWindow()=0
virtual void SetSize(int a[2])
virtual void ShowCursor()=0