globalmapper.GetElevationShaders

globalmapper.GetElevationShaders(bool aCustomOnly) GM_CustomShader_t, uint32[source]

Returns a pointer to the start of an array of all the available elevation shaders as GM_CustomShader_t objects, as well as the length of the array. The pointer on its own isn’t very useful in Python, as it will just give the first item in the array; you can use GM_CustomShader_array_frompointer to get an indexable array from the pointer.

Parameters:

aCustomOnly (bool) – Do you only want custom shaders returned?

Returns:

The array of available shaders

Return type:

GM_CustomShader_t

Returns:

Number of shaders in the array

Return type:

uint32