Loading...
Searching...
No Matches
SIrrCreationParameters.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_IRRLICHT_CREATION_PARAMETERS_H_INCLUDED__
#define __I_IRRLICHT_CREATION_PARAMETERS_H_INCLUDED__
#include "EDriverTypes.h"
#include "EDeviceTypes.h"
#include "dimension2d.h"
#include "ILogger.h"
namespace irr
{
class IEventReceiver;
struct SIrrlichtCreationParameters
{
SIrrlichtCreationParameters() :
DeviceType(EIDT_BEST),
DriverType(video::EDT_BURNINGSVIDEO),
WindowSize(core::dimension2d<u32>(800, 600)),
Bits(16),
ZBufferBits(16),
Fullscreen(false),
Stencilbuffer(false),
Vsync(false),
AntiAlias(0),
HandleSRGB(false),
WithAlphaChannel(false),
Doublebuffer(true),
IgnoreInput(false),
Stereobuffer(false),
HighPrecisionFPU(false),
EventReceiver(0),
WindowId(0),
#ifdef _DEBUG
LoggingLevel(ELL_DEBUG),
#else
LoggingLevel(ELL_INFORMATION),
#endif
DisplayAdapter(0),
DriverMultithreaded(false),
UsePerformanceTimer(true),
SDK_version_do_not_use(IRRLICHT_SDK_VERSION)
{
}
SIrrlichtCreationParameters(const SIrrlichtCreationParameters& other) :
SDK_version_do_not_use(IRRLICHT_SDK_VERSION)
{*this = other;}
SIrrlichtCreationParameters& operator=(const SIrrlichtCreationParameters& other)
{
DeviceType = other.DeviceType;
DriverType = other.DriverType;
WindowSize = other.WindowSize;
Bits = other.Bits;
ZBufferBits = other.ZBufferBits;
Fullscreen = other.Fullscreen;
Stencilbuffer = other.Stencilbuffer;
Vsync = other.Vsync;
AntiAlias = other.AntiAlias;
HandleSRGB = other.HandleSRGB;
WithAlphaChannel = other.WithAlphaChannel;
Doublebuffer = other.Doublebuffer;
IgnoreInput = other.IgnoreInput;
Stereobuffer = other.Stereobuffer;
HighPrecisionFPU = other.HighPrecisionFPU;
EventReceiver = other.EventReceiver;
WindowId = other.WindowId;
LoggingLevel = other.LoggingLevel;
DriverMultithreaded = other.DriverMultithreaded;
DisplayAdapter = other.DisplayAdapter;
UsePerformanceTimer = other.UsePerformanceTimer;
return *this;
}
E_DEVICE_TYPE DeviceType;
video::E_DRIVER_TYPE DriverType;
core::dimension2d<u32> WindowSize;
u8 Bits;
u8 ZBufferBits;
bool Fullscreen;
bool Stencilbuffer;
bool Vsync;
u8 AntiAlias;
bool HandleSRGB;
bool WithAlphaChannel;
bool Doublebuffer;
bool IgnoreInput;
bool Stereobuffer;
bool HighPrecisionFPU;
IEventReceiver* EventReceiver;
void* WindowId;
ELOG_LEVEL LoggingLevel;
u32 DisplayAdapter;
bool DriverMultithreaded;
bool UsePerformanceTimer;
const c8* const SDK_version_do_not_use;
};
} // end namespace irr
#endif
EDeviceTypes.h
EDriverTypes.h
ILogger.h
IRRLICHT_SDK_VERSION
#define IRRLICHT_SDK_VERSION
Definition IrrCompileConfig.h:15
irr::IEventReceiver
Interface of an object which can receive events.
Definition IEventReceiver.h:434
irr::core::dimension2d
Specifies a 2 dimensional size.
Definition dimension2d.h:21
dimension2d.h
irr::core
Basic classes such as vectors, planes, arrays, lists, and so on can be found in this namespace.
Definition aabbox3d.h:15
irr::video
The video namespace contains classes for accessing the video driver. All 2d and 3d rendering is done ...
Definition EDriverFeatures.h:11
irr::video::E_DRIVER_TYPE
E_DRIVER_TYPE
An enum for all types of drivers the Irrlicht Engine supports.
Definition EDriverTypes.h:15
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::u8
unsigned char u8
8 bit unsigned variable.
Definition irrTypes.h:18
irr::c8
char c8
8 bit character variable.
Definition irrTypes.h:31
irr::ELOG_LEVEL
ELOG_LEVEL
Definition ILogger.h:18
irr::ELL_DEBUG
@ ELL_DEBUG
Used for printing information helpful in debugging.
Definition ILogger.h:20
irr::ELL_INFORMATION
@ ELL_INFORMATION
Useful information to print. For example hardware infos or something started/stopped.
Definition ILogger.h:23
irr::E_DEVICE_TYPE
E_DEVICE_TYPE
An enum for the different device types supported by the Irrlicht Engine.
Definition EDeviceTypes.h:13
irr::EIDT_BEST
@ EIDT_BEST
This selection allows Irrlicht to choose the best device from the ones available.
Definition EDeviceTypes.h:54
irr::SIrrlichtCreationParameters::DriverMultithreaded
bool DriverMultithreaded
Create the driver multithreaded.
Definition SIrrCreationParameters.h:277
irr::SIrrlichtCreationParameters::Bits
u8 Bits
Minimum Bits per pixel of the color buffer in fullscreen mode. Ignored if windowed mode....
Definition SIrrCreationParameters.h:106
irr::SIrrlichtCreationParameters::WindowSize
core::dimension2d< u32 > WindowSize
Size of the window or the video mode in fullscreen mode. Default: 800x600.
Definition SIrrCreationParameters.h:103
irr::SIrrlichtCreationParameters::DriverType
video::E_DRIVER_TYPE DriverType
Type of video driver used to render graphics.
Definition SIrrCreationParameters.h:100
irr::SIrrlichtCreationParameters::LoggingLevel
ELOG_LEVEL LoggingLevel
Specifies the logging level used in the logging interface.
Definition SIrrCreationParameters.h:267
irr::SIrrlichtCreationParameters::Vsync
bool Vsync
Specifies vertical syncronisation.
Definition SIrrCreationParameters.h:127
irr::SIrrlichtCreationParameters::Fullscreen
bool Fullscreen
Should be set to true if the device should run in fullscreen.
Definition SIrrCreationParameters.h:113
irr::SIrrlichtCreationParameters::SIrrlichtCreationParameters
SIrrlichtCreationParameters()
Constructs a SIrrlichtCreationParameters structure with default values.
Definition SIrrCreationParameters.h:22
irr::SIrrlichtCreationParameters::SIrrlichtCreationParameters
SIrrlichtCreationParameters(const SIrrlichtCreationParameters &other)
Definition SIrrCreationParameters.h:52
irr::SIrrlichtCreationParameters::HandleSRGB
bool HandleSRGB
Flag to enable proper sRGB and linear color handling.
Definition SIrrCreationParameters.h:160
irr::SIrrlichtCreationParameters::Doublebuffer
bool Doublebuffer
Whether the main framebuffer uses doublebuffering.
Definition SIrrCreationParameters.h:179
irr::SIrrlichtCreationParameters::AntiAlias
u8 AntiAlias
Specifies if the device should use fullscreen anti aliasing.
Definition SIrrCreationParameters.h:145
irr::SIrrlichtCreationParameters::operator=
SIrrlichtCreationParameters & operator=(const SIrrlichtCreationParameters &other)
Definition SIrrCreationParameters.h:56
irr::SIrrlichtCreationParameters::UsePerformanceTimer
bool UsePerformanceTimer
Enables use of high performance timers on Windows platform.
Definition SIrrCreationParameters.h:284
irr::SIrrlichtCreationParameters::EventReceiver
IEventReceiver * EventReceiver
A user created event receiver.
Definition SIrrCreationParameters.h:206
irr::SIrrlichtCreationParameters::DeviceType
E_DEVICE_TYPE DeviceType
Type of the device.
Definition SIrrCreationParameters.h:93
irr::SIrrlichtCreationParameters::Stencilbuffer
bool Stencilbuffer
Specifies if the stencil buffer should be enabled.
Definition SIrrCreationParameters.h:121
irr::SIrrlichtCreationParameters::DisplayAdapter
u32 DisplayAdapter
Allows to select which graphic card is used for rendering when more than one card is in the system.
Definition SIrrCreationParameters.h:271
irr::SIrrlichtCreationParameters::HighPrecisionFPU
bool HighPrecisionFPU
Specifies if the device should use high precision FPU setting.
Definition SIrrCreationParameters.h:203
irr::SIrrlichtCreationParameters::WithAlphaChannel
bool WithAlphaChannel
Whether the main framebuffer uses an alpha channel.
Definition SIrrCreationParameters.h:171
irr::SIrrlichtCreationParameters::IgnoreInput
bool IgnoreInput
Specifies if the device should ignore input events.
Definition SIrrCreationParameters.h:186
irr::SIrrlichtCreationParameters::ZBufferBits
u8 ZBufferBits
Minimum Bits per pixel of the depth buffer. Default: 16.
Definition SIrrCreationParameters.h:109
irr::SIrrlichtCreationParameters::Stereobuffer
bool Stereobuffer
Specifies if the device should use stereo buffers.
Definition SIrrCreationParameters.h:194
irr::SIrrlichtCreationParameters::WindowId
void * WindowId
Window Id.
Definition SIrrCreationParameters.h:259
irr::SIrrlichtCreationParameters::SDK_version_do_not_use
const c8 *const SDK_version_do_not_use
Don't use or change this parameter.
Definition SIrrCreationParameters.h:289
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0