Click or drag to resize
Ab4d.SharpEngine logo

StandardMaterial Constructor

Overload List
 NameDescription
Public methodStandardMaterial(String) Constructor
Public methodStandardMaterial(Color3, String) StandardMaterial constructor with a diffuse color (Opacity is 1)
Public methodStandardMaterial(Color4, String) StandardMaterial constructor with diffuse color and opacity specified in Color4 struct (opacity is set from color's alpha value).
Public methodStandardMaterial(Color3, Single, String) StandardMaterial constructor with a diffuse color and an opacity value
Public methodStandardMaterial(GpuImage, CommonSamplerTypes, String) StandardMaterial constructor with diffuse texture. The textureImage is not disposed when disposing this material.
Public methodStandardMaterial(Color3, Single, Single, String) StandardMaterial constructor with a diffuse color and an opacity value
Public methodStandardMaterial(String, IBitmapIO, CommonSamplerTypes, Single, String) StandardMaterial constructor with file name of the diffuse texture. The texture will be lazily loaded when this material will be initialized. When the created GpuImage is not cached by the Scene (defined by static UseSceneCacheForTextures) or GpuDevice (defined by static UseGpuDeviceCacheForTextures), then it is disposed when this Material is disposed.
Public methodStandardMaterial(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. When the created GpuImage is not cached by the Scene (defined by static UseSceneCacheForTextures) or GpuDevice (defined by static UseGpuDeviceCacheForTextures), then it is disposed when this Material is disposed.
Top
See Also