OpenGL Library for Delphi,
maintained by Eric Grange,
based on Mike Lischke's GLScene.

 

Reference Manual - TGLTextureFormat


Used by the TGLTexture textureformat property to specify how a texture is stored in memory. For example if the textureformat is set to tfRGB then the texture will be stored in memory without the alpha channel (transparency channel) thus saving video RAM. Internally, GLScene handles all images as 32 Bits RGBA, but you can specify the textureformat to reduce OpenGL texture memory use. The actual representation may differ, f.i. old 16bits boards may convert everything to 16bit formats, GeForce boards don't have a 24 bits format internally and will convert to 32 bits, etc.

TGLTextureFormat is the enumerated type:
TGLTextureFormat = (tfDefault, tfRGB,tfRGBA, tfRGB16,tfRGBA16, tfAlpha, tfLuminance, tfLuminanceAlpha, tfIntensity, tfNormalMap, tfRGBAFloat16,tfRGBAFloat32);

tfDefault : uses global default format which is tfRBGA
image


tfRGB : 24 bits RGB, 8 bits per component. No alpha channel is stored.
image


tfRGBA : 32 bits RGBA, 8 bits per component. Includes alpha channel.
image


tfRGB16 : 16 bits RGB (5, 5, 5). Stores a color without alpha in 2 bytes
image


tfRGBA16 : 16 bits RGBA (4, 4, 4, 4). Stores a color with alpha in 2 bytes
image


tfAlpha : 8 Bits Alpha-channel only. Only the alpha channel is stored.
image


tfLuminance : 8 bits Luminance only
image


tfLuminanceAlpha : 16 bits Luminance and Alpha channel (8, 8)
image


tfIntensity : 8 bits Intensity only
image


tfNormalMap : 24 bits RGB normal map, which is computed from the original texture (assumed to be an hightmap)
image


Unit: GLTexture

  Attachment Size Date Added
    
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0599 seconds