★ Enumeration constant



ListReference

constant

FALSE



ListReference

constant

TRUE


Logical constant 1 (false, true)

Form

    enum BooleanLogic {
      FALSE = 0,
      TRUE = 1
    };

function

    FALSE : Fake TRUE : True 



ListReference

constant

OFF OFF



ListReference

constant

ON


Logical constant 2 (switch)

Form

    enum Bool eanSwitch {
      OFF = 0,
      ON = 1
    };

function

    OFF : Disabled ON : Enabled 



ListReference

constant

OK



ListReference

constant

NG


Result judgment constant (success, failure)

Form

    enum Judgement {
      OK = 0,
      NG = -1
    };

function

      OK : Success NG : Failure 



ListReference

constant

X



ListReference

constant

Y



ListReference

constant

Z



ListReference

constant

S



ListReference

constant

Sh



ListReference

constant

Sv



ListReference

constant

XY



ListReference

constant

XYZ



ListReference

constant

XYZS



ListReference

constant

XYZSS


Simple representation when declaring an array

Form

    enum ps {
      X,
      Y,
      Z,
      XYZ,
      XYZS,
      XYZSS,
      XY = Z,
      S = XYZ,
      Sh = S,
      Sv = XYZS
    };

function

    X: First element of the array Y: Second element of the array Z: Third element of the array S: Fourth element of the array Sh: Fourth element of the array Sv: Fifth element of the array XY: 2 XYZ: For array of dimensional information XYZ: For array of 3D information XYZS: For array with 3D information plus 1st order scale XYZSS: For array with 3D information plus 2nd order scale 



ListReference

constant

M00



ListReference

constant

M01



ListReference

constant

M02



ListReference

constant

M10



ListReference

constant

M11



ListReference

constant

M12



ListReference

constant

M20



ListReference

constant

M21



ListReference

constant

M22



ListReference

constant

M30



ListReference

constant

M31



ListReference

constant

M32



ListReference

constant

MTRX



ListReference

constant

mtrx


Matrix element number

Form

    enum mtrx {
      M00, M01, M02,
      M10, M11, M12,
      M20, M21, M22,
      M30, M31, M32,
      MTRX
    };



ListReference

constant

TV_320x224



ListReference

constant

TV_320x240



ListReference

constant

TV_320x256



ListReference

constant

TV_352x224



ListReference

constant

TV_352x240



ListReference

constant

TV_352x256



ListReference

constant

TV_640x224



ListReference

constant

TV_640x240



ListReference

constant

TV_640x256



ListReference

constant

TV_704x224



ListReference

constant

TV_704x240



ListReference

constant

TV_704x256



ListReference

constant

TV_320x448



ListReference

constant

TV_320x480



ListReference

constant

TV_320x512



ListReference

constant

TV_352x448



ListReference

constant

TV_352x480



ListReference

constant

TV_352x512



ListReference

constant

TV_640x448



ListReference

constant

TV_640x480



ListReference

constant

TV_640x512



ListReference

constant

TV_704x448



ListReference

constant

TV_704x480



ListReference

constant

TV_704x512



ListReference

constant

TV_dummy1



ListReference

constant

TV_dummy2



ListReference

constant

TV_dummy3



ListReference

constant

TV_dummy4



ListReference

constant

tvsz


TV screen mode

Form

    enum tvsz {
      TV_320x224, TV_320x240, TV_320x256, TV_dummy1,
      TV_352x224, TV_352x240, TV_352x256, TV_dummy2,
      TV_640x224, TV_640x240, TV_640x256, TV_dummy3,
      TV_704x224, TV_704x240, TV_704x256, TV_dummy4,

      TV_320x448, TV_320x480, TV_320x512, TV_dummy5,
      TV_352x448, TV_352x480, TV_352x512, TV_dummy6,
      TV_640x448, TV_640x480, TV_640x512, TV_dummy7,
      TV_704x448, TV_704x480, TV_704x512, TV_dummy8
    };

reference

 slInitSystem
 slSetTVMode
 slSetScrTVMode
 slSetSprTVMode 



ListReference

constant

SORT_BFR



ListReference

constant

SORT_MIN



ListReference

constant

SORT_MAX



ListReference

constant

SORT_CEN


Sort criteria type

Form

    enum base {
      SORT_BFR,
      SORT_MIN,
      SORT_MAX,
      SORT_CEN
    };

function

    SORT_BFR --Use the position of the polygon displayed immediately before SORT_MIN --Use the frontmost point of the 4 points SORT_MAX --Use the farthest point of the 4 points SORT_CEN --Use the average position of 4 points 



ListReference

constant

Single_Plane



ListReference

constant

Dual_Plane


Front and back judgment flag

Form

    enum pln {
      Single_Plane,
      Dual_Plane
    };

function

    Single_Plane --Single-sided polygon Dual_Plane --Double-sided polygon (do not see the result of front / back judgment)




ListReference

constant

CLRate31_1



ListReference

constant

CLRate30_2



ListReference

constant

CLRate29_3



ListReference

constant

CLRate28_4



ListReference

constant

CLRate27_5



ListReference

constant

CLRate26_6



ListReference

constant

CLRate25_7



ListReference

constant

CLRate24_8



ListReference

constant

CLRate23_9



ListReference

constant

CLRate22_10



ListReference

constant

CLRate21_11



ListReference

constant

CLRate20_12



ListReference

constant

CLRate19_13



ListReference

constant

CLRate18_14



ListReference

constant

CLRate17_15



ListReference

constant

CLRate16_16



ListReference

constant

CLRate15_17



ListReference

constant

CLRate14_18



ListReference

constant

CLRate13_19



ListReference

constant

CLRate12_20



ListReference

constant

CLRate11_21



ListReference

constant

CLRate10_22



ListReference

constant

CLRate9_23



ListReference

constant

CLRate8_24



ListReference

constant

CLRate7_25



ListReference

constant

CLRate6_26



ListReference

constant

CLRate5_27



ListReference

constant

CLRate4_28



ListReference

constant

CLRate3_29



ListReference

constant

CLRate2_30



ListReference

constant

CLRate1_31



ListReference

constant

CLRate0_32


Color calculation ratio

Form

    enum color_rate {
      CLRate31_1,
      CLRate30_2,
      CLRate29_3,
      CLRate28_4,
      CLRate27_5,
      CLRate26_6,
      CLRate25_7,
      CLRate24_8,
      CLRate23_9,
      CLRate22_10,
      CLRate21_11,
      CLRate20_12,
      CLRate19_13,
      CLRate18_14,
      CLRate17_15,
      CLRate16_16,
      CLRate15_17,
      CLRate14_18,
      CLRate13_19,
      CLRate12_20,
      CLRate11_21,
      CLRate10_22,
      CLRate9_23,
      CLRate8_24,
      CLRate7_25,
      CLRate6_26,
      CLRate5_27,
      CLRate4_28,
      CLRate3_29,
      CLRate2_30,
      CLRate1_31,
      CLRate0_32
    };




ListReference

constant

SMPC_SH2_DIRECT



ListReference

constant

SMPC_CONTROL


SMPC I / O select mode

Form

    enum SmpcSelect {
      SMPC_SH2_DIRECT,
      SMPC_CONTROL
    };

function

    SMPC_SH2_DIRECT --SH2 Direct SMPC_CONTROL --SMPC Control

reference

 slGetPortSelect1
 slGetPortSelect2
 slSetPortSelect1
 slSetPortSelect2
 slGetStatus 



ListReference

constant

SMPC_EXL_ENA



ListReference

constant

SMPC_EXL_DIS


SMPC external latch input mode

Form

    enum SmpcExtLatch {
      SMPC_EXL_ENA,
      SMPC_EXL_DIS
    };

function

    SMPC_EXL_ENA --Allow external latch input SMPC_EXL_DIS --Prohibit external latch input

reference

 slGetPortExt1
 slGetPortExt2
 slSetPortExt1
 slSetPortExt2
 slGetStatus 



ListReference

constant

SMPC_RES_ON



ListReference

constant

SMPC_RES_OFF


SMPC reset button state

Form

    enum SmpcResetButton {
      SMPC_RES_ON,
      SMPC_RES_OFF
    };

function

    SMPC_RES_ON --Reset button ON
    SMPC_RES_OFF --Reset button OFF

reference

 slCheckReset
 slGetStatus 



ListReference

constant

SMPC_AREA_RSV_0



ListReference

constant

SMPC_AREA_JP



ListReference

constant

SMPC_AREA_AJ_NTSC



ListReference

constant

SMPC_AREA_RSV_3



ListReference

constant

SMPC_AREA_NA



ListReference

constant

SMPC_AREA_SA_NTSC



ListReference

constant

SMPC_AREA_KO



ListReference

constant

SMPC_AREA_RSV_7



ListReference

constant

SMPC_AREA_RSV_8



ListReference

constant

SMPC_AREA_RSV_9



ListReference

constant

SMPC_AREA_AJ_PAL



ListReference

constant

SMPC_AREA_RSV_B



ListReference

constant

SMPC_AREA_EU_PAL



ListReference

constant

SMPC_AREA_SA_PAL



ListReference

constant

SMPC_AREA_RSV_E



ListReference

constant

SMPC_AREA_RSV_F


Area code

Form

    enum SmpcAreaCode {
      SMPC_AREA_RSV_0,
      SMPC_AREA_JP,
      SMPC_AREA_AJ_NTSC,
      SMPC_AREA_RSV_3,
      SMPC_AREA_NA,
      SMPC_AREA_SA_NTSC,
      SMPC_AREA_KO,
      SMPC_AREA_RSV_7,
      SMPC_AREA_RSV_8,
      SMPC_AREA_RSV_9,
      SMPC_AREA_AJ_PAL,
      SMPC_AREA_RSV_B,
      SMPC_AREA_EU_PAL,
      SMPC_AREA_SA_PAL,
      SMPC_AREA_RSV_E,
      SMPC_AREA_RSV_F
    };

function

    SMPC_AREA_RSV_0, --Prohibited SMPC_AREA_JP, --Japanese region SMPC_AREA_AJ_NTSC --Asia NTSC region SMPC_AREA_RSV_3 --Prohibited SMPC_AREA_NA --North American region SMPC_AREA_SA_NTSC --Latin American NTSC region SMPC_AREA_SA_NTSC --Central and South American NTSC region SMPC_AREA_AREA_KO --Prohibited SMPC_AREA_AJ_PAL --Asia PAL region SMPC_AREA_RSV_B --Prohibited SMPC_AREA_EU_PAL --European PAL region SMPC_AREA_SA_PAL --Latin American PAL region SMPC_AREA_RSV_E --Prohibited SMPC_AREA_RSV_F

reference

 slGetStatus 



ListReference

constant

SMPC_OPT_DIS



ListReference

constant

SMPC_OPT_ENA


Acquisition time optimization mode

Form

    enum SmpcOptimize {
      SMPC_OPT_DIS,
      SMPC_OPT_ENA
    };

function

    SMPC_OPT_DIS --Prohibition of acquisition time optimization SMPC_OPT_ENA --Allow acquisition time optimization

reference

 slGetOptimize
 slSetOptimize
 slGetStatus 



ListReference

constant

SMPC_PORT_15



ListReference

constant

SMPC_PORT_255



ListReference

constant

SMPC_PORT_RSV



ListReference

constant

SMPC_PORT_ZERO


SMPC port mode

Form

    enum SmpcPortMode {
      SMPC_PORT_15,
      SMPC_PORT_255,
      SMPC_PORT_RSV,
      SMPC_PORT_ZERO
    };

function

    SMPC_PORT_15 --15 byte mode SMPC_PORT_255 --255 byte mode SMPC_PORT_RSV --Setting prohibited SMPC_PORT_ZERO --0 byte mode

reference

 slGetPortMode1
 slGetPortMode2
 slSetPortMode1
 slSetPortMode2
 slGetStatus 



ListReference

constant

SMPC_ENGLISH



ListReference

constant

SMPC_DEUTSCH



ListReference

constant

SMPC_FRANCAIS



ListReference

constant

SMPC_ESPANOL



ListReference

constant

SMPC_ITALIANO



ListReference

constant

SMPC_JAPAN


SMPC memory language number

Form

    enum SmpcLanguage {
      SMPC_ENGLISH,
      SMPC_DEUTSCH,
      SMPC_FRANCAIS,
      SMPC_ESPANOL,
      SMPC_ITALIANO,
      SMPC_JAPAN
    };

function

    SMPC_ENGLISH --English SMPC_DEUTSCH --German SMPC_FRANCAIS --French SMPC_ESPANOL --Spanish SMPC_ITALIANO --Italian SMPC_JAPAN --Japanese

reference

 slGetLanguage
 slSetLanguage
 slGetStatus 



ListReference

constant

SMPC_EFFECT_OFF



ListReference

constant

SMPC_EFFECT_ON


SMPC memory sound effect mode

Form

    enum SmpcSoundEffect {
      SMPC_EFFECT_OFF,
      SMPC_EFFECT_ON
    }; 

function

    SMPC_EFFECT_OFF --Sound effect OFF
    SMPC_EFFECT_ON --Sound effect ON

reference

 slGetSoundEffect
 slSetSoundEffect
 slGetStatus 



ListReference

constant

SMPC_SOUND_MONO



ListReference

constant

SMPC_SOUND_STEREO


SMPC memory audio output mode

Form

    enum SmpcSoundOutput {
      SMPC_SOUND_MONO,
      SMPC_SOUND_STEREO
    };

function

    SMPC_SOUND_MONO --Monaural SMPC_SOUND_STEREO --Stereo

reference

 slGetSoundOutput
 slSetSoundOutput
 slGetStatus 



ListReference

constant

SMPC_HELP_DIS



ListReference

constant

SMPC_HELP_ENA


SMPC memory help window mode

Form

    enum SmpcHelpWindow {
      SMPC_HELP_DIS,
      SMPC_HELP_ENA
    };

function

    SMPC_HELP_DIS --Do not show SMPC_HELP_ENA --Show

reference

 slGetHelpWindow
 slSetHelpWindow
 slGetStatus 



ListReference

constant

SMPC_DMY



ListReference

constant

SMPC_JAN



ListReference

constant

SMPC_FEB



ListReference

constant

SMPC_MRA



ListReference

constant

SMPC_APR



ListReference

constant

SMPC_MAY



ListReference

constant

SMPC_JUN



ListReference

constant

SMPC_JUL



ListReference

constant

SMPC_AUG



ListReference

constant

SMPC_SEP



ListReference

constant

SMPC_OCT



ListReference

constant

SMPC_NOV



ListReference

constant

SMPC_DEC


RTC month number

Form

    enum SmpcMonth {
      SMPC_DMY,
      SMPC_JAN,
      SMPC_FEB,
      SMPC_MAR,
      SMPC_APR,
      SMPC_MAY,
      SMPC_JUN,
      SMPC_JUL,
      SMPC_AUG,
      SMPC_SEP,
      SMPC_OCT,
      SMPC_NOV,
      SMPC_DEC
    };

function

    SMPC_DMY --Dummy SMPC_JAN --January SMPC_FEB --February SMPC_MAR --March SMPC_APR --April SMPC_MAY --May SMPC_JUN --June SMPC_JUL --July SMPC_AUG --August SMPC_SEP --September SMPC_OCT --October SMPC_NOV --November SMPC_DEC --December

reference

 slGetStatus 



ListReference

constant

SMPC_MSHON



ListReference

constant

SMPC_SSHON



ListReference

constant

SMPC_SSHOFF



ListReference

constant

SMPC_SNDON



ListReference

constant

SMPC_SNDOFF



ListReference

constant

SMPC_CDON



ListReference

constant

SMPC_CDOFF



ListReference

constant

SMPC_SYSRES



ListReference

constant

SMPC_CKC352



ListReference

constant

SMPC_CKC320



ListReference

constant

SMPC_NMIREQ



ListReference

constant

SMPC_RESENA



ListReference

constant

SMPC_RESDIS



ListReference

constant

SMPC_GETSTS



ListReference

constant

SMPC_GETPER



ListReference

constant

SMPC_SETMEM



ListReference

constant

SMPC_SETTIM



ListReference

constant

SMPC_CMDMAX


SMPC command number

Form

    enum SmpcCommand {
      SMPC_MSHON,
      SMPC_SSHON,
      SMPC_SSHOFF,
      SMPC_SNDON,
      SMPC_SNDOFF,
      SMPC_CDON,
      SMPC_CDOFF,
      SMPC_SYSRES,
      SMPC_CKC352,
      SMPC_CKC320,
      SMPC_NMIREQ,
      SMPC_RESENA,
      SMPC_RESDIS,
      SMPC_GETSTS,
      SMPC_GETPER,
      SMPC_SETMEM,
      SMPC_SETTIM,
      SMPC_CMDMAX
    };

function

  SMPC_MSHON --Master SH2-ON
  SMPC_SSHON --Slave SH2-ON
  SMPC_SSHOFF --Slave SH2-OFF
  SMPC_SNDON --Sound-ON
  SMPC_SNDOFF --Sound-OFF
  SMPC_CDON --CD-ON
  SMPC_CDOFF --CD-OFF
  SMPC_SYSRES --Overall system reset SMPC_CKC352 --Clock change 352 mode SMPC_CKC320 --Clock change 320 mode SMPC_NMIREQ --NMI request SMPC_RESENA --Reset enable SMPC_RESDIS --Reset disable SMPC_GETSTS --Status acquisition SMPC_GETPER --Peripheral acquisition SMPC_SETMEM Memory setting SMPC_SETTIM --Time setting SMPC_CMDMAX --Maximum command number 



ListReference

constant

SMPC_NO_WAIT



ListReference

constant

SMPC_WAIT


SMPC command execution mode

Form

    enum SmpcWaitMode {
      SMPC_NO_WAIT,
      SMPC_WAIT
    };

function

  SMPC_NO_WAIT --No waiting for command execution end SMPC_WAIT --Waiting for command execution end 



ListReference

constant

winFar



ListReference

constant

winNear


Window switching

Form

    enum {
      winFar,
      winNear
    };

function

    winFar --Back window winNear --Front window

return
Copyright SEGA ENTERPRISES, LTD., 1997