Unit phxTexture

DescriptionUsesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

Texture classes

Overview

Classes, Interfaces, Objects and Records

Name Description
record TPHXTextureHeader The texture file header.
Class TPHXTextureSettings Settings for generating a texture
Class TPHXTexture Container for a 2D bitmap texture
Class TPHXTextureList Container for a list of textures

Types

TPHXTextureEvent = procedure(Texture: TPHXTexture) of object;
TPHXTextureFilter = (...);
TPHXTextureFilterMin = tfNearest .. tfLinearMipmapLinear;
TPHXTextureFilterMag = tfNearest .. tfLinear;
TPHXTextureWrap = (...);
PTextureList = ˆTTextureList;
TTextureList = array[0..$00FFFFFF] of TPHXTexture;

Constants

PHXTEXTURE_EXT = '.phxtex';
PHXTEXTURE_VERSION = 2;

Description

Types

TPHXTextureEvent = procedure(Texture: TPHXTexture) of object;
 
TPHXTextureFilter = (...);

Possible values for the texure minifying and magnification functions

Values
  • tfNearest: GL_NEAREST
  • tfLinear: GL_LINEAR
  • tfNearestMipmapNearest: GL_NEAREST_MIPMAP_NEAREST
  • tfLinearMipmapNearest: GL_LINEAR_MIPMAP_NEAREST
  • tfNearestMipmapLinear: GL_NEAREST_MIPMAP_LINEAR
  • tfLinearMipmapLinear: GL_LINEAR_MIPMAP_LINEAR
TPHXTextureFilterMin = tfNearest .. tfLinearMipmapLinear;

The texture minifying function is used whenever the pixel being textured maps to an area greater than one texture element.

TPHXTextureFilterMag = tfNearest .. tfLinear;

The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element

TPHXTextureWrap = (...);

Specifies the type of the texture wrapping to use.

Values
  • twRepeat: Repeat the textures
  • twClamp: Clamp the texture coordinates between 0.0 and 1.0
PTextureList = ˆTTextureList;
 
TTextureList = array[0..$00FFFFFF] of TPHXTexture;
 

Constants

PHXTEXTURE_EXT = '.phxtex';

Default texture extension for textures

PHXTEXTURE_VERSION = 2;

The current texture version


Generated by PasDoc 0.13.0 on 2013-08-26 11:02:43