Unit PXL.Textures

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Abstract texture specification with basic implementation that is common across different providers and platforms.

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TCustomBaseTexture Base definition of hardware-assisted texture.
Class TCustomDrawableTexture Base definition of "drawable" texture; that is, a texture that can be drawn to.
Class TCustomLockableTexture Base definition of "lockable" texture; that is, a texture that can have regions "locked" so they become accessible to CPU.
record TLockedPixels This structure stores information about locked texture's portion that can be accessed by CPU.

Types

PLockedPixels = ˆTLockedPixels;
TTextureState = (...);

Constants

InvalidLockedPixels: TLockedPixels = (Bits: nil; Pitch: 0; BytesPerPixel: 0; PixelFormat: TPixelFormat.Unknown; LockedRect: (Left: 0; Top: 0; Width: 0; Height: 0));

Description

Types

PLockedPixels = ˆTLockedPixels;

Pointer to TLockedPixels.

TTextureState = (...);

Current state of texture.

Values
  • NotInitialized: The texture has not been initialized yet.
  • Initialized: The texture has been initialized and is working fine.
  • Lost: The surface of the texture has been lost and cannot be used right now. It is possible that the application has been minimized and/or paused (depending on platform).
  • NotRecovered: The surface of the texture has been lost and could not be recovered. If the texture is found in this state, it should be released and, if needed, re-created.

Constants

InvalidLockedPixels: TLockedPixels = (Bits: nil; Pitch: 0; BytesPerPixel: 0; PixelFormat: TPixelFormat.Unknown; LockedRect: (Left: 0; Top: 0; Width: 0; Height: 0));

Special constant that defines TLockedPixels that have all fields set to zero, meaning that the data is no longer valid.


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