mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-26 07:57:30 +01:00
0c6385cb92
Usually something like __IRR_SOME_GUARD_INCLUDED__ replaced by IRR_SOME_GUARD_INCLUDED. Removing underscores at the end wasn't necessary, but more symmetric (probably the reason they got added there as well). While this touches every header it shouldn't affect users (I hope). Also a few whitespace changes to unify whitespace usage a bit. And a bunch of spelling fixes in comments. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6252 dfc29bdd-3216-0410-991c-e03cc46cb475
88 lines
2.3 KiB
C++
88 lines
2.3 KiB
C++
// Copyright (C) 2002-2012 Nikolaus Gebhardt
|
|
// This file is part of the "Irrlicht Engine".
|
|
// For conditions of distribution and use, see copyright notice in irrlicht.h
|
|
|
|
#ifndef S_EXPOSED_VIDEO_DATA_H_INCLUDED
|
|
#define S_EXPOSED_VIDEO_DATA_H_INCLUDED
|
|
|
|
// forward declarations for internal pointers
|
|
struct IDirect3D9;
|
|
struct IDirect3DDevice9;
|
|
struct IDirect3D8;
|
|
struct IDirect3DDevice8;
|
|
|
|
namespace irr
|
|
{
|
|
namespace video
|
|
{
|
|
|
|
//! structure for holding data describing a driver and operating system specific data.
|
|
/** This data can be retrieved by IVideoDriver::getExposedVideoData(). Use this with caution.
|
|
This only should be used to make it possible to extend the engine easily without
|
|
modification of its source. Note that this structure does not contain any valid data, if
|
|
you are using the software or the null device.
|
|
*/
|
|
struct SExposedVideoData
|
|
{
|
|
SExposedVideoData() {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=0;}
|
|
explicit SExposedVideoData(void* Window) {OpenGLWin32.HDc=0; OpenGLWin32.HRc=0; OpenGLWin32.HWnd=Window;}
|
|
|
|
struct SD3D9
|
|
{
|
|
//! Pointer to the IDirect3D9 interface
|
|
IDirect3D9* D3D9;
|
|
|
|
//! Pointer to the IDirect3DDevice9 interface
|
|
IDirect3DDevice9* D3DDev9;
|
|
|
|
//! Window handle.
|
|
/** Get with for example HWND h = reinterpret_cast<HWND>(exposedData.D3D9.HWnd) */
|
|
void* HWnd;
|
|
};
|
|
|
|
struct SOpenGLWin32
|
|
{
|
|
//! Private GDI Device Context.
|
|
/** Get if for example with: HDC h = reinterpret_cast<HDC>(exposedData.OpenGLWin32.HDc) */
|
|
void* HDc;
|
|
|
|
//! Permanent Rendering Context.
|
|
/** Get if for example with: HGLRC h = reinterpret_cast<HGLRC>(exposedData.OpenGLWin32.HRc) */
|
|
void* HRc;
|
|
|
|
//! Window handle.
|
|
/** Get with for example with: HWND h = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd) */
|
|
void* HWnd;
|
|
};
|
|
|
|
struct SOpenGLLinux
|
|
{
|
|
// XWindow handles
|
|
void* X11Display;
|
|
void* X11Context;
|
|
unsigned long X11Window;
|
|
};
|
|
|
|
struct SOpenGLOSX
|
|
{
|
|
//! The NSOpenGLContext object.
|
|
void* Context;
|
|
|
|
//! The NSWindow object.
|
|
void* Window;
|
|
};
|
|
|
|
union
|
|
{
|
|
SD3D9 D3D9;
|
|
SOpenGLWin32 OpenGLWin32;
|
|
SOpenGLLinux OpenGLLinux;
|
|
SOpenGLOSX OpenGLOSX;
|
|
};
|
|
};
|
|
|
|
} // end namespace video
|
|
} // end namespace irr
|
|
|
|
#endif
|