IScene3DPrimitive.BitmapIndex

Syntax

BitmapIndex: Integer;

Description

The BitmapIndex property determines an index of the image contained in the IScene3DTextureManager textures collection.

The property is set to -1 by default, that is, the texture is undefined.

Example

This example assumes that there is the S object of the IScene3D type.

Sub Chart3D;

Var

s : IScene3D;

Begin

s.DisplayedObjects.TextureManager.LoadFromFile("c:\1.bmp");

s.DisplayedObjects.CoordinatePlanes.BackPlane.Plane.BitmapIndex := 0;

End Sub Chart3D;

After executing the example scene background is filled with the texture loaded from file.

See also:

IScene3DPrimitive

IScene3DTextureManager