Unit PXL.Devices

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Hardware device specification that handles creation of rendering buffers, different technologies such as Direct3D and OpenGL along with other administrative tasks.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCustomDevice Hardware device wrapper that handles communication between application and the video card.
Class TCustomDeviceContext Abstract device context class that contains important device specific references.
Class TCustomDeviceContextWriter Abstract writer class that is given by device context upon creation and allows writing to context's internal values.
Class TCustomDeviceProvider Abstract device provider class that is responsible of creating resources that are specific to one particular technology and/or API.
Class TCustomStateDevice A more elaborated hardware device wrapper that can have working state so it needs to be initialized before any rendering can take place.

Functions and Procedures

function DeviceTechnologyToString(const Technology: TDeviceTechnology): StdString;
function DeviceVersionToString(const Value: Integer; const CompactForm: Boolean = False): StdString;
function GetFullDeviceTechString(const Device: TCustomDevice): StdString;

Types

TClearType = (...);
TClearTypes = set of TClearType;
TDeviceTechnology = (...);
TTechnologyFeature = (...);
TTechnologyFeatures = set of TTechnologyFeature;

Description

Functions and Procedures

function DeviceTechnologyToString(const Technology: TDeviceTechnology): StdString;

Returns a readable text string with the name of the specified device technology.

function DeviceVersionToString(const Value: Integer; const CompactForm: Boolean = False): StdString;

Converts device version value originally specified in hexadecimal format (e.g. $324) into a readable text string describing that version (e.g. "3.2.4"). If CompactForm form parameter is set to True, the version text is reduced for trailing zeros, so a text like "3.0" becomes just "3".

function GetFullDeviceTechString(const Device: TCustomDevice): StdString;

Returns a readable text string that describes the current device's technology, technology version and feature level version. This information can be used for informative purposes.

Types

TClearType = (...);

Type of surface should be cleared.

Values
  • Color: Color buffer.
  • Depth: Depth buffer.
  • Stencil: Stencil buffer.
TClearTypes = set of TClearType;

Set of flags that define what type of surfaces should be cleared.

TDeviceTechnology = (...);

Type of graphics technology used in device.

Values
  • Unknown: The technology has not yet been established.
  • Direct3D: Microsoft Direct3D technology.
  • OpenGL: OpenGL by Khronos Group.
  • OpenGL_ES: OpenGL ES by Khronos Group.
  • Software: Software rasterizer.
  • Proprietary: Private proprietary technology.
TTechnologyFeature = (...);

Type of graphics technology features provided by device.

Values
  • Hardware: Hardware-accelerated rendering.
  • Software: Software-rasterized rendering.
TTechnologyFeatures = set of TTechnologyFeature;

Set of different graphics technology features provided by device.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.