arsa  2.7
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 #include "path.h"
14 #include "IrrCompileConfig.h"
15 
16 namespace irr
17 {
18  class IEventReceiver;
19 
21 
23  {
28  WindowSize(core::dimension2d<u32>(800, 600)),
29  WindowPosition(core::position2di(-1,-1)),
30  Bits(32),
31  ZBufferBits(24),
32  Fullscreen(false),
33  WindowResizable(false),
34  Stencilbuffer(true),
35  Vsync(false),
36  AntiAlias(0),
37  HandleSRGB(false),
38  WithAlphaChannel(false),
39  Doublebuffer(true),
40  IgnoreInput(false),
41  Stereobuffer(false),
42  HighPrecisionFPU(false),
43  EventReceiver(0),
44  WindowId(0),
45 #ifdef _DEBUG
47 #else
49 #endif
50  DisplayAdapter(0),
51  DriverMultithreaded(false),
52  UsePerformanceTimer(true),
54  PrivateData(0),
55 #if defined(_IRR_COMPILE_WITH_IOS_DEVICE_) || defined(_IRR_ANDROID_PLATFORM_) || defined(_IRR_EMSCRIPTEN_PLATFORM_)
56  OGLES2ShaderPath("media/Shaders/")
57 #else
58  OGLES2ShaderPath("../../media/Shaders/")
59 #endif
60  {
61  }
62 
65  {*this = other;}
66 
68  {
69  DeviceType = other.DeviceType;
70  DriverType = other.DriverType;
71  WindowSize = other.WindowSize;
73  Bits = other.Bits;
74  ZBufferBits = other.ZBufferBits;
75  Fullscreen = other.Fullscreen;
78  Vsync = other.Vsync;
79  AntiAlias = other.AntiAlias;
80  HandleSRGB = other.HandleSRGB;
82  Doublebuffer = other.Doublebuffer;
83  IgnoreInput = other.IgnoreInput;
84  Stereobuffer = other.Stereobuffer;
87  WindowId = other.WindowId;
88  LoggingLevel = other.LoggingLevel;
92  PrivateData = other.PrivateData;
94  return *this;
95  }
96 
98 
109 
111 
115 
118 
121 
124 
127 
129 
131 
133 
136 
138 
144 
146 
149  bool Vsync;
150 
152 
168 
170 
183 
185 
194 
196 
202 
204 
209 
211 
217 
219 
226 
229 
231 
282  void* WindowId;
283 
285 
291 
293 
295 
297 
301 
303 
308 
310 
313 
315 
318  void *PrivateData;
319 
321 
324  };
325 
326 
327 } // end namespace irr
328 
329 #endif
330 
#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: CARSADPad.h:6
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:58
unsigned char u8
8 bit unsigned variable.
Definition: irrTypes.h:22
bool WindowResizable
Should a non-fullscreen window be resizable.
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
void * PrivateData
Define some private data storage.
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.
irr::io::path OGLES2ShaderPath
Set the path where default-shaders to simulate the fixed-function pipeline can be found.
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.