Back to previous page Back to menu Go to next page

  Title  
Function specifications
  Function  
Set color data in color RAM
Function Name
SCL_SetColRam
No
31

  format  void SCL_SetColRam (Uint32 surface, Uint32 index, Uint32 num, void * color)
 Input  surface: Screen type
 S  SCL_SPR, SCL_NBG0, SCL_NBG1, SCL_NBG2, SCL_NBG3,
  SCL_RBG0, SCL_RBG1, SCL_LNCL
:  index: Write start palette number
  num: Size of color data table
:  color: Color data table (Unit32 or Unit 16)
 Output  None
 Function value  None
 Function  Color data is set in the color RAM.
 Remarks  If you share color RAM, you only need to set one of the screens. 

  Title  
Function specifications
  Function  
Reserve area in color RAM
Function Name
SCL_AllocColRam
No
32

  format  Uint32 = SCL_AllocColRam (Uint32 surface, Uint32 numOfColors, Uint8 transparent)
 Input  surface: Screen type
 S  SCL_SPR | SCL_NBG0 | SCL_NBG1 | SCL_NBG2 | SCL_NBG3 |
  SCL_RBG0 | SCL_RBG1 | SCL_LNCL
  The same palette can be shared by multiple screens by OR operation.
  numOfColors: Number of colors
:  transparent: Set whether to disable transparent display.
 ON 

ON palette 0 is not transparent OFF palette 0 is transparent Output None Function value Start of reserved address Function Secures an area in the color RAM.

  Title  
Function specifications
  Function  
Release the area reserved in color RAM
Function Name
SCL_FreeColRam
No
33

  format  void SCL_FreeColRam (Uint32 surface)
 Input  surface: Screen type
 S  SCL_SPR | SCL_NBG0 | SCL_NBG1 | SCL_NBG2 | SCL_NBG3 |
  SCL_RBG0 | SCL_RBG1
  Multiple screens can be released simultaneously by OR operation.
 Output  None
 Function value  None
 Function  Secures an area in the color RAM. 


Back to previous page Back to menu Go to next page