ListReference

Constant macro

CURRENT


Index to current matrix

function

    #define CURRENT 0




ListReference

Constant macro

ORIGINAL


For scale correction of sprite data

function

    #define ORIGINAL (0.99999)




ListReference

Constant macro

_SysPause



ListReference

Constant macro

_SprPause



ListReference

Constant macro

_ScrPause


Constant for specifying the status of the system variable PauseFlag

function

    #define _SysPause 64
    #define _SprPause 2
    #define _ScrPause 1

Example

    Stop drawing only sprites.
extern Uint8 PauseFlag; PauseFlag = _SprPause;

reference

 PauseFlag 



ListReference

Constant macro

FUNC_Sprite


Standard sprite drawing command for VDP1 command table

function

    #define FUNC_Sprite 1

reference

 slSetSprite 



ListReference

Constant macro

FUNC_Texture


Texture drawing command for VDP1 command table

function

    #define FUNC_Texture 2

reference

 slSetSprite 



ListReference

Constant macro

FUNC_Polygon


VDP1 command table polygon drawing command

function

    #define FUNC_Polygon 4

reference

 slSetSprite 



ListReference

Constant macro

FUNC_PolyLine


Polyline drawing command for VDP1 command table

function

    #define FUNC_PolyLine 5

reference

 slSetSprite 



ListReference

Constant macro

FUNC_Line


Line drawing command for VDP1 command table

function

    #define FUNC_Line 6

reference

 slSetSprite 



ListReference

Constant macro

FUNC_SystemClip


System clipping command for VDP1 command table

function

    #define FUNC_SystemClip 9

reference

 slSetSprite 



ListReference

Constant macro

FUNC_UserClip


User clip command for VDP1 command table

function

    #define FUNC_UserClip 8

reference

 slSetSprite 



ListReference

Constant macro

FUNC_BasePosition


Relative coordinate commands for the VDP1 command table

function

    #define FUNC_BasePosition 10

reference

 slSetSprite 



ListReference

Constant macro

FUNC_End


VDP1 command table drawing end command

function

    #define FUNC_End -1

reference

 slSetSprite 



ListReference

Constant macro

_ZmLT


Sprite expansion center on top left

function

    #define _ZmLT (0x05 << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmLC


Center left for sprite expansion

function

    #define _ZmLC (0x09 << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmLB


The center of expansion of the sprite is at the bottom left

function

    #define _ZmLB (0x0d << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmCT


Sprite expansion center at the top center

function

    #define _ZmCT (0x06 << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmCC


Centered on the sprite's expansion center

function

    #define _ZmCC (0x0a << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmCB


Sprite expansion center at the bottom center

function

    #define _ZmCB (0x0e << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmRT


Sprite expansion center on the upper right

function

    #define _ZmRT (0x07 << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmRC


Center right for sprite expansion

function

    #define _ZmRC (0x0b << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

_ZmRB


The center of expansion of the sprite is at the bottom right

function

    #define _ZmRB (0x0f << 8)

reference

 SPR_ATTRIBUTE 



ListReference

Constant macro

MSBon


Set the MSB to write to the framebuffer to 1.

function

    #define MSBon (1 << 15)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

MSBoff


Set the MSB to write to the framebuffer to 0

function

    #define MSBoff (0 << 15)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

HSSon


High speed shrink enabled

function

    #define HSSon (1 << 12)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

HSSoff


High speed shrink disabled

function

    #define HSSoff (0 << 12)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

No_Window


Unrestricted on windows

function

    #define No_Window (0 << 9)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

Window_In


Displayed inside the window

function

    #define Window_In (2 << 9)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

Window_Out


Display outside the window

function

    #define Window_Out (3 << 9)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

MESHoff


Do not mesh

function

    #define MESHoff (0 << 8)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

MESHon


Displayed as a mesh

function

    #define MESHon (1 << 8)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

ECdis


Use the end code as one of the palettes

function

    #define ECdis (1 << 7)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

ECenb


End code valid

function

    #define ECenb (0 << 7)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

SPdis


Use space code as one of the palettes

function

    #define SPdis (1 << 6)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

SPenb


Do not show spaces

function

    #define SPenb (0 << 6)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL16Bnk


Color bank 16 color mode

function

    #define CL16Bnk (0 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL16Look


Color lookup 16 color mode

function

    #define CL16Look (1 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL64Bnk


Color bank 64 color mode

function

    #define CL64Bnk (2 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL128Bnk


Color bank 128 color mode

function

    #define CL128Bnk (3 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL256Bnk


Color bank 256 color mode

function

    #define CL256Bnk (4 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL32KRGB


function

    #define CL32KRGB (5 << 3)

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL_Replace


Overwrite (overwrite) mode

function

    #define CL_Replace 0

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL_Shadow


Shadow mode

function

    #define CL_Shadow 1

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL_Half


Semi-brightness mode

function

    #define CL_Half 2

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL_Trans


Semi-transparent mode

function

    #define CL_Trans 3

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

CL_Gouraud


User Gouraud shading mode

function

    #define CL_Gouraud 4

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

UseTexture


Apply texture to polygons

function

    #define UseTexture (1 << 2)

reference

 ATTRIBUTE 



ListReference

Constant macro

UseLight


Polygons are affected by light sources

function

    #define UseLight (1 << 3)

reference

 ATTRIBUTE 



ListReference

Constant macro

UsePalette


Make polygon colors a palette

function

    #define UsePalette (1 << 5)

reference

 ATTRIBUTE 



ListReference

Constant macro

UseNearClip


Near clipping

function

    #define UseNearClip (1 << 6)

reference

 ATTRIBUTE 



ListReference

Constant macro

Use Gouraud


Apply real-time goo

function

    #define UseGouraud (1 << 7)

reference

 ATTRIBUTE 



ListReference

Constant macro

UseDepth


Use depth queue

function

    #define UseDepth (1 << 4)

reference

 ATTRIBUTE 



ListReference

Constant macro

UseClip


Near clipping

function

    #define UseClip UseNearClip

reference

 ATTRIBUTE 



ListReference

Constant macro

sprHflip


Left-right flip sprite drawing command

function

    #define sprHflip ((1 << 4) | FUNC_Texture | ( UseTexture << 16))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprVflip


Upside down sprite drawing command

function

    #define sprVflip ((1 << 5) | FUNC_Texture | ( UseTexture << 16))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprHVflip


Up / down / left / right inversion sprite drawing command

function

    #define sprHVflip ((3 << 4) | FUNC_Texture | ( UseTexture << 16))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprNoflip


Sprite drawing command without inversion

function

    #define sprNoflip ((0) | FUNC_Texture | ( UseTexture << 16))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprPolygon


Monochromatic sprite drawing command

function

    #define sprPolygon ( FUNC_Polygon | (( ECdis | SPdis ) << 24))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprPolyLine


Polyline drawing command

function

    #define sprPolyLine ( FUNC_PolyLine | (( ECdis | SPdis ) << 24))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

sprLine


function

    #define sprLine ( FUNC_Line | (( ECdis | SPdis ) << 24))

reference

 ATTRIBUTE
 SPR_ATTRIBUTE 



ListReference

Constant macro

No_Texture


Do not use textures

function

    #define No_Texture 0

reference

 ATTRIBUTE 



ListReference

Constant macro

No_Option


Do not use options

function

    #define No_Option 0

reference

 ATTRIBUTE 



ListReference

Constant macro

No_Gouraud


Do not use Gouraud shading

function

    #define No_Gouraud 0

reference

 ATTRIBUTE 



ListReference

Constant macro

No_Palet


Do not specify the color palette

function

    #define No_Palet 0

reference

 ATTRIBUTE 



ListReference

Constant macro

GouraudRAM


Goo buffer for light source effects

function

    #define GouraudRAM (0x00080000-(32 * 8))




ListReference

Constant macro

COL_16


Color bank 16 color mode

function

    #define COL_16 (2 + 1)

reference

 AdjCG
 PICTBL
 PICDEF 



ListReference

Constant macro

COL_64


Color bank 64 color mode

function

    #define COL_64 (2 + 0)

reference

 AdjCG
 PICTBL
 PICDEF 



ListReference

Constant macro

COL_128


Color bank 128 color mode

function

    #define COL_128 (2 + 0)

reference

 AdjCG
 PICTBL
 PICDEF 



ListReference

Constant macro

COL_256


Color bank 256 color mode

function

    # define COL_256 (2 + 0)

reference

 AdjCG
 PICTBL
 PICDEF 



ListReference

Constant macro

COL_32K


function

    #define COL_32K (2-1)

reference

 AdjCG
 PICTBL
 PICDEF 



ListReference

Macro constant

cgaddress


SGL default texture data TOP address

function

    #define cgaddress 0x10000




ListReference

Macro constant

CGADDRESS


SGL default texture data TOP address

function

    #define CGADDRESS 0x10000




ListReference

Macro constant

pal


SGL default texture color mode

function

    #define pal COL_32K




ListReference

Constant macro

SpriteVRAM


VRAM start address of VDP1

function

    #define SpriteVRAM 0x25c00000




ListReference

Constant macro

RGB_Flag


Indicates that the color data is an RGB code. (For VDP1)

function

    #define RGB_Flag 0x8000




return
Copyright SEGA ENTERPRISES, LTD., 1997