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 
#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 syncronisation.
bool Stereobuffer
Specifies if the device should use stereo buffers.
char c8
8 bit character variable.
Definition: irrTypes.h:31
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:18
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:14
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&#39;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:58
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: 16.
The Burning&#39;s Software Renderer, an alternative software renderer.
Definition: EDriverTypes.h:38
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
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.
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.