Jimcpp 2.1.0
Jimcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
SIrrCreationParameters.hpp
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 jimcpp/jimcpp.hpp
4
5#ifndef JPP_JIMCPP_CREATION_PARAMETERS_HPP_INCLUDED
6#define JPP_JIMCPP_CREATION_PARAMETERS_HPP_INCLUDED
7
8#include <jimcpp/core/engine/EDriverTypes.hpp>
9#include <jimcpp/core/engine/EDeviceTypes.hpp>
10#include <jimcpp/core/engine/dimension2d.hpp>
11#include <jimcpp/core/engine/ILogger.hpp>
12#include <jimcpp/core/engine/position2d.hpp>
13
14namespace jpp
15{
16 class IEventReceiver;
17
19
21 {
22 public:
24
35
37
41
44
47
50
53
55
57
59
63
65
71
73
76 bool Vsync;
77
79
95
97
110
112
121
123
129
131
136
138
144
146
153
156
158
208 void* WindowId;
209
211
217
219
221
223
227
229
234
236
239 public:
243 DriverType(video::EDT_BURNINGSVIDEO),
244 WindowSize(core::dimension2d<u32>(800, 600)),
245 WindowPosition(core::position2di(-1,-1)),
246 Bits(32),
247 ZBufferBits(24),
248 Fullscreen(false),
250 Stencilbuffer(true),
251 Vsync(false),
252 AntiAlias(0),
253 HandleSRGB(false),
254 WithAlphaChannel(false),
255 Doublebuffer(true),
256 IgnoreInput(false),
257 Stereobuffer(false),
258 HighPrecisionFPU(false),
259 EventReceiver(0),
260 WindowId(0),
261#ifdef _DEBUG
263#else
265#endif
267 DriverMultithreaded(false),
269 SDK_version_do_not_use(JIMCPP_SDK_VERSION)
270 {
271 }
272
274 SDK_version_do_not_use(JIMCPP_SDK_VERSION)
275 {*this = other;}
276
278 {
279 DeviceType = other.DeviceType;
280 DriverType = other.DriverType;
281 WindowSize = other.WindowSize;
282 WindowPosition = other.WindowPosition;
283 Bits = other.Bits;
284 ZBufferBits = other.ZBufferBits;
285 Fullscreen = other.Fullscreen;
286 WindowResizable = other.WindowResizable;
287 Stencilbuffer = other.Stencilbuffer;
288 Vsync = other.Vsync;
289 AntiAlias = other.AntiAlias;
290 HandleSRGB = other.HandleSRGB;
291 WithAlphaChannel = other.WithAlphaChannel;
292 Doublebuffer = other.Doublebuffer;
293 IgnoreInput = other.IgnoreInput;
294 Stereobuffer = other.Stereobuffer;
295 HighPrecisionFPU = other.HighPrecisionFPU;
296 EventReceiver = other.EventReceiver;
297 WindowId = other.WindowId;
298 LoggingLevel = other.LoggingLevel;
299 DisplayAdapter = other.DisplayAdapter;
300 DriverMultithreaded = other.DriverMultithreaded;
301 UsePerformanceTimer = other.UsePerformanceTimer;
302 return *this;
303 }
304 }; // class SJimcppCreationParameters
305
306} // end namespace jpp
307
308#endif
309
Interface of an object which can receive events.
Definition IEventReceiver.hpp:484
Class for holding Jimcpp Device creation parameters.
Definition SIrrCreationParameters.hpp:21
bool UsePerformanceTimer
Enables use of high performance timers on Windows platform.
Definition SIrrCreationParameters.hpp:233
u8 ZBufferBits
Minimum Bits per pixel of the depth buffer. Default: 24.
Definition SIrrCreationParameters.hpp:52
core::dimension2d< u32 > WindowSize
Size of the window or the video mode in fullscreen mode. Default: 800x600.
Definition SIrrCreationParameters.hpp:43
bool Stencilbuffer
Specifies if the stencil buffer should be enabled.
Definition SIrrCreationParameters.hpp:70
video::E_DRIVER_TYPE DriverType
Type of video driver used to render graphics.
Definition SIrrCreationParameters.hpp:40
E_DEVICE_TYPE DeviceType
Type of the device.
Definition SIrrCreationParameters.hpp:34
bool Doublebuffer
Whether the main framebuffer uses doublebuffering.
Definition SIrrCreationParameters.hpp:128
bool Fullscreen
Should be set to true if the device should run in fullscreen.
Definition SIrrCreationParameters.hpp:56
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
Definition SIrrCreationParameters.hpp:109
void * WindowId
Window Id.
Definition SIrrCreationParameters.hpp:208
ELOG_LEVEL LoggingLevel
Specifies the logging level used in the logging interface.
Definition SIrrCreationParameters.hpp:216
u8 Bits
Minimum Bits per pixel of the color buffer in fullscreen mode. Ignored if windowed mode....
Definition SIrrCreationParameters.hpp:49
IEventReceiver * EventReceiver
A user created event receiver.
Definition SIrrCreationParameters.hpp:155
bool WithAlphaChannel
Whether the main framebuffer uses an alpha channel.
Definition SIrrCreationParameters.hpp:120
u8 WindowResizable
Should a non-fullscreen window be resizable.
Definition SIrrCreationParameters.hpp:62
bool Vsync
Specifies vertical synchronization.
Definition SIrrCreationParameters.hpp:76
u8 AntiAlias
Specifies if the device should use fullscreen anti aliasing.
Definition SIrrCreationParameters.hpp:94
SJimcppCreationParameters()
Constructs a SJimcppCreationParameters class with default values.
Definition SIrrCreationParameters.hpp:241
bool DriverMultithreaded
Create the driver multithreaded.
Definition SIrrCreationParameters.hpp:226
core::position2di WindowPosition
Position of the window on-screen. Default: (-1, -1) or centered.
Definition SIrrCreationParameters.hpp:46
bool IgnoreInput
Specifies if the device should ignore input events.
Definition SIrrCreationParameters.hpp:135
u32 DisplayAdapter
Allows to select which graphic card is used for rendering when more than one card is in the system.
Definition SIrrCreationParameters.hpp:220
bool HighPrecisionFPU
Specifies if the device should use high precision FPU setting.
Definition SIrrCreationParameters.hpp:152
const c8 *const SDK_version_do_not_use
Don't use or change this parameter.
Definition SIrrCreationParameters.hpp:238
bool Stereobuffer
Specifies if the device should use stereo buffers.
Definition SIrrCreationParameters.hpp:143
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
E_DRIVER_TYPE
An enum for all types of drivers the Jimcpp Engine supports.
Definition EDriverTypes.hpp:17
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
unsigned char u8
8 bit unsigned variable.
Definition irrTypes.hpp:24
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
E_DEVICE_TYPE
An enum for the different device types supported by the Jimcpp Engine.
Definition EDeviceTypes.hpp:13
@ EIDT_BEST
This selection allows Jimcpp to choose the best device from the ones available.
Definition EDeviceTypes.hpp:54
ELOG_LEVEL
Definition ILogger.hpp:18
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.hpp:23
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.hpp:20
char c8
8 bit character variable.
Definition irrTypes.hpp:37

Jimcpp    @cppfx.xyz

K