Class TMaterial
Unit
a3dge.Material
Declaration
type TMaterial = class(TObject)
Description
Define a material.
A material is defined by different components, each one of a different color. It may also contain a texture that will be mixed with the other components.
See also
- TMaterialList
- A list of materials.
Hierarchy
Overview
Methods
 |
CONSTRUCTOR Create (aFreeTexture: Boolean = True); |
 |
destructor Destroy; override; |
 |
PROCEDURE Apply; VIRTUAL; |
Properties
Description
Methods
 |
CONSTRUCTOR Create (aFreeTexture: Boolean = True); |
Creates a material.
It sets all components as a neutral white material.
Parameters
- aFreeTextures
- Should texture be freed when destroyed?
See also
- OwnsTexture
- Should the material free the texture when destroyed.
|
 |
destructor Destroy; override; |
Destructor.
If OwnsTexture is True it will destroy the Texture.
|
 |
PROCEDURE Apply; VIRTUAL; |
Apply the material.
Apply will activate or deactivate 2D texturing depending it has a Texture assigned.
|
Properties
 |
property Specular: TColorDescription READ fSpecular WRITE fSpecular; |
Specular property.
|
 |
property Emission: TColorDescription READ fEmission WRITE fEmission; |
Emission property.
|
 |
property Shininess: GLfloat READ fShininess WRITE fShininess; |
Shininess property.
|
 |
property Name: AnsiString read fName write Setname; |
Material name.
See also
- TMaterialList.Find
- Search material by name.
|
 |
property TextureName: AnsiString read fTextureName write fTextureName; |
Texture name.
This is just to identify the Texture. It's not used by the texture itself.
Assigning it won't imply the Texture is assigned.
|
 |
property Texture: ALLEGRO_BITMAPptr read fTexture write SetTexture; |
Texture bitmap.
When assigned, if OwnsTexture is True the previous texture will be destroyed.
|
Generated by PasDoc 0.15.0. Generated on 2025-07-31 11:41:01.
|