Click or drag to resize

GM_DrawLayer

Draws one or more layers to the provided device context at the given location. If aWorldBounds is not NULL, at least the specified area will be drawn. The aspect ratio of the screen pixels will be maintained, so slightly more of the world bounds than specified may be drawn. If aWorldBounds is NULL, the entire specified layer or all of the loaded layers will be rendered.

Syntax
GM_Error_t32 GM_DrawLayer
(
HDC                     aDC,            // Device context to draw to
GM_LayerHandle_t32      aLayer,         // Layer to draw or NULL for all
const GM_Rectangle_t*   aWorldBounds,   // World bounds to draw or NULL for all
sint32                  aLeftPixel,     // Left pixel coordinate to draw to
sint32                  aTopPixel,      // Top pixel coordinate to draw to
sint32                  aPixelWidth,    // Width in pixels to draw
sint32                  aPixelHeight    // Height in pixels to draw
);