~ubuntu-branches/debian/experimental/openscenegraph/experimental

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osgViewer/api/Win32/PixelBufferWin32

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Luaces
  • Date: 2011-01-29 11:36:29 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20110129113629-qisrm2kdqlurc7t3
Tags: 2.9.11-1
* Removed bug-555869-ftbfs_with_binutils_gold.dpatch since upstream has
  already taken care of the issue.
* Removed bug-528229.dpatch since the pkgconfig files are now also split
  in upstream.
* Removed explicit dependency on GLU.
* Upstream no longer includes osgIntrospection (Closes: #592420).
* Disabled zip plugin as its implementation stores an embedded copy of
  zlib.
* Enabled Qt support. Thanks James Goppert.
* Enabled SVG and PDF plugins. Thanks James Goppert.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef OSGVIEWER_PIXELBUFFERWIN32
20
20
#define OSGVIEWER_PIXELBUFFERWIN32 1
21
21
 
22
 
#include <osgViewer/GraphicsWindow>
23
 
 
24
 
#ifndef _WIN32_WINNT
25
 
#define _WIN32_WINNT    0x0500
26
 
#endif
27
 
 
28
 
#include <windows.h>
 
22
#include <osg/GraphicsContext>
 
23
#include <osgViewer/api/Win32/GraphicsHandleWin32>
29
24
 
30
25
namespace osgViewer
31
26
{
32
27
 
33
 
class OSGVIEWER_EXPORT PixelBufferWin32 : public osg::GraphicsContext
 
28
class OSGVIEWER_EXPORT PixelBufferWin32 : public osg::GraphicsContext, public osgViewer::GraphicsHandleWin32
34
29
{
35
30
    public:
36
31
 
62
57
 
63
58
        /** Swap the front and back buffers.*/
64
59
        virtual void swapBuffersImplementation();
65
 
 
66
 
        /** Get native window.*/        
67
 
        HWND getHWND() const { return _hwnd; }
68
 
 
69
 
        HDC getHDC() const { return _hdc; }
70
 
 
71
 
        /** Get native OpenGL graphics context.*/        
72
 
        HGLRC getWGLContext() const { return _hglrc; }
73
 
        
 
60
       
74
61
        virtual void bindPBufferToTextureImplementation( GLenum /*buffer*/ );
75
62
        
76
63
    protected:
77
64
    
78
65
        void init();
79
 
        
80
 
        HWND            _hwnd;
81
 
        HDC             _hdc;
82
 
        HGLRC           _hglrc;
83
66
 
84
67
        bool            _initialized;
85
68
        bool            _valid;