OmegaEngine API  1.0.3
Public Member Functions | Static Public Member Functions | Public Attributes | 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...
 

Properties

DisplayModeCollection DisplayModes [get]
 A list of all supported monitor resolutions. More...
 
Version MaxShaderModel [get]
 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.

Member Function Documentation

◆ CheckAA() [1/2]

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

◆ CheckAA() [2/2]

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

◆ CheckResolution() [1/2]

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

◆ CheckResolution() [2/2]

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

Member Data Documentation

◆ Anisotropic

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

◆ DoubleSampling

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

Hardware OmegaEngine.EngineCapabilities.Hardware => _hardware

Information about the hardware of this computer.

◆ HardwareVertexProcessing

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

Does the graphics support hardware transformation and lighting?

◆ PerPixelEffects

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

◆ PureDevice

bool OmegaEngine.EngineCapabilities.PureDevice => (_capabilities.DeviceCaps).HasFlag(DeviceCaps.PureDevice)

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

Property Documentation

◆ DisplayModes

DisplayModeCollection OmegaEngine.EngineCapabilities.DisplayModes
get

A list of all supported monitor resolutions.

◆ MaxAA

byte OmegaEngine.EngineCapabilities.MaxAA
get

The highest supported anti aliasing level

◆ MaxShaderModel

Version OmegaEngine.EngineCapabilities.MaxShaderModel
get

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

◆ SupportedAA

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: