Click or drag to resize
Ab4d.SharpEngine logo

SolidColorMaterial Constructor

Overload List
 NameDescription
Public methodSolidColorMaterial(String) SolidColorMaterial constructor.
Public methodSolidColorMaterial(Color3, String) SolidColorMaterial constructor with a diffuse color (Opacity is 1)
Public methodSolidColorMaterial(Color4, String) SolidColorMaterial constructor with diffuse color and opacity specified in Color4 struct (opacity is set from color's alpha value). The color is not alpha pre-multiplied.
Public methodSolidColorMaterial(Color3, Single, String) SolidColorMaterial constructor with a diffuse color and an opacity value
Public methodSolidColorMaterial(GpuImage, CommonSamplerTypes, String) StandardMaterial constructor with diffuse texture. The textureImage is not disposed when disposing this material.
Public methodSolidColorMaterial(Stream, String, IBitmapIO, CommonSamplerTypes, Single, String) StandardMaterial constructor with file stream of the diffuse texture. The texture will be lazily loaded when this material will be initialized. The loaded texture is disposed when disposing this material. This constructor does not have loadInBackground and initialDiffuseColor (as the one that takes textureFileName) because this would require that the fileStream is not closed until the texture is loaded (but there is no callback to the user to do that).
Public methodSolidColorMaterial(String, IBitmapIO, CommonSamplerTypes, Single, NullableColor4, Boolean, String) StandardMaterial constructor with file name of the diffuse texture. The texture will be lazily loaded when this material will be initialized. The loaded texture is disposed when disposing this material.
Top
See Also