Creates a new box.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XMaterialSprite AddBox( float x, float y, float z, float width, float height, float depth, string fileName ) |
Parameters
- x
- Type: System..::.Single
The X coordinate of the object.
- y
- Type: System..::.Single
The Y coordinate of the object.
- z
- Type: System..::.Single
The Z coordinate of the object.
- width
- Type: System..::.Single
The width of the object.
- height
- Type: System..::.Single
The height of the object.
- depth
- Type: System..::.Single
The depth of the object.
- fileName
- Type: System..::.String
Name of the file with bitmap image that will be loaded on the object surface.