Independent Software Solutions 

CONTENTS

  CSM SURFACE TEXTURE


Functions

Synopsis

return CSM SURFACE TEXTURE( mesh index As Integer, surface index ) As Integer

Purpose

Returns the texture index for the specified mesh and surface.  This index can be used with the CSM texture functions for obtaining the texture name and DarkBASIC Professional image media identifier.  

Parameters

mesh index

The mesh index >=0 and <total to obtain the surface required.  Use the CSM COUNT function to obtain the maximum number of meshes available

surface index

The surface index >=0 and <total to obtain the object media identifier.  Use CSM SURFACE COUNT to obtain the maximum number of surfaces available for a mesh.

Return value

An integer value specifying the texture index associated with the surface.

 

(C) Paul S. J. Millard 2006