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

 

Reference Manual - TGLTexture


Class used by TGLMaterial to hold the texture. Contains properties regarding texture filtering and also a property for the texture image itself.
TGLTexture properties:

image TGLTextureImage :
Holds the texture image.

texturemode: TGLTextureMode
How texture is applied to the object. For example is the texture blended with the material emission color. Refer to TGLTextureMode for more information.

magfilter TGLMagFilter
How a texture is displayed when seen close up ie magnified. Refer to TGLMagFilter for more information.

minfilter TGLMinFilter
How a texture is displayed when seen in the distance ie minified. Refer to TGLMinFilter for more information.

imagebrightness single
Brightens (greater than 1) or darkens (less than 1) a texture. Brightness applied on loading a TGLTextureImage.

imagegamma single
Corrects the brightness of an image. The gamma correction is applied upon loading a TGLTextureImage

imagealpha TGLTextureImageAlpha
How transparency on the texture is defined. For example if a pixel is black make it transparent.

texturewrap TGLTextureWrap: Specifies if a texture is tiled or is mapped to fit the entire object. Refer to TGLTextureWrap for more information.

disabled boolean
Specifies the texture is disabled. Set to disabled if you want the front properties emission of TGLMaterial to be visible rather than the texture.

textureformat TGLTextureFormat
How a texture is stored in memory. Refer to TGLTextureFormat for more information

imageclassname string
Defines the type of image used by the texture. For example a cube map is made up of 6 images compared to a normal image which uses one. The imageclassname has the valid strings 'Blank Image', 'Persistant Image', 'PicFile Image', 'CubeMap Image', 'FloatData Image', 'Procedural Noise'. Based upon these strings the TGLTextureImage class is overridden.

'Persistant Image' TGLPersistentImage is default
'Blank Image' TGLBlankImage
'CubeMap Image' TGLCubeMapImage

filteringquality TGLTextureFilteringQuality
Whether or not isotropic or anisotropic filtering is used. Refer to TGLTextureFilteringQuality for more information.

mappingmode TGLTextureMappingMode
Specifies how a texture is mapped to an object. Controls automatic texture coordinates generation. Refer to TGLTextureMappingMode for more information.

mappingscoordinates TGLCoordinates4
Used when the mappingmode is either tmmObjectLinear or tmmEyeLinear. Specifies the S axis of the texture and controls the part and scale of the texture that is mapped onto the object. All you need to know is that mappingscoordinates and mappingtcoordinates are texture coordinates. By default they are set up to take the current x location on the screen and the current y location on the screen and come up with a texture vertex. You'll notice the objects are not textured on the z plane... just stripes appear. The front and back faces are textured though, and that's all that matters. X (GL_S) will cover mapping the texture left to right, and Y (GL_T) will cover mapping the texture up and down.

mappingtcoordinates TGLCoordinates4
Same as mappingscoordinates except is for the T axis of the texture.

compression TGLTextureCompression
Specifies how a texture is compressed. Refer to TGLTextureCompression for more information.

envcolor TGLColor
Color used for blending when texture mode is tmBlend. Is also used when doing texture combiner operations eg with TGLTexCombinerShader.

normalmampscaling single
Only applies when textureformat is tfNormalMap, this property defines the scaling that is applied during normal map generation (ie. controlsthe intensity of the bumps).

Unit: GLTexture

Descends from TGLUpdateAbleObject.
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.1153 seconds