Skylicht Engine
Loading...
Searching...
No Matches
SIrrCreationParameters.h
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
14namespace irr
15{
16 class IEventReceiver;
17
19
21 {
25 DriverType(video::EDT_OPENGL),
26 WindowSize(core::dimension2d<u32>(800, 600)),
27 Bits(32),
28 ZBufferBits(32),
29 Fullscreen(false),
30 Stencilbuffer(false),
31 Vsync(false),
32 AntiAlias(0),
33 HandleSRGB(false),
34 WithAlphaChannel(false),
35 Doublebuffer(true),
36 IgnoreInput(false),
37 Stereobuffer(false),
38 HighPrecisionFPU(false),
40 WindowId(0),
41#ifdef _DEBUG
43#else
45#endif
49 SDK_version_do_not_use(IRRLICHT_SDK_VERSION)
50 {
51 }
52
54 SDK_version_do_not_use(IRRLICHT_SDK_VERSION)
55 {*this = other;}
56
58 {
59 DeviceType = other.DeviceType;
60 DriverType = other.DriverType;
61 WindowSize = other.WindowSize;
62 WindowPosition = other.WindowPosition;
63 Bits = other.Bits;
64 ZBufferBits = other.ZBufferBits;
65 Fullscreen = other.Fullscreen;
66 Stencilbuffer = other.Stencilbuffer;
67 Vsync = other.Vsync;
68 AntiAlias = other.AntiAlias;
69 HandleSRGB = other.HandleSRGB;
70 WithAlphaChannel = other.WithAlphaChannel;
71 Doublebuffer = other.Doublebuffer;
72 IgnoreInput = other.IgnoreInput;
73 Stereobuffer = other.Stereobuffer;
74 HighPrecisionFPU = other.HighPrecisionFPU;
75 EventReceiver = other.EventReceiver;
76 WindowId = other.WindowId;
77 LoggingLevel = other.LoggingLevel;
78 DriverMultithreaded = other.DriverMultithreaded;
79 DisplayAdapter = other.DisplayAdapter;
80 UsePerformanceTimer = other.UsePerformanceTimer;
81 return *this;
82 }
83
85
96
98
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
Interface of an object which can receive events.
Definition IEventReceiver.h:474
Specifies a 2 dimensional size.
Definition dimension2d.h:21
Basic classes such as vectors, planes, arrays, lists, and so on can be found in this namespace.
Definition aabbox3d.h:15
vector2d< s32 > position2di
Definition position2d.h:24
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition EDriverTypes.h:15
Everything in the Irrlicht Engine can be found in this namespace.
Definition Skylicht.h:33
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
unsigned char u8
8 bit unsigned variable.
Definition irrTypes.h:18
char c8
8 bit character variable.
Definition irrTypes.h:31
ELOG_LEVEL
Definition ILogger.h:18
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.h:20
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.h:23
E_DEVICE_TYPE
An enum for the different device types supported by the Irrlicht Engine.
Definition EDeviceTypes.h:13
@ EIDT_BEST
This selection allows Irrlicht to choose the best device from the ones available.
Definition EDeviceTypes.h:40
Structure for holding Irrlicht Device creation parameters.
Definition SIrrCreationParameters.h:21
bool DriverMultithreaded
Create the driver multithreaded.
Definition SIrrCreationParameters.h:282
u8 Bits
Minimum Bits per pixel of the color buffer in fullscreen mode. Ignored if windowed mode....
Definition SIrrCreationParameters.h:111
core::position2di WindowPosition
Position of the window on-screen. Default: (-1, -1) or centered.
Definition SIrrCreationParameters.h:108
core::dimension2d< u32 > WindowSize
Size of the window or the video mode in fullscreen mode. Default: 800x600.
Definition SIrrCreationParameters.h:105
video::E_DRIVER_TYPE DriverType
Type of video driver used to render graphics.
Definition SIrrCreationParameters.h:102
ELOG_LEVEL LoggingLevel
Specifies the logging level used in the logging interface.
Definition SIrrCreationParameters.h:272
bool Vsync
Specifies vertical syncronisation.
Definition SIrrCreationParameters.h:132
bool Fullscreen
Should be set to true if the device should run in fullscreen.
Definition SIrrCreationParameters.h:118
SIrrlichtCreationParameters()
Constructs a SIrrlichtCreationParameters structure with default values.
Definition SIrrCreationParameters.h:23
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
Definition SIrrCreationParameters.h:165
bool Doublebuffer
Whether the main framebuffer uses doublebuffering.
Definition SIrrCreationParameters.h:184
u8 AntiAlias
Specifies if the device should use fullscreen anti aliasing.
Definition SIrrCreationParameters.h:150
bool UsePerformanceTimer
Enables use of high performance timers on Windows platform.
Definition SIrrCreationParameters.h:289
IEventReceiver * EventReceiver
A user created event receiver.
Definition SIrrCreationParameters.h:211
E_DEVICE_TYPE DeviceType
Type of the device.
Definition SIrrCreationParameters.h:95
bool Stencilbuffer
Specifies if the stencil buffer should be enabled.
Definition SIrrCreationParameters.h:126
u32 DisplayAdapter
Allows to select which graphic card is used for rendering when more than one card is in the system.
Definition SIrrCreationParameters.h:276
bool HighPrecisionFPU
Specifies if the device should use high precision FPU setting.
Definition SIrrCreationParameters.h:208
bool WithAlphaChannel
Whether the main framebuffer uses an alpha channel.
Definition SIrrCreationParameters.h:176
bool IgnoreInput
Specifies if the device should ignore input events.
Definition SIrrCreationParameters.h:191
u8 ZBufferBits
Minimum Bits per pixel of the depth buffer. Default: 16.
Definition SIrrCreationParameters.h:114
bool Stereobuffer
Specifies if the device should use stereo buffers.
Definition SIrrCreationParameters.h:199
void * WindowId
Window Id.
Definition SIrrCreationParameters.h:264
const c8 *const SDK_version_do_not_use
Don't use or change this parameter.
Definition SIrrCreationParameters.h:294