Description | Hierarchy | Fields | Methods | Properties |
type TTexture = class(TReferenceCounted)
Interface of a Video Driver dependent Texture.
An ITexture is created by an IVideoDriver by using TVideoDriver.AddTexture or TVideoDriver.GetTexture. After that, the texture may only be used by this VideoDriver. As you can imagine, textures of the DirectX and the OpenGL device will, e.g., not be compatible. An exception is the Software device and the null device, their textures are compatible. If you try to use a texture created by one device with an other device, the device will refuse to do that and write a warning or an error message to the output buffer.
![]() |
function IsRenderTarget: Boolean; inline; |
![]() |
function Lock(ReadOnly: Boolean=False; MipMapLevel: LongWord=0): Pointer; inline; |
![]() |
procedure RegenerateMipMapLevels(MipMapData: Pointer=nil); inline; |
![]() |
procedure Unlock; inline; |
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
![]() |
property DriverType: TVideoDriverType read GetDriverType; |
![]() |
property HasAlpha: Boolean read GetAlpha; |
![]() |
property HasMipMaps: Boolean read GetMipMaps; |
![]() |
property Name: StringType read GetName; |
![]() |
property OriginalSize: TSize read GetOriginalSize; |
![]() |
property Size: TSize read GetSize; |
![]() |
function IsRenderTarget: Boolean; inline; |
Returns whether the texture is a render target. |
![]() |
function Lock(ReadOnly: Boolean=False; MipMapLevel: LongWord=0): Pointer; inline; |
Locks the Texture and returns a pointer to access the pixels. After Parameters
ReturnsA pointer to the pixel data. The format of the pixel can be determined by reading ColorFormat. 0 is returned if the texture cannot be locked. |
![]() |
procedure RegenerateMipMapLevels(MipMapData: Pointer=nil); inline; |
Regenerates the mip map levels of the texture. |
![]() |
procedure Unlock; inline; |
|
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
The texture's color format. |
![]() |
property DriverType: TVideoDriverType read GetDriverType; |
The driver type this texture was created for. This method is used internally by the video devices, to check if they may use a texture because textures may be incompatible between different devices. |
![]() |
property HasAlpha: Boolean read GetAlpha; |
Whether the texture has an alpha channel. |
![]() |
property HasMipMaps: Boolean read GetMipMaps; |
Whether the texture has MipMaps. |
![]() |
property Name: StringType read GetName; |
The texture's |
![]() |
property OriginalSize: TSize read GetOriginalSize; |
Get original size of the texture. |
![]() |
property Size: TSize read GetSize; |
The texture's |