Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
95
mmlGdcDispOpenDisplay( &dispProp, &display);
// Set Window properties.
windowProp.topLeftX = 0;
windowProp.topLeftY = 0;
windowProp.width = 640;
windowProp.height = 480;
//Create the window.
mmlGdcDispWinCreate(display, &windowProp, &win);
// Draw something in a surface.
MyDrawFunction(target);
// Push the surface to the surface to the window.
mmlGdcDispWinSetSurface(win, target);
mmlGdcDispWinCommit(win);
//Close Window and Display.
mmlGdcDispWinDestroy(win);
mmlGdcDispCloseDisplay(display);
Like mentioned in the Display Overview enhanced features (MML_GDC_DISP_WINDOW_PROPERTIES) can be
requested while opening (mmlGdcDispWinCreate) a window. The table below lists the available feature types and
there restrictions:
Window Feature
Comment
Restrictions
MML_GDC_DISP_FEATURE_IN
DEX_COLOR
The window can show an indexed
image.
MML_GDC_DISP_FEATURE_D
ECODE
The window can display a RLE or
RLAD buffer.
The surface must not be mirrored, rotated
if compression is used.
Cannot be combined with
MML_GDC_DISP_FEATURE_MULTI_LAY
ER.
Only 2 windows with this feature are
available.
MML_GDC_DISP_FEATURE_M
ULTI_LAYER
Up to 8 windows with different size,
color format and buffer address but
the same layerId can be opened
and used simultaneously for one
display. The combined windows
represent a common layer that can
be blended to the lower level
windows. For overlapping windows
ID the resulting pixel is defined by
the latest opened window.
Overlapping windows of this layer cannot
be blended one on top of the other. Only
the top most window will be blended
against the background.
Cannot be combined with
MML_GDC_DISP_FEATURE_DECODE.