Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.05 KB

File metadata and controls

45 lines (35 loc) · 1.05 KB

SetTextureBitmap

Description

Procedure SetTextureBitmap sets the bitmap object attached to the referenced texture. If no texture is desired then set textureBitmap to NIL.

PROCEDURE SetTextureBitmap(
				shaderRecord  : HANDLE;
				textureBitmap : HANDLE);
def vs.SetTextureBitmap(shaderRecord, textureBitmap):
    return None

Parameters

Name Type Description
shaderRecord HANDLE Handle to shader record.
textureBitmap HANDLE Handle to texture bitmap.

Remarks

Sets the bitmap for a shader record, use NIL for no bitmap

Examples

SetTextureBitmap(shaderRecord, textureBitmap);
import vs

# Procedure SetTextureBitmap sets the bitmap object attached to the
# referenced texture.
shaderRecord = vs.GetObject('MyRecord')  # handle to a record format
textureBitmap = vs.NextSObj(vs.FSActLayer())  # handle to the next selected object

vs.SetTextureBitmap(shaderRecord, textureBitmap)

Version

Availability: from VectorWorks8.0

Category