OmegaEngine API  1.0.3
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Static Public Member Functions | Public Attributes | Package Functions | Static Package Functions | Properties | List of all members
OmegaEngine.EngineCapabilities Class Reference

Methods for determining the rendering capabilities of the graphics hardware. More...

Public Member Functions

bool CheckResolution (int width, int height)
 Checks whether the graphics card supports a certain monitor resolution More...
 
bool CheckAA (int sample)
 Checks whether the graphics card supports a certain level of anti aliasing More...
 

Static Public Member Functions

static bool CheckResolution (int adapter, int width, int height)
 Checks whether the graphics card supports a certain monitor resolution More...
 
static bool CheckAA (int adapter, int sample)
 Checks whether the graphics card supports a certain level of anti aliasing More...
 

Public Attributes

Hardware Hardware => _hardware
 Information about the hardware of this computer. More...
 
bool PureDevice => (_capabilities.DeviceCaps).HasFlag(DeviceCaps.PureDevice)
 Does the graphics support rasterization, transform, lighting, and shading in hardware? More...
 
bool HardwareVertexProcessing => (_capabilities.DeviceCaps).HasFlag(DeviceCaps.HWTransformAndLight)
 Does the graphics support hardware transformation and lighting? More...
 
bool Anisotropic => (_direct3D.GetDeviceCaps(0, DeviceType.Hardware).TextureFilterCaps).HasFlag(FilterCaps.MinAnisotropic | FilterCaps.MagAnisotropic)
 Does the hardware the engine is running on support anisotropic texture filtering? More...
 
bool PerPixelEffects => MaxShaderModel >= new Version(2, 0)
 Does the hardware the engine is running on support per-pixel effects? More...
 
bool DoubleSampling => MaxShaderModel >= new Version(2, 0, 1)
 Does the hardware the engine is running on support terrain texture double sampling? More...
 

Package Functions

 EngineCapabilities (Direct3D direct3D, EngineConfig config)
 Creates a new engine capabilities object. More...
 

Static Package Functions

static bool TestDepthStencil (int adapter, Format depthFormat)
 Checks whether a certain depth stencil format is supported by the SlimDX.Direct3D9.Device More...
 

Properties

DisplayModeCollection DisplayModes [get, set]
 A list of all supported monitor resolutions. More...
 
Version MaxShaderModel [get, set]
 The maximum shader model version to be used (2.a is replaced by 2.0.1, 2.b is replaced by 2.0.2) More...
 
byte MaxAA [get]
 The highest supported anti aliasing level More...
 
string SupportedAA [get]
 A comma-separated list of all supported anti aliasing levels More...
 

Detailed Description

Methods for determining the rendering capabilities of the graphics hardware.

Constructor & Destructor Documentation

OmegaEngine.EngineCapabilities.EngineCapabilities ( Direct3D  direct3D,
EngineConfig  config 
)
inlinepackage

Creates a new engine capabilities object.

Parameters
direct3DProvides access to the Direct3D subsystem.
configThe settings used to initialize the Engine.

Member Function Documentation

static bool OmegaEngine.EngineCapabilities.CheckAA ( int  adapter,
int  sample 
)
inlinestatic

Checks whether the graphics card supports a certain level of anti aliasing

Parameters
adapterThe adapter to check
sampleThe sample level to check
Returns
true if the level is supported
bool OmegaEngine.EngineCapabilities.CheckAA ( int  sample)
inline

Checks whether the graphics card supports a certain level of anti aliasing

Parameters
sampleThe sample level to check
Returns
true if the level is supported
static bool OmegaEngine.EngineCapabilities.CheckResolution ( int  adapter,
int  width,
int  height 
)
inlinestatic

Checks whether the graphics card supports a certain monitor resolution

Parameters
adapterThe adapter to check
widthThe resolution width
heightThe resolution height
Returns
true if the level is supported
bool OmegaEngine.EngineCapabilities.CheckResolution ( int  width,
int  height 
)
inline

Checks whether the graphics card supports a certain monitor resolution

Parameters
widthThe resolution width
heightThe resolution height
Returns
true if the level is supported
static bool OmegaEngine.EngineCapabilities.TestDepthStencil ( int  adapter,
Format  depthFormat 
)
inlinestaticpackage

Checks whether a certain depth stencil format is supported by the SlimDX.Direct3D9.Device

Member Data Documentation

bool OmegaEngine.EngineCapabilities.Anisotropic => (_direct3D.GetDeviceCaps(0, DeviceType.Hardware).TextureFilterCaps).HasFlag(FilterCaps.MinAnisotropic | FilterCaps.MagAnisotropic)

Does the hardware the engine is running on support anisotropic texture filtering?

See Also
Engine.Anisotropic
bool OmegaEngine.EngineCapabilities.DoubleSampling => MaxShaderModel >= new Version(2, 0, 1)

Does the hardware the engine is running on support terrain texture double sampling?

See Also
EngineEffects.DoubleSampling
Hardware OmegaEngine.EngineCapabilities.Hardware => _hardware

Information about the hardware of this computer.

bool OmegaEngine.EngineCapabilities.HardwareVertexProcessing => (_capabilities.DeviceCaps).HasFlag(DeviceCaps.HWTransformAndLight)

Does the graphics support hardware transformation and lighting?

bool OmegaEngine.EngineCapabilities.PerPixelEffects => MaxShaderModel >= new Version(2, 0)

Does the hardware the engine is running on support per-pixel effects?

See Also
EngineEffects.PerPixelLighting, EngineEffects.NormalMapping, EngineEffects.PostScreenEffects, EngineEffects.Shadows
bool OmegaEngine.EngineCapabilities.PureDevice => (_capabilities.DeviceCaps).HasFlag(DeviceCaps.PureDevice)

Does the graphics support rasterization, transform, lighting, and shading in hardware?

Property Documentation

DisplayModeCollection OmegaEngine.EngineCapabilities.DisplayModes
getset

A list of all supported monitor resolutions.

byte OmegaEngine.EngineCapabilities.MaxAA
get

The highest supported anti aliasing level

Version OmegaEngine.EngineCapabilities.MaxShaderModel
getset

The maximum shader model version to be used (2.a is replaced by 2.0.1, 2.b is replaced by 2.0.2)

string OmegaEngine.EngineCapabilities.SupportedAA
get

A comma-separated list of all supported anti aliasing levels


The documentation for this class was generated from the following file: