Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
209
12.9 CSurfaceWindow< NUM_BUFFERS > Class Template Reference
#include <ut_class_window.h>
Public Member Functions
MM_ERROR CreateBuffer (const MML_GDC_SURF_FORMAT
format=MML_GDC_SURF_FORMAT_R8G8B8A8, MM_U32 MaxSize=0)
MM_ERROR CreateBuffer (MM_U32 bit_red, MM_U32 bit_green, MM_U32 bit_blue, MM_U32 bit_alpha)
MM_ERROR CreateGrayBuffer (MM_U32 bit_color, MM_U32 bit_alpha)
virtual MM_ERROR Swap ()
virtual MM_ERROR Close ()
Data Fields
CSurface< NUM_BUFFERS > m_surface
12.9.1 Detailed Description
template<unsigned int NUM_BUFFERS>class CSurfaceWindow< NUM_BUFFERS >
The class CSurfaceWindow represents a CWindow with one or more pixel buffers. The pixel buffers can be used to
store a (rendered) image that will be showed in the Window after calling Swap
12.9.2 Member Function Documentation
12.9.2.1 virtual MM_ERROR Close ( ) [inline], [virtual]
Close the Window.
Return values
MML_OK
on success. Otherwise the related error code or
MML_ERR.
Re implemented from CWindow.
12.9.2.2 MM_ERROR CreateBuffer ( const MML_GDC_SURF_FORMAT format =
MML_GDC_SURF_FORMAT_R8G8B8A8, MM_U32 MaxSize = 0 ) [inline]
Create one or more pixel buffers with the size of the window
Parameters
in
format
define the color format of the buffer
in
MaxSize
experimental: if a size != 0 is defined the function tries to create compressed buffers equal
or smaller than MaxSize. (see Image Compression)
Return values
MML_OK
on success. Otherwise the related error code or
MML_ERR.