From 63245f414730f71e139039d737c287807736e67d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 May 2007 10:52:35 +0000 Subject: [PATCH] Added getHWND, getHDC and getWGLContext methods --- include/osgViewer/api/Win32/GraphicsWindowWin32 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/osgViewer/api/Win32/GraphicsWindowWin32 b/include/osgViewer/api/Win32/GraphicsWindowWin32 index c67b353c5..946045750 100644 --- a/include/osgViewer/api/Win32/GraphicsWindowWin32 +++ b/include/osgViewer/api/Win32/GraphicsWindowWin32 @@ -89,7 +89,14 @@ class GraphicsWindowWin32 : public osgViewer::GraphicsWindow HWND _hwnd; }; - + + /** Get native window.*/ + HWND getHWND() const { return _hwnd; } + + HDC getHDC() const { return _hdc; } + + /** Get native OpenGL graphics context.*/ + HGLRC getWGLContext() const { return _hglrc; } protected: @@ -112,7 +119,6 @@ class GraphicsWindowWin32 : public osgViewer::GraphicsWindow void transformMouseXY(float& x, float& y); - HGLRC getWGLContext() { return _hglrc; } HWND _hwnd; HDC _hdc;