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 #include "position2d.h"
13 
14 namespace irr
15 {
16  class IEventReceiver;
17 
19 
21  {
26  WindowSize(core::dimension2d<u32>(800, 600)),
27  WindowPosition(core::position2di(-1,-1)),
28  Bits(32),
29  ZBufferBits(24),
30  Fullscreen(false),
31  Stencilbuffer(true),
32  Vsync(false),
33  AntiAlias(0),
34  HandleSRGB(false),
35  WithAlphaChannel(false),
36  Doublebuffer(true),
37  IgnoreInput(false),
38  Stereobuffer(false),
39  HighPrecisionFPU(false),
40  EventReceiver(0),
41  WindowId(0),
42 #ifdef _DEBUG
44 #else
46 #endif
47  DisplayAdapter(0),
48  DriverMultithreaded(false),
49  UsePerformanceTimer(true),
51  {
52  }
53 
56  {*this = other;}
57 
59  {
60  DeviceType = other.DeviceType;
61  DriverType = other.DriverType;
62  WindowSize = other.WindowSize;
64  Bits = other.Bits;
65  ZBufferBits = other.ZBufferBits;
66  Fullscreen = other.Fullscreen;
68  Vsync = other.Vsync;
69  AntiAlias = other.AntiAlias;
70  HandleSRGB = other.HandleSRGB;
72  Doublebuffer = other.Doublebuffer;
73  IgnoreInput = other.IgnoreInput;
74  Stereobuffer = other.Stereobuffer;
77  WindowId = other.WindowId;
78  LoggingLevel = other.LoggingLevel;
82  return *this;
83  }
84 
86 
97 
99 
103 
106 
109 
112 
115 
117 
119 
121 
127 
129 
132  bool Vsync;
133 
135 
151 
153 
166 
168 
177 
179 
185 
187 
192 
194 
200 
202 
209 
212 
214 
264  void* WindowId;
265 
267 
273 
275 
277 
279 
283 
285 
290 
292 
295  };
296 
297 
298 } // end namespace irr
299 
300 #endif
301 
#define IRRLICHT_SDK_VERSION
bool UsePerformanceTimer
Enables use of high performance timers on Windows platform.
E_DEVICE_TYPE
An enum for the different device types supported by the Irrlicht Engine.
Definition: EDeviceTypes.h:12
bool Vsync
Specifies vertical synchronization.
bool Stereobuffer
Specifies if the device should use stereo buffers.
char c8
8 bit character variable.
Definition: irrTypes.h:35
u8 AntiAlias
Specifies if the device should use fullscreen anti aliasing.
bool Doublebuffer
Whether the main framebuffer uses doublebuffering.
SIrrlichtCreationParameters & operator=(const SIrrlichtCreationParameters &other)
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
bool DriverMultithreaded
Create the driver multithreaded.
IEventReceiver * EventReceiver
A user created event receiver.
This selection allows Irrlicht to choose the best device from the ones available.
Definition: EDeviceTypes.h:54
unsigned char u8
8 bit unsigned variable.
Definition: irrTypes.h:22
Interface of an object which can receive events.
core::dimension2d< u32 > WindowSize
Size of the window or the video mode in fullscreen mode. Default: 800x600.
E_DEVICE_TYPE DeviceType
Type of the device.
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition: EDriverTypes.h:16
u32 DisplayAdapter
Allows to select which graphic card is used for rendering when more than one card is in the system.
const c8 *const SDK_version_do_not_use
Don't use or change this parameter.
bool WithAlphaChannel
Whether the main framebuffer uses an alpha channel.
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
bool Fullscreen
Should be set to true if the device should run in fullscreen.
Used for printing information helpful in debugging.
Definition: ILogger.h:20
Structure for holding Irrlicht Device creation parameters.
u8 Bits
Minimum Bits per pixel of the color buffer in fullscreen mode. Ignored if windowed mode....
ELOG_LEVEL LoggingLevel
Specifies the logging level used in the logging interface.
ELOG_LEVEL
Definition: ILogger.h:17
u8 ZBufferBits
Minimum Bits per pixel of the depth buffer. Default: 24.
The Burning's Software Renderer, an alternative software renderer.
Definition: EDriverTypes.h:40
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
2d vector template class with lots of operators and methods.
Definition: dimension2d.h:16
Useful information to print. For example hardware infos or something started/stopped.
Definition: ILogger.h:23
bool HighPrecisionFPU
Specifies if the device should use high precision FPU setting.
core::position2di WindowPosition
Position of the window on-screen. Default: (-1, -1) or centered.
vector2d< s32 > position2di
Definition: position2d.h:24
SIrrlichtCreationParameters(const SIrrlichtCreationParameters &other)
bool Stencilbuffer
Specifies if the stencil buffer should be enabled.
bool IgnoreInput
Specifies if the device should ignore input events.
SIrrlichtCreationParameters()
Constructs a SIrrlichtCreationParameters structure with default values.
video::E_DRIVER_TYPE DriverType
Type of video driver used to render graphics.