Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Change texture color data
Function Name
SPR_3ChangeTexColor
No
13

  format  voidSPR_3ChangeTexColor (Uint16 charNo, Uint16 color,
  SprLookupTbl * lookupTbl)
 Input  charNo: Character number
 Color  color: Color data
 Lookup table number or color bank code 
 LookupTbl: Lookup table pointer
 Output  None
 Function value  None
 Function  Color data and color lookup table of registered texture specified by character number
 will be changed.
:  If lookupTbl is 0, only change the color and register the color lookup table.
  

  Title  
Function specifications
  Function  
Set minimum and maximum values ​​for Z sort range
Function Name
SPR_3SetZSortMinMax
No
14

  format  voidSPR_3SetZSortMinMaxl (Uint16 zSortMode, Fixed32 zSortMin, Fixed32 zSortMax)
 Input  zSortMode: Z sort Z coordinate value adoption mode
  ZSORT_FLOAT_MODE = floating mode
  ZSORT_FIXED_MODE = Fixed mode
:  zSortMin: Viewpoint coordinate system Z sort Z coordinate minimum value
 zBrtMax: Viewpoint coordinate system Z sort Z coordinate maximum value
 Output  None
 Function value  None
 Function  zSortMin and zSortMax are parameters that specify the Z range for dividing the drawing order into blocks.
:  Set before executing the SPR3_DrawModel () routine.
:  When the floating mode is specified as the Z coordinate value adoption mode, the specified zSortMin and zSortMax are the first
:  The initial value, and the Z coordinate maximum value and minimum value at the time of the previous drawing are used for the subsequent Z range.
:  In fixed mode, the specified zSortMin and zSortMax are used as fixed values.
.  When initializing the SPR_3Initial () routine, -10.0 is set as zSortMin and 0.0 is set as zSortMax.
.  Set and the Z coordinate value adoption mode is floating mode.
  In the viewpoint coordinate system, the viewpoint position coordinate is 0.0 and the Z direction is negative.
:  Since the block used for Z sort uses the drawing priority block of VDP1 extended processing,
:  If you want to perform detailed Z sorting, increase the number of drawing priority blocks in the 2D work area definition.
  Must be picked up.
:  Also, when performing Z sort, drawPrtyFlag = SPR_2DRAW_PR in the SPR_2OpenCommand () routine
 must be  TY_ON. 


Return to previous page Return to menu Go to next page