|MAKE CSM FROM MEMBLOCK|
MAKE CSM FROM MEMBLOCK memblock As Integer, lightmap type As Integer
This function will create a Cartography Shop (v4.x) map file directly into DarkBASIC Professional from a memblock identifier. 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. Note that the texture category folders used by the map file in your memblock, must be located in the same folder as your executable. The reason for this is that the memblock does not contain the path for where the map was originally loaded.
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 memblock identifier that specifies the memblock containing the Cartography Shop map data.
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.
(C) Paul S. J. Millard 2006