~ubuntu-branches/ubuntu/oneiric/nux/oneiric

« back to all changes in this revision

Viewing changes to NuxGraphics/GLWindowManager.h

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-12-09 19:56:53 UTC
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20101209195653-lsc4objqdxs9exp3
Tags: upstream-0.9.10
ImportĀ upstreamĀ versionĀ 0.9.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 * License version 3 along with this program.  If not, see
16
16
 * <http://www.gnu.org/licenses/>
17
17
 *
18
 
 * Authored by: Jay Taoko <jay.taoko_AT_gmail_DOT_com>
 
18
 * Authored by: Jay Taoko <jaytaoko@inalogic.com>
19
19
 *
20
20
 */
21
21
 
26
26
#include "NuxCore/NuxCore.h"
27
27
 
28
28
#if defined(NUX_OS_WINDOWS)
29
 
  #include "Gfx_OpenGL.h"
 
29
  #include "GraphicsDisplay.h"
30
30
#elif defined(NUX_OS_LINUX)
31
 
  #include "GfxSetupX11.h"
 
31
  #include "GraphicsDisplay.h"
32
32
#endif
33
33
 
34
34
namespace nux
35
35
{
36
 
  class GLWindowImpl;
 
36
  class GraphicsDisplay;
37
37
  class GpuDevice;
38
38
  class GraphicsEngine;
39
39
 
42
42
  class DisplayAccessController
43
43
  {
44
44
  public:
45
 
    GLWindowImpl *CreateGLWindow (const TCHAR *WindowTitle, unsigned int WindowWidth, unsigned int WindowHeight, WindowStyle Style, GLWindowImpl *GLWindow, bool FullscreenFlag = FALSE);
 
45
    GraphicsDisplay *CreateGLWindow (const TCHAR *WindowTitle, unsigned int WindowWidth, unsigned int WindowHeight, WindowStyle Style, GraphicsDisplay *GLWindow, bool FullscreenFlag = FALSE);
46
46
 
47
47
#if defined(NUX_OS_WINDOWS)
48
48
    HINSTANCE GetInstance()
52
52
#endif
53
53
 
54
54
#if defined(NUX_OS_WINDOWS)
55
 
    //! Create a GLWindowImpl from a foreign window and display.
56
 
    GLWindowImpl *CreateFromForeignWindow (HWND WindowHandle, HDC WindowDCHandle, HGLRC OpenGLRenderingContext);
 
55
    //! Create a GraphicsDisplay from a foreign window and display.
 
56
    GraphicsDisplay *CreateFromForeignWindow (HWND WindowHandle, HDC WindowDCHandle, HGLRC OpenGLRenderingContext);
57
57
#elif defined(NUX_OS_LINUX)
58
 
    //! Create a GLWindowImpl from a foreign window and display.
59
 
    GLWindowImpl *CreateFromForeignWindow (Display *X11Display, Window X11Window, GLXContext OpenGLContext);
 
58
    //! Create a GraphicsDisplay from a foreign window and display.
 
59
    GraphicsDisplay *CreateFromForeignWindow (Display *X11Display, Window X11Window, GLXContext OpenGLContext);
60
60
#endif
61
61
 
62
62
    static DisplayAccessController &Instance();