return LOAD CSM( filename As String, lightmap type As Integer ) As Integer
This function will load a Cartography Shop (v4.x) map file directly into DarkBASIC Professional. All meshes will be automatically created, textured and lightmapped accordingly. The loading process will also scan groups, entities and meshes for their string properties, and separate them for you. Use the other functions for accessing these properties.
This plugin now supports multiple map loading. This allows one or more maps to be loaded into DarkBASIC Professional, each one used individually by using the CSM SET MAP function. If you call this function when an already loaded map is in memory, this will generate new geometry for the loaded map.
A string parameter that specifies the path and filename of the Cartography Shop map file to load.
An integer value that specifies the type of lightmapping that should be performed when the map file is loaded.
0 - Switches off lightmapping
1 - Obsolete parameter, if used, same behaviour as 0.
2 - This enables lightmapping by using texture blending of both the main map textures and the lightmap textures. Please also refer to CSM BLEND MODE.
Returns 1 if the file was successfully loaded or 0 if it failed.
(C) Paul S. J. Millard 2006