1
// Copyright (C) 2002-2011 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
5
#ifndef __S_EXPOSED_VIDEO_DATA_H_INCLUDED__
6
#define __S_EXPOSED_VIDEO_DATA_H_INCLUDED__
8
// forward declarations for internal pointers
10
struct IDirect3DDevice9;
12
struct IDirect3DDevice8;
19
//! structure for holding data describing a driver and operating system specific data.
20
/** This data can be retrived by IVideoDriver::getExposedVideoData(). Use this with caution.
21
This only should be used to make it possible to extend the engine easily without
22
modification of its source. Note that this structure does not contain any valid data, if
23
you are using the software or the null device.
25
struct SExposedVideoData
27
SExposedVideoData() {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=0;}
28
explicit SExposedVideoData(void* Window) {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=Window;}
34
//! Pointer to the IDirect3D9 interface
37
//! Pointer to the IDirect3D9 interface
38
IDirect3DDevice9* D3DDev9;
41
/** Get with for example HWND h = reinterpret_cast<HWND>(exposedData.D3D9.HWnd) */
48
//! Pointer to the IDirect3D8 interface
51
//! Pointer to the IDirect3D8 interface
52
IDirect3DDevice8* D3DDev8;
55
/** Get with for example with: HWND h = reinterpret_cast<HWND>(exposedData.D3D8.HWnd) */
62
//! Private GDI Device Context.
63
/** Get if for example with: HDC h = reinterpret_cast<HDC>(exposedData.OpenGLWin32.HDc) */
66
//! Permanent Rendering Context.
67
/** Get if for example with: HGLRC h = reinterpret_cast<HGLRC>(exposedData.OpenGLWin32.HRc) */
71
/** Get with for example with: HWND h = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd) */
80
unsigned long X11Window;
85
} // end namespace video
86
} // end namespace irr