Global Mapper v25.0

GM_VerticalDisplayOptions_t

dmcclean
dmcclean Global Mapper UserTrusted User
edited September 2009 in Technical Support
Where is the definition of GM_VerticalDisplayOptions_t?

It is used by GM_Get/SetVerticalDisplayOptions, but I can't find the definition in any of the include files I have.

Apologies if I'm missing something obvious, C isn't my forte.

Comments

  • global_mapper
    global_mapper Administrator
    edited September 2009
    It is in GlobalMapperTypes.h, which comes with the SDK. Here is the declaration:

    typedef struct
    {
    uint32 mSize; // Size of structure
    const char* mShaderName; // Shader name
    float mAmbientLight; // Ambient light level (Range: 0.0 - 1.0)
    float mVertExag; // Vertical exaggeration (Range: 0.1 - 10.0)
    float mLightAltitude; // Light altitude (Range: 0.0 - 90.0)
    float mLightAzimuth; // Light azimuth (Range: 0.0 - 360.0)
    boolean mHillShading; // Is hill shading enabled?
    boolean mWaterEnabled; // Is Water display enabled?
    uint8 mWaterAlpha; // Alpha translucency of water (Range: 0 - 255)
    uint8 mWaterColorRed; // Water color - red component
    uint8 mWaterColorGrn; // Water color - green component
    uint8 mWaterColorBlue;// Water color - blue component
    float mWaterLevel; // Water level (meters)
    uint8 mShadeDarkness; // Maximum hill shader shadow darkness (0 - 255, 0 is black, 255 is white)
    uint8 mShadeHighlight;// Highlight level (whiteness) to apply for direct sunlight (0 is no additional whiteness, and 255 is completely white)

    } GM_VerticalDisplayOptions_t;


    Let me know if I can be of further assistance.

    Thanks,

    Mike
    Global Mapper Support
    support@globalmapper.com
  • dmcclean
    dmcclean Global Mapper User Trusted User
    edited September 2009
    Thanks!
    Sorry for wasting your time, I hate notepad search for not looping back around when it hits the end of the file. D'oh.