Tutorial
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
45
winprop.layerId = MML_GDC_DISP_LAYER_0;
// use layer 0
UTIL_SUCCESS(ret, mmlGdcDispWinCreate(display, &winprop, &wMap));
//sFrame
winprop.topLeftX = 0;
winprop.topLeftY = 0;
winprop.width = dispParams.xResolution;
// horizontal display resolution
winprop.height = dispParams.yResolution;
// vertical display resolution
winprop.features = MML_GDC_DISP_FEATURE_MULTI_LAYER;
// use multi layer feature to get more windows
winprop.layerId = MML_GDC_DISP_LAYER_1;
// use layer 1
winprop.sub_layerId = MML_GDC_DISP_SUB_LAYER_DEFAULT;
// sub layer default means the driver will assign
the sub window order. The first opened window is the bottom most.
UTIL_SUCCESS(ret, mmlGdcDispWinCreate(display, &winprop, &wFrame));
//sPosition
winprop.topLeftX = CENTER_X - 16;
winprop.topLeftY = CENTER_Y - 16;
winprop.width = 32;
winprop.height = 32;
winprop.features = MML_GDC_DISP_FEATURE_MULTI_LAYER;
winprop.layerId = MML_GDC_DISP_LAYER_1;
UTIL_SUCCESS(ret, mmlGdcDispWinCreate(display, &winprop, &wPosition));
//sArrow
winprop.topLeftX = 30;
winprop.topLeftY = 25;
winprop.width = 50;
winprop.height = 50;
winprop.features = MML_GDC_DISP_FEATURE_MULTI_LAYER;
winprop.layerId = MML_GDC_DISP_LAYER_1;
UTIL_SUCCESS(ret, mmlGdcDispWinCreate(display, &winprop, &wArrow));
The following sections describe how these surfaces are used in this example.