This topic explains how to implement eglCreateWindowSurface() on the Symbian platform.
The steps are as follows:
Use RSurfaceManager and typically RChunk to create a composition surface. The details vary depending on the type of memory that is to be used for the composition surface's buffers. For example, the details are different when specialized graphics memory is used rather than standard CPU memory.
Assign the composition surface to an RWindow by calling:
TInt SetBackgroundSurface(const TSurfaceConfiguration& aConfiguration, TBool aTriggerRedraw);
Ensure that both the extent and viewport of the TSurfaceConfiguration are set to the full extent of the surface.
The following table provides a summary of the key APIs.
API | Description |
---|---|
The client-side API of the Surface Manager. This provides methods to create, open and close composition surfaces and to map a composition surface to an actual memory address. Use this API to create the composition surface. |
|
The client-side API of the Surface Update Server. This provides a channel for a surface's stakeholders to inform each other of changes. Use this as follows: |
|
Part of the Window Server client-side API, this function sets the background of a window to be a given composition surface (called an external surface in the Window Server documentation). This means that when an RWindow is moved, Window Server automatically moves its associated background surface. This function does the following:
There are two forms of this function:
See External Surfaces Overview for an introduction to some of the key concepts. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.