LiEmissionSetRead

FunctionLtStatus
LiEmissionSetRead( LtString file_name
LtEmissionSet* the_set
)
Synopsis Create an emission set by reading from file.
Locationlishpro
Parameters
file_name Photometric distribution data file.
the_set Emission set to be read into.
Return Value A status value.

Description As well as defining an emission set directly via a call to LiEmissionSetCreate it is also possible to generate one using a photometric data file. All file formats supported by the goniometric light shader are supported for emission sets.

Example

LtEmissionSet the_set = (LtEmissionSet)NULL ;
LtString      file_name = "test_file" ;
LtStatus      status = LI_STATUS_OK ;

/*
 * Create an emission set using LiEmissionSetRead.
 */

status = LiEmissionSetRead( file_name, &the_set ) ;

See Also LiEmissionSetCopy
LiEmissionSetCreate
LiEmissionSetDebug
LiEmissionSetDestroy
LiEmissionSetEnquire
LiEmissionSetPreProcess
LiEmissionSetWrite

Copyright © 1990-1998, 1999 LightWork Design Limited. All rights reserved