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

 

Reference Manual - TGLMaterial


Holds a texture. GLScene objects (eg a sphere) have a material property (type TGLMaterial) and is used to assign a texture to an object. The TGLMaterial has properties for linking a material to a material in a material library (materiallibrary and libmaterialname). Refer to the article about assigning textures. TGLMaterial also has properties for specifying the color of a non textured material and how a texture is blended.


For information about loading a texture refer to the loading a texture article. To change an objects color refer to the setting a GLScene objects color article. For changing a textures transprancy refer to making a texture transparent. For information about superblack transparency refer to using superblack transparency.

Important TGLMaterial properties:
texture TGLTexture: Property that holds the texture
frontproperties TGLFaceProperties: Used to define the color or a material and define material transparency
blendingmode TBlendingMode: Used to specify if the material is opaque or transparent
materiallibrary TGLMaterialLibrary: Is the material library used if the material comes from the material library
libmaterialname: Name of the material in the material library if the material library is used



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.0381 seconds