Irrlicht 3D Engine
SIrrCreationParameters.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_IRRLICHT_CREATION_PARAMETERS_H_INCLUDED__
6 #define __I_IRRLICHT_CREATION_PARAMETERS_H_INCLUDED__
7 
8 #include "EDriverTypes.h"
9 #include "EDeviceTypes.h"
10 #include "dimension2d.h"
11 #include "ILogger.h"
12 
13 namespace irr
14 {
15  class IEventReceiver;
16 
18 
20  {
25  WindowSize(core::dimension2d<u32>(800, 600)),
26  Bits(16),
27  ZBufferBits(16),
28  Fullscreen(false),
29  Stencilbuffer(false),
30  Vsync(false),
31  AntiAlias(0),
32  HandleSRGB(false),
33  WithAlphaChannel(false),
34  Doublebuffer(true),
35  IgnoreInput(false),
36  Stereobuffer(false),
37  HighPrecisionFPU(false),
38  EventReceiver(0),
39  WindowId(0),
40 #ifdef _DEBUG
42 #else
44 #endif
45  DisplayAdapter(0),
46  DriverMultithreaded(false),
47  UsePerformanceTimer(true),
49  {
50  }
51 
54  {*this = other;}
55 
57  {
58  DeviceType = other.DeviceType;
59  DriverType = other.DriverType;
60  WindowSize = other.WindowSize;
61  Bits = other.Bits;
62  ZBufferBits = other.ZBufferBits;
63  Fullscreen = other.Fullscreen;
65  Vsync = other.Vsync;
66  AntiAlias = other.AntiAlias;
67  HandleSRGB = other.HandleSRGB;
69  Doublebuffer = other.Doublebuffer;
70  IgnoreInput = other.IgnoreInput;
71  Stereobuffer = other.Stereobuffer;
74  WindowId = other.WindowId;
75  LoggingLevel = other.LoggingLevel;
79  return *this;
80  }
81 
83 
94 
96 
101 
104 
107 
110 
112 
114 
116 
122 
124 
127  bool Vsync;
128 
130 
146 
148 
161 
163 
172 
174 
180 
182 
187 
189 
195 
197 
204 
207 
209 
259  void* WindowId;
260 
262 
268 
270 
272 
274 
278 
280 
285 
287 
290  };
291 
292 
293 } // end namespace irr
294 
295 #endif
296 
irr::SIrrlichtCreationParameters::Doublebuffer
bool Doublebuffer
Whether the main framebuffer uses doublebuffering.
Definition: SIrrCreationParameters.h:179
irr::SIrrlichtCreationParameters::DriverMultithreaded
bool DriverMultithreaded
Create the driver multithreaded.
Definition: SIrrCreationParameters.h:277
IRRLICHT_SDK_VERSION
#define IRRLICHT_SDK_VERSION
Definition: IrrCompileConfig.h:15
irr::SIrrlichtCreationParameters::EventReceiver
IEventReceiver * EventReceiver
A user created event receiver.
Definition: SIrrCreationParameters.h:206
irr::SIrrlichtCreationParameters::HighPrecisionFPU
bool HighPrecisionFPU
Specifies if the device should use high precision FPU setting.
Definition: SIrrCreationParameters.h:203
EDeviceTypes.h
irr::SIrrlichtCreationParameters::DisplayAdapter
u32 DisplayAdapter
Allows to select which graphic card is used for rendering when more than one card is in the system.
Definition: SIrrCreationParameters.h:271
irr::SIrrlichtCreationParameters::SDK_version_do_not_use
const c8 *const SDK_version_do_not_use
Don't use or change this parameter.
Definition: SIrrCreationParameters.h:289
irr::SIrrlichtCreationParameters::DriverType
video::E_DRIVER_TYPE DriverType
Type of video driver used to render graphics.
Definition: SIrrCreationParameters.h:100
irr::c8
char c8
8 bit character variable.
Definition: irrTypes.h:31
irr::SIrrlichtCreationParameters::Stencilbuffer
bool Stencilbuffer
Specifies if the stencil buffer should be enabled.
Definition: SIrrCreationParameters.h:121
irr::SIrrlichtCreationParameters::DeviceType
E_DEVICE_TYPE DeviceType
Type of the device.
Definition: SIrrCreationParameters.h:93
irr::EIDT_BEST
@ EIDT_BEST
This selection allows Irrlicht to choose the best device from the ones available.
Definition: EDeviceTypes.h:54
irr::SIrrlichtCreationParameters::SIrrlichtCreationParameters
SIrrlichtCreationParameters()
Constructs a SIrrlichtCreationParameters structure with default values.
Definition: SIrrCreationParameters.h:22
irr::SIrrlichtCreationParameters::WithAlphaChannel
bool WithAlphaChannel
Whether the main framebuffer uses an alpha channel.
Definition: SIrrCreationParameters.h:171
irr::E_DEVICE_TYPE
E_DEVICE_TYPE
An enum for the different device types supported by the Irrlicht Engine.
Definition: EDeviceTypes.h:12
irr::SIrrlichtCreationParameters::LoggingLevel
ELOG_LEVEL LoggingLevel
Specifies the logging level used in the logging interface.
Definition: SIrrCreationParameters.h:267
irr::SIrrlichtCreationParameters::Fullscreen
bool Fullscreen
Should be set to true if the device should run in fullscreen.
Definition: SIrrCreationParameters.h:113
irr::SIrrlichtCreationParameters::Bits
u8 Bits
Minimum Bits per pixel of the color buffer in fullscreen mode. Ignored if windowed mode....
Definition: SIrrCreationParameters.h:106
irr::SIrrlichtCreationParameters::UsePerformanceTimer
bool UsePerformanceTimer
Enables use of high performance timers on Windows platform.
Definition: SIrrCreationParameters.h:284
irr::SIrrlichtCreationParameters
Structure for holding Irrlicht Device creation parameters.
Definition: SIrrCreationParameters.h:19
irr::core::dimension2d< u32 >
irr::ELL_DEBUG
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition: ILogger.h:20
irr::SIrrlichtCreationParameters::operator=
SIrrlichtCreationParameters & operator=(const SIrrlichtCreationParameters &other)
Definition: SIrrCreationParameters.h:56
irr::SIrrlichtCreationParameters::IgnoreInput
bool IgnoreInput
Specifies if the device should ignore input events.
Definition: SIrrCreationParameters.h:186
irr::SIrrlichtCreationParameters::SIrrlichtCreationParameters
SIrrlichtCreationParameters(const SIrrlichtCreationParameters &other)
Definition: SIrrCreationParameters.h:52
ILogger.h
irr::SIrrlichtCreationParameters::WindowSize
core::dimension2d< u32 > WindowSize
Size of the window or the video mode in fullscreen mode. Default: 800x600.
Definition: SIrrCreationParameters.h:103
irr::SIrrlichtCreationParameters::WindowId
void * WindowId
Window Id.
Definition: SIrrCreationParameters.h:259
irr::IEventReceiver
Interface of an object which can receive events.
Definition: IEventReceiver.h:433
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
irr::video::EDT_BURNINGSVIDEO
@ EDT_BURNINGSVIDEO
The Burning's Software Renderer, an alternative software renderer.
Definition: EDriverTypes.h:38
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:58
irr::ELOG_LEVEL
ELOG_LEVEL
Definition: ILogger.h:17
irr::SIrrlichtCreationParameters::Vsync
bool Vsync
Specifies vertical syncronisation.
Definition: SIrrCreationParameters.h:127
irr::video::E_DRIVER_TYPE
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition: EDriverTypes.h:14
dimension2d.h
irr::SIrrlichtCreationParameters::ZBufferBits
u8 ZBufferBits
Minimum Bits per pixel of the depth buffer. Default: 16.
Definition: SIrrCreationParameters.h:109
irr::SIrrlichtCreationParameters::Stereobuffer
bool Stereobuffer
Specifies if the device should use stereo buffers.
Definition: SIrrCreationParameters.h:194
irr::ELL_INFORMATION
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition: ILogger.h:23
irr::u8
unsigned char u8
8 bit unsigned variable.
Definition: irrTypes.h:18
irr::SIrrlichtCreationParameters::HandleSRGB
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
Definition: SIrrCreationParameters.h:160
EDriverTypes.h
irr::SIrrlichtCreationParameters::AntiAlias
u8 AntiAlias
Specifies if the device should use fullscreen anti aliasing.
Definition: SIrrCreationParameters.h:145