Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
192
11.28.2.5 CSurface ( )
Class CSurface constructor.
11.28.2.6 MM_ERROR Delete ( )
The Delete function can be used to free up allocated memory (if any). This function will be called in destructor too.
Return values
MML_OK
on success. Otherwise the related error code.
11.28.2.7 void Init ( )
Class CSurface init function. This functions does exactly the same as the constructor. It is needed for some
compilers (at the moment ghs and gnu), not running the constructors of global classes before main. This function
can be called from main as a workarroung.
11.28.2.8 MM_ERROR SurfLoadBitmap ( const void
∗
pImage, MM_BOOL bCopyToVRAM =
MM_FALSE ) [virtual]
The CreateBuffer function uses the utSurfLoadBitmap function to initialize the current surface object.
Parameters
in
pImage
Pointer to the image
in
bCopyToVRAM
MM_TRUE if the bitmap and color look up table memory should be copied into VRAM.
Return values
MML_OK
on success. Otherwise the related error code.