Data Structure Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
206
12.8 CSurface< NUM_BUFFERS > Class Template Reference
#include <ut_class_surface.h>
Public Member Functions
CSurface ()
void Init ()
~CSurface ()
MM_ERROR Delete ()
virtual MM_ERROR CreateBuffer (const MM_U32 width, const MM_U32 height, const
MML_GDC_SURF_FORMAT format=MML_GDC_SURF_FORMAT_R8G8B8A8, MM_U32 MaxSize=0)
virtual MM_ERROR CreateBuffer (const MM_U32 width, const MM_U32 height, MM_U32 bit_red, MM_U32
bit_green, MM_U32 bit_blue, MM_U32 bit_alpha)
virtual MM_ERROR CreateGrayBuffer (const MM_U32 width, const MM_U32 height, MM_U32 bit_color,
MM_U32 bit_alpha)
virtual MM_ERROR SurfLoadBitmap (const void
∗
pImage, MM_BOOL bCopyToVRAM=MM_FALSE)
virtual MM_ERROR Copy (MML_GDC_SURFACE surface)
MM_S32 GetWidth ()
MM_S32 GetHeight ()
MM_BOOL HasBuffer ()
MML_GDC_SURFACE GetSurface ()
MML_GDC_SURFACE GetHandle ()
operator MML_GDC_SURFACE ()
MM_U32 GetBufferBufferCnt ()
MML_GDC_SURFACE GetSurface (int id)
void Swap ()
Protected Attributes
MML_GDC_SURFACE_CONTAINER m_buffer [NUM_BUFFERS]
MM_U32 m_bufferIdx
MM_BOOL m_bHasBuffer
12.8.1 Detailed Description
template<unsigned int NUM_BUFFERS = 1>class CSurface< NUM_BUFFERS >
Class CSurface.