DirectX

Description

static class Tinman.Engine.API.DirectX

Provides some common helper methods for using DirectX libraries.

Public / Methods

Failure


[Pure]
public static method Failure → (1)

hResult in : int32

The HRESULT value to check.

returns → bool

true for failure, false for success.

Checks if the given HRESULT value indicates a failed operation.

Four​CC


[Pure]
public static method FourCC → (1)

code in : string

A string with four characters.

returns → int32

The four-character code.

Generates a four-character code (see MAKEFOURCC macro).

Success


[Pure]
public static method Success → (1)

hResult in : int32

The HRESULT value to check.

returns → bool

true for success, false for failure.

Checks if the given HRESULT value indicates a successful operation.

Warn


public static method Warn → (3)

source in : string

The error source tag.

function in : string

The function name.

hResult in : int32

The failure result code.

Output a warning message for a failed, non-critical render API call.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.