although some of our customers have already done similar adaptation, we don't have any example demonstrating how to incorporate an externally created texture in Embedded Wizard GUI application using OpenGL ES.
From technical point of view it would require an enhancement of the ewextgfx.c module containing the interface between the platform independent Graphics Engine and the OpenGL ES API. Such adaptation should at least wrap the external texture within a XOpenGLSurface surface. As starting point see the implementation of the function OpenGLCreateSurface(). Analog to it you would implement a function e.g. OpenGLCreateWrappedSurface() expecting an externally created texture as parameter and wrapping it within an XOpenGLSurface structure.
Such surface can then be used as any other surface created by Embedded Wizard. For example you can display the surface by using the function OpenGLCopyDriver(). Since the externally created texture is managed externally you would also need to invoke OpenGLCopyDriver() at the right moment during the screen update process.
Important: the OpenGL context used in your implementation and the context used by Embedded Wizard should be configured to share the resources. Otherwise Embedded Wizard will not be able to use any texture created outside Embedded Wizard.
Since the integration of externally created textures within Embedded Wizard GUI has been asked more frequently in recent times, we have enhanced the Embedded Wizard by new API to create such 'wrapped' bitmaps. This new functionality will be available in the next version that we plan to release in the fall.
Does it answer your question?
Ask Embedded Wizard
Welcome to the question and answer site for Embedded Wizard users and UI developers.
Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!